@extends('customer.layout') @section('title','Ticket History') @section('content')
Ticket Replies History
@if($tickets->isEmpty())
No ticket history available.
@else
@foreach($tickets as $ticket) {{-- ID --}} {{-- SUBJECT --}} {{-- PRIORITY --}} {{-- STATUS --}} {{-- LAST REPLY --}} {{-- VIEW --}} {{-- ===================== HISTORY MODAL ====================== --}} @endforeach
# Subject Priority Status Last Reply View
{{ $ticket->id }}{{ $ticket->subject }} {{ ucfirst($ticket->priority) }} {{ ucfirst($ticket->status) }} {{ optional($ticket->replies->last())->created_at ? $ticket->replies->last()->created_at->format('d M Y') : '—' }}
@endif
@endsection