@if (file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot'))) @vite(['resources/css/app.css', 'resources/js/app.js']) @endif
| Nama | Role | Kontak | Rating | Warning | Status | Catatan | Aksi |
|---|---|---|---|---|---|---|---|
|
{{ $user->name }} {{ $user->email }} |
@php $roleLabels = [match ($user->role) { 'customer' => 'Pelanggan', 'driver' => 'Driver', 'seller' => 'Penjual', default => ucfirst((string) $user->role), }]; if ($user->sellerApplication?->status === 'approved') $roleLabels[] = 'Seller'; if ($user->driverApplication?->status === 'approved') $roleLabels[] = 'Driver'; $roleLabels = array_unique($roleLabels); @endphp @foreach ($roleLabels as $roleLabel) {{ $roleLabel }} @endforeach |
{{ $user->phone ?? '-' }}
{{ $user->created_at->format('d/m/Y') }}
|
@php $warningLevel = $user->warning_level ?? 'normal'; @endphp {{ ucfirst($warningLevel) }} | {{ $user->status === 'active' ? 'Aktif' : ($user->status === 'suspended' ? 'Ditangguhkan' : 'Diblokir') }} | {{ $user->warning_note ?: '-' }} | ||
| Belum ada mitra yang terdaftar. | |||||||