feat: add tour details page and update tour components

This commit is contained in:
2026-08-17 09:45:34 +03:30
parent 859e846d7c
commit 71b11b70e4
4 changed files with 470 additions and 4 deletions
+9 -1
View File
@@ -16,6 +16,14 @@ class TourController extends Controller
'file',
]);
return view('tours.show', compact('tour'));
$startTime = verta($tour->tour_details->first()?->start_date)->format('d-%B');
$endTime = verta($tour->tour_details->first()?->end_date)->format('d-%B');
$startTravel = verta($tour->tour_details->first()?->start_date)->format('Y-m-d');
$endTravel = verta($tour->tour_details->first()?->end_date)->format('Y-m-d');
$startDay = verta($tour->tour_details->first()?->start_date)->format('%A');
$endDay = verta($tour->tour_details->first()?->end_date)->format('%A');
return view('tours.show', compact('tour' , 'startTime' , 'endTime' , 'startTravel' , 'endTravel' , 'startDay' , 'endDay'));
}
}