@extends('dashboard.layouts.app') @section('title', 'Détails du ticket #' . $ticket->id . ' - UAC eservices') @section('page-title', 'Ticket de Support #' . $ticket->id) @section('breadcrumb')
Visiteur : {{ $ticket->visiteur_nom }}
Email : {{ $ticket->visiteur_email }}
@if($ticket->whatsapp_number)WhatsApp : {{ $ticket->whatsapp_number }}
@endifSujet : {{ $ticket->sujet }}
@if($ticket->personne_impliquee || $ticket->poste || $ticket->centre || $ticket->organisme_specifique)Personne impliquée : {{ $ticket->personne_impliquee }}
@endif @if($ticket->poste)Poste : {{ $ticket->poste }}
@endif @if($ticket->centre)Centre universitaire : {{ \App\Models\Plainte::getCentres()[$ticket->centre] ?? $ticket->centre }}
@endif @if($ticket->organisme_specifique)Organisme spécifique : {{ $ticket->organisme_specifique }}
@endif @endif @if($ticket->file_path)Pièce jointe : Télécharger
@endifPriorité : @if($ticket->priorite == 'Haute') Haute @elseif($ticket->priorite == 'Moyenne') Moyenne @else Basse @endif
Statut : @if($ticket->statut == 'Ouvert') Ouvert @elseif($ticket->statut == 'En cours') En cours @else Fermé @endif
Agent assigné : {{ $ticket->agentAssigne ? $ticket->agentAssigne->name : 'Non assigné' }}
{{ $ticket->probleme }}
@if($ticket->statut == 'Fermé') Aucun message n'a été échangé avant la fermeture du ticket. @else Aucun message pour le moment. @endif
Ce ticket est en cours de traitement.
@if($ticket->agentAssigne && (auth()->user()->role->nom === 'Administrateur' || $ticket->agent_assigne_id === auth()->id())) Accéder au chat @endif