Informations temporelles
Créé le :
{{ $ticket->created_at->format('d/m/Y à H:i') }}
Dernière modification :
{{ $ticket->updated_at->format('d/m/Y à H:i') }}
@php
$waitTime = $ticket->status === 'en_attente'
? $ticket->created_at->diffInMinutes(now())
: $ticket->created_at->diffInMinutes($ticket->updated_at);
@endphp
Temps d'attente :
{{ $waitTime }} minutes
@if($waitTime > 60)
({{ floor($waitTime / 60) }}h {{ $waitTime % 60 }}min)
@endif
Statut actuel :
{{ ucfirst(str_replace('_', ' ', $ticket->status)) }}