@extends('layouts.public') @section('title', 'Suivi de la demande ' . $ticket->formatted_number . ' - ' . $project->name) @section('content')
← Retour au suivi du projet {{ $project->name }} @if(session('success'))
{{ session('success') }}
@endif
{{ $ticket->formatted_number }} {{ $ticket->type_badge['label'] }} {{ $ticket->priority_badge['label'] }}

{{ $ticket->title }}

@php $columns = $project->columns; $currentIndex = $columns->search(fn ($column) => $column->id === $ticket->column_id); @endphp
Avancement {{ $ticket->column->name }}
@foreach($columns as $index => $column)
{{ $column->name }}
@endforeach

Transmis le {{ $ticket->created_at->format('d/m/Y à H:i') }} • dernière mise à jour {{ $ticket->updated_at->diffForHumans() }}

@if($ticket->description)
{{ $ticket->description }}
@endif @if($ticket->attachments->isNotEmpty())
@foreach($ticket->attachments as $attachment) 📎 {{ $attachment->original_name }} @endforeach
@endif

Échanges avec l'équipe ({{ $comments->count() }})

@forelse($comments as $comment)
{{ $comment->author_name }} @if($comment->user && ! $comment->user->isClient()) Équipe @endif {{ $comment->created_at->format('d/m/Y H:i') }}

{{ $comment->content }}

@empty

Aucun échange pour le moment. L'équipe vous répondra ici.

@endforelse
@csrf @if($errors->any())
{{ $errors->first() }}
@endif
@endsection