fix:edit booking blade
This commit is contained in:
@@ -23,5 +23,15 @@ if (!function_exists('getUserFullName')) {
|
||||
}
|
||||
return Storage::disk('public')->url($file->path);
|
||||
}
|
||||
|
||||
if (!function_exists('activeAccountSidebar')) {
|
||||
function activeAccountSidebar(string $routeName): string
|
||||
{
|
||||
if (\Illuminate\Support\Facades\Route::currentRouteName() == $routeName) {
|
||||
return 'bg-blue-500/10 text-blue-500';
|
||||
}
|
||||
return 'hover:text-blue-500';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,8 @@ class TourController extends Controller
|
||||
|
||||
$tour->load([
|
||||
'file',
|
||||
'tourDates',
|
||||
|
||||
'comments' => function ($query) {
|
||||
$query->where('status', CommentStatus::APPROVED)
|
||||
->with('user')
|
||||
|
||||
Reference in New Issue
Block a user