@extends('layout.layout') @section('content')
{{-- Requests by Team --}}

Requests by Team

@php $total = ['pending'=>0, 'in_progress'=>0, 'done'=>0, 'rejected'=>0, 'total'=>0]; @endphp @foreach ($requestsLastWeek as $staff) @php $total['pending'] += $staff['pending']; $total['in_progress'] += $staff['in_progress']; $total['done'] += $staff['done']; $total['rejected'] += $staff['rejected']; $total['total'] += $staff['total']; @endphp @endforeach {{-- Total Row --}}
Staff Pending In Progress Done Rejected Total
{{ $staff['name'] }} {{ $staff['pending'] }} {{ $staff['in_progress'] }} {{ $staff['done'] }} {{ $staff['rejected'] }} {{ $staff['total'] }}
Total {{ $total['pending'] }} {{ $total['in_progress'] }} {{ $total['done'] }} {{ $total['rejected'] }} {{ $total['total'] }}
{{-- Open Requests by Priority --}}

Open Requests by Priority

{{-- Requests Last Week (Stacked Bar Chart) --}}

Requests Last Week

SLA Violation by Team

@endsection