@extends('layouts.app') @section('title', $ticket->numero . ' — ' . $ticket->sujet) @section('page-title', 'Ticket ' . $ticket->numero) @push('styles') @endpush @section('content') @if(session('success'))
{{ session('success') }}
@endif
Tous les tickets / {{ $ticket->numero }}
{{-- ══ Colonne principale ══ --}}
{{ $ticket->numero }} {{ $ticket->sujet }} {{ $ticket->statutLabel() }}
Conversation — {{ $ticket->messages->count() }} message(s)
@foreach($ticket->messages as $msg)
{{ strtoupper(substr($msg->user->name ?? '?', 0, 1)) }}
@if($msg->is_admin) ⚡ Support — {{ $msg->user->name }} @else {{ $msg->user->name }} @endif {{ $msg->created_at->format('d/m/Y à H:i') }}
{!! $msg->message !!}
@endforeach
{{-- Réponse admin --}} @if($ticket->statut !== 'cloture')
@csrf
@foreach(['#1A2340','#E53E3E','#D69E2E','#38A169','#3182CE','#805AD5'] as $c)
@endforeach
Retour
@else
🔒 Ticket clôturé
@endif
{{-- ══ Sidebar ══ --}}
{{-- Changer statut --}}
Changer le statut
@csrf @method('PATCH')
{{-- Infos --}}
Informations
Numéro {{ $ticket->numero }}
Priorité {{ $ticket->prioriteLabel() }}
Créateur {{ $ticket->user->name ?? '—' }}
Email {{ $ticket->user->email ?? '—' }}
@if($ticket->societe_id)
Société ID #{{ $ticket->societe_id }}
@endif
Créé le {{ $ticket->created_at->format('d/m/Y H:i') }}
Messages {{ $ticket->messages->count() }}
@endsection @push('scripts') @endpush