feat: add tour details page and update tour components
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user