{{-- Left: Back button --}} {{-- Center: Title --}}

Détails du ticket

{{-- Right: Action buttons --}}
@if(auth()->user()->hasPermission('tickets-manage')) Supprimer ce ticket ? Le ticket {{ $ticket->title }} sera mis en corbeille.
@csrf @method('DELETE')
@endif
{{-- Success message --}} @if(session('success'))
{{ session('success') }}
@endif
{{-- Title --}}

Titre

{{ $ticket->title }}

{{-- Type, Status, Priority --}}

Type

{{ $ticket->type->label() }}

Statut

{{ $ticket->status->label() }}

Priorité

{{ $ticket->priority->label() }}
{{-- Description --}}

Description

{{ $ticket->description }}

{{-- Metadata --}}

Date de l'incident/demande

{{ $ticket->occurred_at ? $ticket->occurred_at->format('d/m/Y') : 'Non renseignée' }}

Date de clôture

{{ $ticket->closed_at ? $ticket->closed_at->format('d/m/Y') : 'Non renseignée' }}

Date de création

{{ $ticket->created_at->format('d/m/Y à H:i') }} ({{ $ticket->created_at->diffForHumans() }})

Dernière modification

{{ $ticket->updated_at->format('d/m/Y à H:i') }} ({{ $ticket->updated_at->diffForHumans() }})

{{-- History section --}} @if(auth()->user()->hasPermission('tickets-manage') || $ticket->history->isNotEmpty())

Historique

@if(auth()->user()->hasPermission('tickets-manage')) @endif
@if($ticket->history->isEmpty())

Aucun événement dans l'historique.

@else
@foreach($ticket->history as $history) @if(!$history->trashed() || Gate::allows('admin'))

{{ $history->event }}

{{ $history->event_date->format('d/m/Y à H:i') }} ({{ $history->event_date->diffForHumans() }})

@if(auth()->user()->hasPermission('tickets-manage') && !$history->trashed())
Supprimer cet événement ? L'événement {{ $history->event }} sera supprimé de l'historique.
@csrf @method('DELETE')
@endif @if(Gate::allows('admin') && $history->trashed())
@csrf
@endif
{{-- Edit history modal --}} @if(auth()->user()->hasPermission('tickets-manage'))
@csrf @method('PUT')

Modifier l'événement

Maximum 500 caractères

@endif @endif @endforeach
@endif
{{-- Add history modal --}} @if(auth()->user()->hasPermission('tickets-manage'))
@csrf

Ajouter un événement

Maximum 500 caractères

@error('event')

{{ $message }}

@enderror

Par défaut: maintenant (vous pouvez modifier)

@error('event_date')

{{ $message }}

@enderror
@endif @endif