@if ($errors->any()) @foreach ($errors->all() as $error) @php notify()->error($error, 'Gagal'); @endphp @endforeach @endif
Penerima Bantuan SPALDS
Daftar Kecamatan
@if(session('success')) @endif
@if(request('tahun') || request('kegiatan_id')) Reset Filter @endif
@forelse($kecamatans as $index => $kecamatan) @empty @endforelse
No Nama Kecamatan Tahun SPALDS Kegiatan Jumlah Data SPALDS Aksi
{{ $kecamatans->firstItem() + $index }} {{ $kecamatan->nama_kecamatan }} @if($kecamatan->spalds->count() > 0) @php $tahunList = $kecamatan->spalds->pluck('tahun')->unique()->sort()->reverse(); @endphp @foreach($tahunList as $tahun) {{ $tahun }} @endforeach @else - @endif @if($kecamatan->spalds->count() > 0) @php $kegiatanList = $kecamatan->spalds->pluck('kegiatan.nama_kegiatan')->unique()->filter(); @endphp @foreach($kegiatanList as $kegiatanNama) {{ $kegiatanNama }} @endforeach @else - @endif {{ $kecamatan->spalds_count }} Detail
Tidak ada data kecamatan yang memiliki data SPALDS
@if($kecamatans->hasPages())
Menampilkan {{ $kecamatans->firstItem() }} sampai {{ $kecamatans->lastItem() }} dari {{ $kecamatans->total() }} data
{{ $kecamatans->links('pagination.bootstrap-5') }}
@endif
@push('scripts') @endpush