@push('title') Customer Management @endpush @can('view_customer_management')

Customers ({{count($customers)}})

@forelse($customers as $customer) @empty @endforelse
Image Name Email Phone Spent Orders Count Status Action
@if ($customer->profile_picture) @else @endif {{ $customer->name ?? 'System' }} {{ $customer->email }} {{ $customer->customerInfo->phone ?? 'N/A' }} {{ number_format($customer->orders->sum('total_amount'), 2) }} {{$config->currancy}} {{ $customer->orders->count()}} @if ($customer->is_blocked) Blocked @else Active @endif @can('view_customer_management') @endcan @can('block_customer_management') @if(!$customer->is_blocked) @else @endif @endcan
No customers found.
{{ $customers->appends(request()->query())->links() }}
@endcan