{{ __('Dashboard') }}

Overview & Monitoring Aktivitas Permintaan

{{-- Summary Metric Cards Bar --}} @can('view item requests') @php $totalReqs = array_sum($requisitionStatusCount); $approvedCount = $requisitionStatusCount['Approved'] ?? 0; $pendingCount = ($requisitionStatusCount['Initiated'] ?? 0) + ($requisitionStatusCount['On Review'] ?? 0); $rejectedCount = $requisitionStatusCount['Rejected'] ?? 0; $poCreated = $poStats['Created'] ?? 0; $poAwaiting = $poStats['Awaiting'] ?? 0; @endphp

Total Requisition

{{ number_format($totalReqs) }}

Approved

{{ number_format($approvedCount) }} {{ $totalReqs > 0 ? round($approvedCount / $totalReqs * 100) : 0 }}%

Pending

{{ number_format($pendingCount) }} {{ $totalReqs > 0 ? round($pendingCount / $totalReqs * 100) : 0 }}%

Rejected

{{ number_format($rejectedCount) }} {{ $totalReqs > 0 ? round($rejectedCount / $totalReqs * 100) : 0 }}%

PO Created

{{ number_format($poCreated) }}

Avg PO Lead Time

{{ $averagePoLeadTime }} days

{{-- Section 1: Needs Approval & Charts --}}

Needs Approval

VIEW ALL
@forelse($requisitionsAwaitingApproval as $request)

{{ $request->requisition_number }}

{{ $request->user->name }}

@empty

All caught up!

@endforelse

Requisition Status

Request Priority

{{-- Section 2: Lead Time & PO Lead Time --}}

Top 15 Bottlenecks (Avg Business Days)

Req to PO Lead Time

{{-- Section 3: Top Items & Activity --}}

Top 10 Items

by Requisition Count
@forelse ($topItems as $itemName => $count)
{{ $loop->iteration }}{{ $itemName }} {{ $count }}
@php $maxCount = $topItems->max() > 0 ? $topItems->max() : 1; $percentage = ($count / $maxCount) * 100; @endphp
@empty

No item data available

@endforelse

Submission Activity

Last 30 Days

PO Status

{{-- Section 4: Department Chart --}}

Top 10 Departments

Last 6 Months ยท Top 10 by Total
@endcan
@push('scripts') @endpush>