@extends('layouts.page') @section('title') Un-Assigned Helpdesk Aging Report @endsection @section('navs') Back @endsection @section('content')
| Department | @foreach ($columns as $index => $col){{ $col }} | @endforeachTotal |
|---|---|---|
| {{ strtoupper($dept) }} | @foreach ($columns as $index => $col)
@if ($count > 0)
{{ $count }}
@foreach ($tickets as $ticket)
@else
0
@endif
Ticket {{ $ticket->id }}
@endforeach
{{ $ticket->created_user_name ?? 'N/A' }} {{ isset($ticket->created_at) ? \Carbon\Carbon::parse($ticket->created_at)->format('d M Y') : 'N/A' }} |
@endforeach
{{ $rowTotal }} |
| Total | @foreach ($columns as $index => $col){{ $colTotal }} | @endforeach{{ array_reduce($report, function($carry, $row) use ($columns) { foreach ($columns as $col) $carry += $row[$col] ?? 0; return $carry; }, 0) }} |