diff --git a/app/Http/Controllers/Public/ContactController.php b/app/Http/Controllers/Public/ContactController.php index 6183527..e22b8cc 100644 --- a/app/Http/Controllers/Public/ContactController.php +++ b/app/Http/Controllers/Public/ContactController.php @@ -18,12 +18,7 @@ public function __invoke(): Response $contactInfos = ContactInfo::query()->get(); return inertia("Public/Contact", [ - "title" => $settings->teacher_titles, - "name" => $settings->teacher_name, "email" => $settings->teacher_email, - "department" => $settings->department_name, - "university" => $settings->university_name, - "universityLogo" => asset("cwup-full.png"), "contactInfos" => $contactInfos->map(fn(ContactInfo $contactInfo): ContactInfoData => ContactInfoData::fromModel($contactInfo)), ]); } diff --git a/app/Http/Controllers/Public/FaqController.php b/app/Http/Controllers/Public/FaqController.php new file mode 100644 index 0000000..a1de51f --- /dev/null +++ b/app/Http/Controllers/Public/FaqController.php @@ -0,0 +1,20 @@ +get(); + + return inertia("Public/Faq", [ + "faqs" => $faqs, + ]); + } +} diff --git a/resources/js/Pages/Dashboard/ContactInfo/Index.vue b/resources/js/Pages/Dashboard/ContactInfo/Index.vue index c6d1fc0..d13608e 100644 --- a/resources/js/Pages/Dashboard/ContactInfo/Index.vue +++ b/resources/js/Pages/Dashboard/ContactInfo/Index.vue @@ -6,7 +6,7 @@ import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Pagination from '@/Shared/Components/Pagination.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref } from 'vue' import { PencilSquareIcon, XCircleIcon } from '@heroicons/vue/24/outline' diff --git a/resources/js/Pages/Dashboard/Course/Index.vue b/resources/js/Pages/Dashboard/Course/Index.vue index 1a839c2..c0bc8a0 100644 --- a/resources/js/Pages/Dashboard/Course/Index.vue +++ b/resources/js/Pages/Dashboard/Course/Index.vue @@ -5,7 +5,7 @@ import TableWrapper from '@/Shared/Components/Table/TableWrapper.vue' import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref } from 'vue' import ManagementHeader from '@/Shared/Components/ManagementHeader.vue' diff --git a/resources/js/Pages/Dashboard/CourseSemester/Index.vue b/resources/js/Pages/Dashboard/CourseSemester/Index.vue index acfaec8..f9317be 100644 --- a/resources/js/Pages/Dashboard/CourseSemester/Index.vue +++ b/resources/js/Pages/Dashboard/CourseSemester/Index.vue @@ -5,7 +5,7 @@ import TableWrapper from '@/Shared/Components/Table/TableWrapper.vue' import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref } from 'vue' import ManagementHeader from '@/Shared/Components/ManagementHeader.vue' diff --git a/resources/js/Pages/Dashboard/CourseSemester/Student/Index.vue b/resources/js/Pages/Dashboard/CourseSemester/Student/Index.vue index 643053b..c70dde8 100644 --- a/resources/js/Pages/Dashboard/CourseSemester/Student/Index.vue +++ b/resources/js/Pages/Dashboard/CourseSemester/Student/Index.vue @@ -6,7 +6,7 @@ import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Pagination from '@/Shared/Components/Pagination.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref, watch } from 'vue' import { Inertia } from '@inertiajs/inertia' diff --git a/resources/js/Pages/Dashboard/FAQ/Index.vue b/resources/js/Pages/Dashboard/FAQ/Index.vue index 107c9c9..3d4807b 100644 --- a/resources/js/Pages/Dashboard/FAQ/Index.vue +++ b/resources/js/Pages/Dashboard/FAQ/Index.vue @@ -5,7 +5,7 @@ import TableWrapper from '@/Shared/Components/Table/TableWrapper.vue' import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref } from 'vue' import ManagementHeader from '@/Shared/Components/ManagementHeader.vue' diff --git a/resources/js/Pages/Dashboard/Field/Index.vue b/resources/js/Pages/Dashboard/Field/Index.vue index c4d44b0..674eca1 100644 --- a/resources/js/Pages/Dashboard/Field/Index.vue +++ b/resources/js/Pages/Dashboard/Field/Index.vue @@ -5,7 +5,7 @@ import TableWrapper from '@/Shared/Components/Table/TableWrapper.vue' import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref } from 'vue' import ManagementHeader from '@/Shared/Components/ManagementHeader.vue' diff --git a/resources/js/Pages/Dashboard/News/Index.vue b/resources/js/Pages/Dashboard/News/Index.vue index d9a47c4..4b62f01 100644 --- a/resources/js/Pages/Dashboard/News/Index.vue +++ b/resources/js/Pages/Dashboard/News/Index.vue @@ -6,7 +6,7 @@ import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Pagination from '@/Shared/Components/Pagination.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref, watch } from 'vue' import { Inertia } from '@inertiajs/inertia' diff --git a/resources/js/Pages/Dashboard/Section/Show.vue b/resources/js/Pages/Dashboard/Section/Show.vue index e041342..d24fee6 100644 --- a/resources/js/Pages/Dashboard/Section/Show.vue +++ b/resources/js/Pages/Dashboard/Section/Show.vue @@ -9,7 +9,7 @@ import { useForm } from '@inertiajs/inertia-vue3' import ManagementHeader from '@/Shared/Components/ManagementHeader.vue' import ManagementHeaderItem from '@/Shared/Components/ManagementHeaderItem.vue' import { PencilSquareIcon, XCircleIcon } from '@heroicons/vue/24/outline' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableHeader from '@/Shared/Components/Table/TableHeader.vue' diff --git a/resources/js/Pages/Dashboard/Semester/Index.vue b/resources/js/Pages/Dashboard/Semester/Index.vue index e57ee89..72bcc8e 100644 --- a/resources/js/Pages/Dashboard/Semester/Index.vue +++ b/resources/js/Pages/Dashboard/Semester/Index.vue @@ -5,7 +5,7 @@ import TableWrapper from '@/Shared/Components/Table/TableWrapper.vue' import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref } from 'vue' import { Method } from '@inertiajs/inertia' diff --git a/resources/js/Pages/Dashboard/Student/Index.vue b/resources/js/Pages/Dashboard/Student/Index.vue index 60a6d35..35811a9 100644 --- a/resources/js/Pages/Dashboard/Student/Index.vue +++ b/resources/js/Pages/Dashboard/Student/Index.vue @@ -6,7 +6,7 @@ import TableRow from '@/Shared/Components/Table/TableRow.vue' import TableCell from '@/Shared/Components/Table/TableCell.vue' import Pagination from '@/Shared/Components/Pagination.vue' import Button from '@/Shared/Components/Buttons/Button.vue' -import EmptyState from '@/Shared/Components/EmptyState.vue' +import EmptyState from '@/Shared/Components/EmptyState/EmptyState.vue' import RemoveModal from '@/Shared/Modals/RemoveModal.vue' import { ref, watch } from 'vue' import { Inertia } from '@inertiajs/inertia' diff --git a/resources/js/Pages/Public/Contact.vue b/resources/js/Pages/Public/Contact.vue index 762ba99..c46e0e3 100644 --- a/resources/js/Pages/Public/Contact.vue +++ b/resources/js/Pages/Public/Contact.vue @@ -7,15 +7,7 @@ import ContactItem from '@/Shared/Components/ContactItem.vue' import { NoSymbolIcon } from '@heroicons/vue/24/outline' defineProps({ - title: String, - name: String, email: String, - department: String, - university: String, - universityLogo: String, - sectionSettings: Object, - about: Array, - counters: Array, contactInfos: Array, }) @@ -36,7 +28,6 @@ defineProps({ Informacje kontaktowe. -
diff --git a/resources/js/Pages/Public/Course/Index.vue b/resources/js/Pages/Public/Course/Index.vue index 67f5f2d..7a4a61a 100644 --- a/resources/js/Pages/Public/Course/Index.vue +++ b/resources/js/Pages/Public/Course/Index.vue @@ -76,6 +76,8 @@ defineProps({
+ +
diff --git a/resources/js/Pages/Public/Faq.vue b/resources/js/Pages/Public/Faq.vue new file mode 100644 index 0000000..ef076bf --- /dev/null +++ b/resources/js/Pages/Public/Faq.vue @@ -0,0 +1,53 @@ + + + diff --git a/resources/js/Pages/Public/News/Index.vue b/resources/js/Pages/Public/News/Index.vue index e3fbc4d..8b6f6a2 100644 --- a/resources/js/Pages/Public/News/Index.vue +++ b/resources/js/Pages/Public/News/Index.vue @@ -1,11 +1,11 @@ + + diff --git a/routes/web.php b/routes/web.php index 736d15e..112d23c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -22,6 +22,7 @@ use Keating\Http\Controllers\Dashboard\StudentController; use Keating\Http\Controllers\Public\ContactController; use Keating\Http\Controllers\Public\CourseController as PublicCourseController; +use Keating\Http\Controllers\Public\FaqController as PublicFaqController; use Keating\Http\Controllers\Public\GradeController as PublicGradeController; use Keating\Http\Controllers\Public\HomeController; use Keating\Http\Controllers\Public\LoginController; @@ -33,6 +34,7 @@ Route::get("/oceny/{semester?}/{course?}/{group?}/{index?}", PublicGradeController::class); Route::get("/kursy", [PublicCourseController::class, "index"]); Route::get("/kursy/{slug}", [PublicCourseController::class, "get"]); +Route::get("/faq", PublicFaqController::class); Route::get("/kontakt", ContactController::class); Route::middleware("guest")->group(function (): void {