@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; } @endphp
Du {{ $allBookings->first()->start_datetime->format('d/m/Y à H:i') }} au {{ $allBookings->last()->end_datetime->format('d/m/Y à H:i') }}
@elseNuméro: {{ $booking->booking_number }}
@endifService:
{{ $booking->service->name }}
Prix @if($isMultiSlotSession) par créneau @endif:
{{ number_format($booking->service->price, 2) }} €
Prix total session:
{{ number_format($totalSessionPrice, 2) }} €
Nombre de créneaux:
{{ $allBookings->count() }}
Date de réservation:
{{ $booking->start_datetime->format('d/m/Y') }}
Heure:
{{ $booking->start_datetime->format('H:i') }}
Description:
{{ $booking->service->description }}
Nom:
{{ $booking->client->user->name }}
Email:
{{ $booking->client->user->email }}
Téléphone:
{{ $booking->client->user->phone }}
Adresse:
{{ $booking->client->address }}
{{ cleanNotesForDisplay($booking->client_notes) }}