@forelse($reportData ?? [] as $ticket) @empty @endforelse
Ticket ID Status Department User OPS User Name Customer Name Date and Time Source Comment
{{$ticket->id}} {{$ticket->status}} @if($ticket->status == 'Closed') {{$ticket->ticketActions()->where('department_id', '!=',0)->orderBy('id','desc')->first()->department->name}} @else {{$departmentName = $ticket->department->name }} @endif @php $latestTicketAction = $ticket->ticketActions()->latest()->first(); @endphp {{ optional($latestTicketAction)->user->username ?? '' }} @php $latestTicketAction = $ticket->ticketActions()->latest()->first(); @endphp {{ optional($latestTicketAction)->user->first_name ?? '' }} {{ optional($latestTicketAction)->user->last_name ?? '' }} {{$ticket->ticketCustomer->display_name ?? ''}} {{$ticket->created_at->format('Y/m/d H:i:s')}} {{$ticket->ticketInfo->channel ?? ''}} {{ optional($ticket->ticketActions()->latest()->first())->comment ?? '' }}
There is no data found
{{ $reportData->links() }}