Détails

Date
@if($booking->service->price_type === 'heure' && $booking->service->quantity) @php $endTime = $booking->start_datetime->copy()->addHours($booking->service->quantity); @endphp {{ $booking->start_datetime->locale('fr')->isoFormat('dddd DD MMMM') }} à {{ $booking->start_datetime->format('H:i') }} - {{ $endTime->format('H:i') }} @elseif($booking->service->price_type === 'jour' && $booking->service->quantity) @php $endDate = $booking->start_datetime->copy()->addDays($booking->service->quantity - 1); @endphp {{ $booking->start_datetime->locale('fr')->isoFormat('dddd DD MMMM YYYY') }} @if($booking->service->quantity > 1) - {{ $endDate->locale('fr')->isoFormat('dddd DD MMMM YYYY') }} @endif @else {{ $booking->start_datetime->locale('fr')->isoFormat('dddd DD MMMM') }} à {{ $booking->start_datetime->format('H:i') }} - {{ $booking->end_datetime->format('H:i') }} @endif
Durée
@if($booking->service->price_type === 'heure' && $booking->service->quantity) {{ $booking->service->quantity }} heures @elseif($booking->service->price_type === 'jour' && $booking->service->quantity) {{ $booking->service->quantity }} jour{{ $booking->service->quantity > 1 ? 's' : '' }} @else {{ $booking->getDurationFormatted() }} @endif
Prix
{{ number_format($booking->total_price, 2) }} €
Créée le
{{ $booking->created_at->locale('fr')->isoFormat('DD MMMM YYYY') }}

Service

{{ $booking->service->name }}

@if($booking->service->description)

{{ Str::limit($booking->service->description, 100) }}

@endif
@if($booking->service->price_type === 'heure' && $booking->service->quantity)
{{ number_format($booking->service->price, 2) }} €/heure × {{ $booking->service->quantity }} heures = {{ number_format($booking->total_price, 2) }} €
@elseif($booking->service->price_type === 'jour' && $booking->service->quantity)
{{ number_format($booking->service->price, 2) }} €/jour × {{ $booking->service->quantity }} jours = {{ number_format($booking->total_price, 2) }} €
@else
{{ number_format($booking->service->price, 2) }} € @if($booking->service->price_type === 'heure') /heure @elseif($booking->service->price_type === 'jour') /jour @elseif($booking->service->price_type === 'projet') (projet) @elseif($booking->service->price_type === 'devis') (sur devis) @endif
@endif