@extends('layouts.provider') @section('title', isset($appointment) ? 'Modifier Rendez-vous' : 'Nouveau Rendez-vous') @section('page-title', isset($appointment) ? 'Modifier Rendez-vous' : 'Nouveau Rendez-vous') @section('footer-class', 'footer-spacing') @section('content')

{{ isset($appointment) ? 'Modifier Rendez-vous' : 'Nouveau Rendez-vous' }}

@csrf @if(isset($appointment)) @method('PUT') @endif

Informations du rendez-vous

Format: HH:MM (ex: 09:00, 15:30)

Format: HH:MM (ex: 10:00, 16:30)

@if($services->isEmpty())

Aucun service disponible.

+ Créer un service
@else @endif
TND
@if(isset($appointment))

Encaissements liés

+ Ajouter encaissement
@if($appointment->payments->count() > 0)
@foreach($appointment->payments as $payment) @endforeach
Date Montant Méthode
{{ $payment->payment_date->format('d/m/Y') }} {{ format_currency($payment->amount) }} {{ $payment->currency }} @switch($payment->method) @case('cash') Espèces @break @case('card') Carte @break @case('bank_transfer') Virement @break @case('other') Autre @break @endswitch
Total encaissé : {{ format_currency($appointment->payments->sum('amount')) }} {{ $appointment->currency }}
@else

Aucun encaissement pour ce rendez-vous.

@endif
@endif
@endsection
Annuler @if(isset($appointment) && $appointment->payments->count() === 0) @endif
@if(isset($appointment)) @endif @endsection