@forelse ($customers as $item) @empty @endforelse
@lang('modules.customer.name') @lang('modules.customer.email') @lang('modules.customer.phone') @lang('modules.order.totalOrder') @lang('app.action')
{{ $item->name }} {{ $item->email ?? '--' }} {{ $item->phone ?? '--' }} {{ $item->orders_count }} @lang('menu.orders') @if(user_can('Update Customer')) @lang('app.update') @endif @if(user_can('Delete Customer')) @endif
@lang('messages.noCustomerFound')
{{ $customers->links() }}
{{ __("modules.customer.editCustomer") }} @if ($customer) @livewire('forms.editCustomer', ['customer' => $customer], key(str()->random(50))) @endif {{ __('Close') }} {{ __("menu.orders") }} @if ($customer) @livewire('customer.customerOrders', ['customer' => $customer], key(str()->random(50))) @endif {{ __('Close') }} @lang('modules.customer.deleteCustomer')? @lang('modules.customer.deleteCustomerMessage') {{ __('Cancel') }} @if ($customer) @lang('modules.customer.deleteWithOrder') {{ __('Delete') }} @endif