<table class="table table-striped">
    <thead>
        <tr>
            <th>Nama</th>
            <th>Alamat</th>
            <th>Kontak</th>
            <th>Masa Aktif</th>
            <th>Status</th>
        </tr>
    </thead>
    <tbody>
        @forelse($members as $member)
        <tr>
            <td>{{ $member->nama }}</td>
            <td>{{ $member->alamat }}</td>
            <td>{{ $member->kontak }}</td>
            <td>{{ $member->masa_aktif ? $member->masa_aktif->format('d-m-Y') : '-' }}</td>
            <td>
                @if($member->is_active)
                    <span class="badge bg-success">Aktif</span>
                @else
                    <span class="badge bg-danger">Tidak Aktif</span>
                @endif
            </td>
        </tr>
        @empty
        <tr>
            <td colspan="5">Tidak ada data.</td>
        </tr>
        @endforelse
    </tbody>
</table>