fix:edit booking blade

This commit is contained in:
2026-08-18 18:25:26 +03:30
parent a910b51ebc
commit f93681a21f
3 changed files with 76 additions and 0 deletions
+10
View File
@@ -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';
}
}
}
}
+2
View File
@@ -28,6 +28,8 @@ class TourController extends Controller
$tour->load([
'file',
'tourDates',
'comments' => function ($query) {
$query->where('status', CommentStatus::APPROVED)
->with('user')