@extends('layouts.app') @section('content')
| Heure | @foreach($services as $service) @if($service->nom_service !== null){{ $service->nom_service }} | @endif @if($service->nom_grandservice !== null){{ $service->nom_grandservice }} | @endif @endforeach
|---|---|---|
| {{ str_pad($hour % 24, 2, '0', STR_PAD_LEFT) }}:00 | @foreach($services as $service)@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 | @endforeach
Name: {{ $appointment->prospect->nom }}
Service: {{ $appointment->service->nom_service }}
Date: {{ $appointment->date_rv }}
Time: {{ $appointment->heure_rv }}