{{-- resources/views/anggota/pac.blade.php --}} @extends('layout.index') @section('title', 'Data Anggota ' . $pac->nama_pac . ' - SIAPN') @push('styles') @endpush @section('content')
{{-- HERO SECTION --}} {{-- Alert Blanko --}} @if(!$activeBlanko && $user->role === 'super_admin') @endif {{-- FILTER CARD --}}
{{-- Desktop Filter --}}
{{-- Mobile Filter --}}
Reset
{{-- Filter Chips --}} @if(request('search') || request('pengesahan') || request('sort'))
Filter aktif: @if(request('search')) @php $searchVal = is_array(request('search')) ? request('search')[0] : request('search'); @endphp "{{ $searchVal }}" × @endif @if(request('pengesahan')) @php $pengesahan = \App\Models\Pengesahan::find(request('pengesahan')); @endphp {{ optional($pengesahan)->tahun ?? '' }} - {{ optional($pengesahan)->tanggal_bulan ?? '' }} × @endif @if(request('sort')) {{ ucwords(str_replace('_',' ', request('sort'))) }} × @endif
@endif {{-- MEMBER LIST --}}
@if($anggota->count() > 0) {{-- Bulk Action Bar --}} @if($user->role === 'super_admin')
0 dipilih
@endif
@foreach($anggota as $item) @php $fotoUrl = $item->id_gambar ? route('proxy.image', $item->id_gambar) : ''; $initial = strtoupper(substr($item->nama, 0, 1)); @endphp
{{-- Checkbox --}} @if($user->role === 'super_admin')
@endif
@if($fotoUrl) Foto {{ $item->nama }} @else
{{ $initial }}
@endif
{{ $item->nama }} {{ $item->id_anggota }}
{{ $item->ttl }} {{ \Illuminate\Support\Str::limit($item->alamat, 80) }}
{{ $item->status }}
@if($user->role === 'super_admin') @endif Edit
@csrf @method('DELETE')
@endforeach
{{-- PAGINATION --}}
Menampilkan {{ $anggota->firstItem() ?? 0 }}{{ $anggota->lastItem() ?? 0 }} dari {{ $anggota->total() }} data
@else
Tidak ada anggota
Belum ada anggota yang terdaftar di PAC ini.
Reset Filter
@endif
{{-- MODAL DOWNLOAD MASSAL --}} @if($user->role === 'super_admin') @endif {{-- MODAL CETAK KTA --}} @if($user->role === 'super_admin')
@endif
@endsection @push('scripts') @endpush