@extends('dashboard.layouts.app') @section('title', 'Gestion des tickets de support - UAC eservices') @section('page-title', 'Tickets de Support') @section('breadcrumb') @endsection @section('content')

{{ $stats['total'] }}

Total

{{ $stats['ouverts'] }}

Ouverts

{{ $stats['en_cours'] }}

En cours

{{ $stats['fermes'] }}

Fermés

Tous les tickets de support

Liste complète de tous les tickets soumis.

@forelse($tickets as $ticket) @empty @endforelse
ID Visiteur Sujet Informations complémentaires Priorité Statut Agent assigné Date de création Actions
#{{ $ticket->id }}
{{ $ticket->visiteur_nom }}
{{ $ticket->visiteur_email }} @if($ticket->whatsapp_number)
{{ $ticket->whatsapp_number }} @endif
{{ $ticket->sujet }}
@if($ticket->personne_impliquee)
Personne : {{ $ticket->personne_impliquee }}
@endif @if($ticket->poste)
Poste : {{ $ticket->poste }}
@endif @if($ticket->centre)
Centre : {{ \App\Models\Plainte::getCentres()[$ticket->centre] ?? $ticket->centre }}
@endif @if($ticket->organisme_specifique)
Organisme : {{ $ticket->organisme_specifique }}
@endif @if(!$ticket->personne_impliquee && !$ticket->poste && !$ticket->centre && !$ticket->organisme_specifique) Aucune information @endif
@if($ticket->priorite == 'Haute') Haute @elseif($ticket->priorite == 'Moyenne') Moyenne @else Basse @endif @if($ticket->statut == 'Ouvert') Ouvert @elseif($ticket->statut == 'En cours') En cours @else Fermé @endif @if($ticket->agentAssigne)
{{ $ticket->agentAssigne->name }}
{{ $ticket->agentAssigne->role->nom }}
@else Non assigné @endif
{{ $ticket->created_at->format('d/m/Y') }}
{{ $ticket->created_at->format('H:i') }}
@if($ticket->statut == 'En cours' && ($ticket->agentAssigne && (auth()->user()->role->nom === 'Administrateur' || $ticket->agent_assigne_id === auth()->id()))) @elseif($ticket->statut == 'Fermé' && (auth()->user()->role->nom === 'Administrateur' || $ticket->agent_assigne_id === auth()->id())) @elseif($ticket->statut == 'Fermé') Fermé @endif
Aucun ticket trouvé

Ajustez vos filtres ou patientez pour de nouveaux tickets.

@endsection