@php($canEditCustomer = \App\Support\AdminAccess::canAction('customers', 'edit')) @php($canDeleteCustomer = \App\Support\AdminAccess::canAction('customers', 'delete')) @php($canCreateCustomer = \App\Support\AdminAccess::canAction('customers', 'create'))

{{ __('Customers') }}

{{ __('Manage your customer accounts and credit limits') }}
@if($canCreateCustomer) @endif
@if (session()->has('message'))
{{ session('message') }}
@endif
@forelse($all_customers as $item) {{-- --}} @empty @endforelse
{{ __('Name') }} {{ __('Phone') }} {{ __('Email') }} {{ __('TRN') }} {{ __('Opening Balance') }} {{ __('Credit Limit') }} {{ __('Status') }} {{ __('Actions') }}
{{ $item->display_name }}
{{ $item->phone ?? '-' }} {{ $item->email ?? '-' }} {{ $item->trn ?? '-' }} Rs. {{ number_format($item->opening_balance) }} Rs. {{ number_format($item->credit_limit) }} {{ ucfirst($item->status) }}
{{ strtoupper($item->status) }}
@if($canEditCustomer) @endif @if($canDeleteCustomer) @endif
{{ __('No customers found.') }}