@extends('layouts.admin') @section('title', 'Customers') @section('content')
@if(request('search') || request('status')) Clear @endif
@if($customers->isNotEmpty())
@csrf @method('DELETE')
@endif @if($customers->isNotEmpty()) @endif Customer Email Phone Account # Status Role Joined Actions @forelse($customers ?? [] as $customer)
@if($customer->avatar) {{ $customer->name }} @else {{ strtoupper(substr($customer->name, 0, 1)) }} @endif
{{ $customer->name }}
{{ $customer->email }} {{ $customer->phone ?? 'N/A' }} {{ $customer->account_number ?? 'N/A' }} {{ ucfirst($customer->status) }} {{ ucfirst($customer->role?->slug ?? 'customer') }} {{ $customer->created_at->format('M d, Y') }}
@csrf
@if($customer->status === 'active')
@csrf @method('PATCH')
@else
@csrf @method('PATCH')
@endif
@csrf @method('DELETE')
@empty

No customers found.

@endforelse
@endsection @push('scripts') @endpush