Total Approve

{{ $kpi['month_completed'] }}
3 Bulan

Perlu Approve

{{ $kpi['pending_approve'] }}
Menunggu persetujuan

Siap Diambil

{{ $kpi['siap_diambil'] }}
On Progress

Rejected

{{ $kpi['rejected'] }}
Ditolak Admin
{{-- Alert: Siap Diambil & Rejected (side by side) --}} @if (($alert_siap_diambil ?? collect())->isNotEmpty() || ($alert_rejected ?? collect())->isNotEmpty())
{{-- Kiri: Barang Siap Diambil --}}
Siap Diambil

On Progress — sudah diproses admin

@if (($alert_siap_diambil ?? collect())->isEmpty())

Tidak ada data.

@else
@foreach ($alert_siap_diambil as $row) @endforeach
No ID Pengaju Jadwal Ambil Aksi
{{ $loop->iteration }} {{ $row->id }} {{ trim($row->pengaju_nama) ?: '-' }} @if (!empty($row->tanggal_ambil)) {{ \Carbon\Carbon::parse($row->tanggal_ambil)->format('d/m/Y H:i') }} @else - @endif Detail
@endif
{{-- Kanan: Permintaan Rejected --}}
Ditolak Admin

Permintaan departemen yang ditolak Admin IT

@if (($alert_rejected ?? collect())->isEmpty())

Tidak ada data.

@else
@foreach ($alert_rejected as $row) @endforeach
No ID Pengaju Catatan Admin Aksi
{{ $loop->iteration }} {{ $row->id }} {{ trim($row->pengaju_nama) ?: '-' }} {{ $row->catatan_admin ?: '-' }} Detail
@endif
@endif
Permintaan Menunggu Persetujuan Anda
@forelse($table_all as $row) @php $statusLabel = match ($row->status ?? '') { 'proposed' => ['label' => 'Proposed', 'class' => 'bg-warning-custom'], 'approve' => ['label' => 'Approve', 'class' => 'bg-primary'], 'on_progress' => ['label' => 'On Progress', 'class' => 'bg-info'], 'completed' => ['label' => 'Completed', 'class' => 'bg-primary'], 'revisi' => ['label' => 'Revisi', 'class' => 'bg-danger'], 'rejected' => ['label' => 'Rejected', 'class' => 'bg-danger'], default => [ 'label' => ucfirst($row->status ?? '-'), 'class' => 'bg-secondary', ], }; @endphp @empty @endforelse
No ID Pengaju Total Item Qty Status
{{ $loop->iteration }} {{ $row->id }} @if (isset($items_all[$row->id]) && $items_all[$row->id]->isNotEmpty()) @foreach ($items_all[$row->id] as $item)
{{ $item->nama_penerima ?? '-' }}
@endforeach @else - @endif
{{ $row->total_item ?? 0 }} {{ number_format($row->total_qty_diminta ?? 0) }} {{ $statusLabel['label'] }}
Belum ada data permintaan hari ini.