@extends('layouts.app') @section('content')

la date d'aujourd'hui: {{ date('Y-m-d') }}

@foreach($services as $service) @if($service->nom_service !== null) @endif @if($service->nom_grandservice !== null) @endif @endforeach @for ($hour = 7; $hour < 31; $hour++) @foreach($services as $service) @endforeach @endfor
Heure{{ $service->nom_service }}{{ $service->nom_grandservice }}
{{ str_pad($hour % 24, 2, '0', STR_PAD_LEFT) }}:00 @foreach($rendezvous as $appointment) @php $statusClass = ''; switch ($appointment->statu) { case 'confirm': $statusClass = 'confirm'; break; case 'check-in': $statusClass = 'check-in'; break; case 'regler': $statusClass = 'regler'; break; case 'annuler': $statusClass = 'annuler'; break; case 'fiche-client': $statusClass = 'fiche-client'; break; } @endphp @if(date('H:00', strtotime($appointment->heure_rv)) === str_pad($hour % 24, 2, '0', STR_PAD_LEFT) . ':00' && $appointment->service_id == $service->id) {{ $appointment->prospect->nom }}, heure: {{ substr($appointment->heure_rv, 0, 5) }}, prix: {{ $appointment->prix_rv }} @endif @endforeach
@foreach($rendezvous as $appointment) @endforeach @endsection