@extends('layouts.app') @section('title', 'Détails de la réservation #' . ($booking->id ?? 'N/A')) @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 ?? 0); $canViewClientContact = $booking->canPrestataireViewClientContact(); $clientEmail = ($booking->client && $booking->client->user) ? ($booking->client->user->email ?? null) : null; $clientPhone = $booking->client?->phone ?? $booking->client?->user?->phone; $clientAddress = $booking->client?->address ?? $booking->client?->user?->address; // Function to clean session ID from notes for display function cleanNotesForDisplay($notes) { if (!$notes) return null; return trim(preg_replace('/\[SESSION:[^\]]+\]/', '', $notes)) ?: null; } @endphp
Impossible d'accepter ou refuser cette réservation car le service a été supprimé.
Impossible de marquer cette réservation comme terminée car le service a été supprimé.
{{ $reviewsCount }} avis
@if($wouldWorkAgain !== null){{ $wouldWorkAgain }}% retravailleraient avec ce client
@endif Voir tous les avis →Nouveau client - Pas encore d'avis
@endif @endifLe client doit encore valider le partage de son email, de son téléphone et de son adresse postale.