Session multi-créneaux: Les actions s'appliquent à ce créneau uniquement.
@if(isset($relatedBookings) && $relatedBookings->count() > 0)
Pour gérer tous les créneaux, visitez chaque réservation individuellement.
@endif
@endif
@if(auth()->user()->role === 'prestataire')
@if($booking->status === 'pending')
@elseif($booking->status === 'confirmed')
@endif
@endif
@if(auth()->user()->role === 'client' && in_array($booking->status, ['pending', 'confirmed']))
@php
$svcPayReq = function_exists('normalize_payment_requirement_for_mode')
? normalize_payment_requirement_for_mode($booking->service->payment_requirement ?? 'none')
: ($booking->service->payment_requirement ?? 'none');
$svcPresta = $booking->prestataire ?? $booking->service?->prestataire;
$svcHasStripe = $svcPresta && !empty($svcPresta->stripe_account_id);
@endphp
@if(\Illuminate\Support\Facades\Route::has('client.payments.form') && function_exists('booking_online_payment_enabled') && booking_online_payment_enabled())
{{-- Afficher les options de paiement uniquement si le service l'exige ET le prestataire a Stripe --}}
@if($svcPayReq !== 'none' && $svcHasStripe)
@if($booking->payment_status === 'pending')
Payer
@elseif($booking->payment_status === 'deposit_paid')
Payer le solde
@endif
@endif
@endif
@if(
\Illuminate\Support\Facades\Route::has('client.cart.add.booking')
&& function_exists('checkout_payments_enabled') && checkout_payments_enabled()
&& function_exists('booking_online_payment_enabled') && booking_online_payment_enabled()
)
{{-- Afficher le panier uniquement si le service exige un paiement en ligne ET le prestataire a Stripe --}}
@if($svcPayReq !== 'none' && $svcHasStripe)
@endif
@endif
@endif