@extends('layouts.main') @section('content')
{{ session('success') }}
| No | Anggota | Nomor Anggota | Status | Tanggal | Aksi |
|---|---|---|---|---|---|
| {{ $keanggotaan->firstItem() + $index }} |
{{ substr($item->user->name ?? 'A', 0, 1) }}
{{ $item->user->name ?? 'N/A' }}
{{ $item->user->email ?? 'N/A' }}
|
{{ $item->nomor_anggota ?? '-' }}
|
@php $statusColors = [ 'aktif' => 'bg-green-100 text-green-800', 'pending' => 'bg-yellow-100 text-yellow-800', 'nonaktif' => 'bg-red-100 text-red-800', 'ditolak' => 'bg-gray-100 text-gray-800', ]; $statusColor = $statusColors[$item->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ ucfirst($item->status) }} |
{{ $item->tanggal_bergabung ? $item->tanggal_bergabung->format('d M Y') : '-' }}
|
|