@extends('layouts.app') @section('title', 'Arsip Surat') @section('content')
Riwayat surat berdasarkan tahun, tipe, dan departemen
Menampilkan {{ $suratList->total() }} arsip tahun {{ $year ?? now()->year }} @if(($type ?? 'all') !== 'all') — Tipe: {{ $type }} @endif @if(($type ?? 'all') === 'internal' && ($division ?? 'all') !== 'all') — Dept: {{ $division }} @endif @if(!empty($search)) — Cari: "{{ $search }}" @endif
Export CSVTotal: {{ $suratList->total() }} surat
| No | Nomor Surat | Pembuat | Tipe | Keterangan | Divisi | Tanggal | @if(auth()->user()->isAdminHR())Aksi | @endif|
|---|---|---|---|---|---|---|---|---|
| {{ $suratList->firstItem() + $i }} | {{ $surat->nomor_surat }} | {{ $surat->pembuat_surat ?? '-' }} | @php $badge = ['internal' => 'bg-blue-100 text-blue-700', 'eksternal' => 'bg-purple-100 text-purple-700', 'sket-kerja' => 'bg-orange-100 text-orange-700'][$surat->type] ?? 'bg-gray-100 text-gray-600'; @endphp {{ ucfirst($surat->type) }} | {{ $surat->keterangan }} | {{ $surat->division ?? '-' }} | @if($surat->pdf_url) @else @endif | {{ $surat->created_at?->format('d M Y H:i') }} | @if(auth()->user()->isAdminHR())@endif |
| Tidak ada arsip surat ditemukan | ||||||||