@extends('layouts.app') @section('content') @php // Ensure variables are defined for backward compatibility $isMultiSlotSession = $isMultiSlotSession ?? false; $allBookings = $allBookings ?? collect([$booking]); $relatedBookings = $relatedBookings ?? collect(); $totalSessionPrice = $totalSessionPrice ?? $booking->total_price; // Function to clean session ID from notes for display function cleanNotesForDisplay($notes) { if (!$notes) return null; return trim(preg_replace('/\[SESSION:[^\]]+\]/', '', $notes)) ?: null; } // Status configuration $statusConfig = [ 'pending' => ['bg' => 'bg-gradient-to-r from-amber-400 to-orange-400', 'text' => 'text-white', 'icon' => 'fa-hourglass-half', 'label' => 'En attente', 'light' => 'bg-amber-50 border-amber-200 text-amber-800'], 'confirmed' => ['bg' => 'bg-gradient-to-r from-emerald-400 to-green-500', 'text' => 'text-white', 'icon' => 'fa-check-circle', 'label' => 'Confirmée', 'light' => 'bg-emerald-50 border-emerald-200 text-emerald-800'], 'completed' => ['bg' => 'bg-gradient-to-r from-blue-400 to-indigo-500', 'text' => 'text-white', 'icon' => 'fa-flag-checkered', 'label' => 'Terminée', 'light' => 'bg-blue-50 border-blue-200 text-blue-800'], 'cancelled' => ['bg' => 'bg-gradient-to-r from-red-400 to-rose-500', 'text' => 'text-white', 'icon' => 'fa-times-circle', 'label' => 'Annulée', 'light' => 'bg-red-50 border-red-200 text-red-800'], 'refused' => ['bg' => 'bg-gradient-to-r from-gray-400 to-slate-500', 'text' => 'text-white', 'icon' => 'fa-ban', 'label' => 'Refusée', 'light' => 'bg-gray-50 border-gray-200 text-gray-800'], ]; $currentStatus = $statusConfig[$booking->status] ?? $statusConfig['pending']; @endphp
{{ $booking->service->name }}
{{ Str::limit($booking->service->description, 120) }}
@endif Voir le service{{ $cleanClientNotes }}
{{ $cleanPrestataireNotes }}
{{ $booking->prestataire->location }}
@endif