@extends('layout.index') @section('title', 'Data Anggota ' . $pac->nama_pac . ' - SIAPN') @push('styles') {{-- ============================================================ PREMIUM GREEN DESIGN SYSTEM 2026 — ENHANCED EDITION ============================================================ --}} @endpush @section('content')
{{-- ============================================================ HERO SECTION ============================================================ --}} {{-- ============================================================ ALERT BLANKO ============================================================ --}} @if(!$activeBlanko && $user->role === 'super_admin') @endif {{-- ============================================================ FILTER CARD ============================================================ --}}
{{-- DESKTOP / TABLET ROW --}}
{{-- MOBILE LAYOUT --}}
Reset
{{-- ============================================================ FILTER ACTIVE CHIPS ============================================================ --}} @if(request('search') || request('pengesahan') || request('sort'))
Filter aktif: @if(request('search')) "{{ request('search') }}" × @endif @if(request('pengesahan')) @php $pengesahan = \App\Models\Pengesahan::find(request('pengesahan')); @endphp {{ $pengesahan->tahun ?? '' }} - {{ $pengesahan->tanggal_bulan ?? '' }} × @endif @if(request('sort')) {{ ucwords(str_replace('_',' ', request('sort'))) }} × @endif
@endif {{-- ============================================================ CARD LIST — Premium (dengan foto 3:4) ============================================================ --}}
@if($anggota->count() > 0)
@foreach($anggota as $item)
{{-- Row Top: Avatar, Info, Status --}}
@php $fotoUrl = $item->id_gambar ? route('proxy.image', $item->id_gambar) : ''; @endphp @if($fotoUrl) Foto {{ $item->nama }} @else
{{ strtoupper(substr($item->nama, 0, 1)) }}
@endif
{{ $item->nama }} {{ $item->id_anggota }}
{{ $item->ttl }} {{ \Illuminate\Support\Str::limit($item->alamat, 60) }}
{{ $item->status }}
{{-- Row Actions — Rata Kanan, Sejajar, Fleksibel --}}
@if($user->role === 'super_admin') @endif Edit
@csrf @method('DELETE')
@endforeach
{{-- PAGINATION --}}
Menampilkan {{ $anggota->firstItem() ?? 0 }}{{ $anggota->lastItem() ?? 0 }} dari {{ $anggota->total() }} data
{{ $anggota->appends(request()->query())->links('pagination::bootstrap-5') }}
@else {{-- EMPTY STATE --}}
Tidak ada anggota
Belum ada anggota yang terdaftar di PAC ini.
Reset Filter
@endif
{{-- ============================================================ MODAL DOWNLOAD MASSAL ============================================================ --}} @if($user->role === 'super_admin') @endif {{-- ============================================================ MODAL PREVIEW & DOWNLOAD KTA ============================================================ --}} @if($user->role === 'super_admin') {{-- Area download tersembunyi --}}
{{-- ============================================================ SCRIPTS (TIDAK ADA PERUBAHAN LOGIKA) ============================================================ --}} @endif @endsection