PERMINTAAN ATK UMUM

Dicetak pada: {{ now()->format('d F Y, H:i') }} WIB

@php $hasItems = false; $groupIndex = 0; @endphp @foreach ($requests as $request) @php $approvedItems = collect($request->items ?? []) ->filter(fn($item) => isset($item['approved']) && $item['approved']) ->values(); $count = $approvedItems->count(); @endphp @forelse($approvedItems as $index => $item) @php $hasItems = true; $isFirst = $index === 0; $isLast = $index === $count - 1; $groupClass = ($isFirst ? 'group-first ' : '') . ($isLast ? 'group-last' : ''); @endphp @empty @endforelse @if ($approvedItems->count() > 0) @php $groupIndex++; @endphp @endif @endforeach @if (!$hasItems) @endif
ID Pemohon Item Qty Keterangan Penerima
{{ $isFirst ? '#' . $request->id : '' }} @if ($isFirst)
{{ $request->name }}
{{ $request->department ?? $request->user->department->name ?? 'N/A' }}
{{ $request->updated_at->format('d M Y H:i') }}
@endif
@if (!empty($item['item_number']))
{{ $item['item_number'] }}
@endif
{{ $item['item_name'] ?? ($item['name'] ?? '-') }}
{{ $item['quantity'] ?? '-' }}
{{ $item['unit'] ?? '' }}
{{ $item['comment'] ?? ($item['notes'] ?? '-') }} @if ($isFirst)
@endif
Tidak ada item yang disetujui.