@foreach ($tickets as $ticket) @endforeach
Ticket # Subject Customer Department Priority Status Last Update Actions
{{ $ticket->ticket_number }}
{{ $ticket->subject }}
{{ Str::limit($ticket->description, 50) }}
{{ strtoupper(substr($ticket->customer->name, 0, 2)) }}
{{ $ticket->customer->name }}
{{ $ticket->customer->email }}
{{ $ticket->department }} {{ ucfirst($ticket->priority) }} {{ ucfirst($ticket->status) }}
{{ $ticket->updated_at->diffForHumans() }}
by {{ $ticket->last_updated_by ?? 'Unknown' }}
@if ($tickets instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $tickets->links('layouts.paginate') }} @endif