@extends('layouts.admin.app') @section('title',\App\Utils\translate('customer_list')) @push('css_or_js') @endpush @section('content')

{{\App\Utils\translate('customer_list')}} {{$customers->total()}}

@if($walkingCustomer) @if($customers->currentPage() === 1) @endif @endif @foreach($customers as $key => $customer) @endforeach
{{\App\Utils\translate('#')}} {{ \App\Utils\translate('image') }} {{\App\Utils\translate('name')}} {{\App\Utils\translate('phone')}} {{ \App\Utils\translate('orders') }} {{ \App\Utils\translate('balance') }} {{\App\Utils\translate('action')}}
{{ 1 }} {{ $walkingCustomer->name }} @if ($walkingCustomer->id != 0) {{ $walkingCustomer->mobile }} @else {{ \App\Utils\translate('no_phone') }} @endif {{ $walkingCustomer->orders->count() }} @if ($walkingCustomer->id != 0)
{{ priceCurrencyFormatPlacing($walkingCustomer->balance, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }}
@else
{{ \App\Utils\translate('no_balance') }}
@endif
{{ $customers->firstItem() + $key+1 }} {{ $customer->name }} @if ($customer->id != 0) {{ $customer->mobile }} @else {{ \App\Utils\translate('no_phone') }} @endif {{ $customer->orders->count() }}
{{ priceCurrencyFormatPlacing($customer->balance, \App\Utils\Helpers::currency_symbol(), \App\Utils\Helpers::currency_position()) }}
@csrf @method('delete')
{!! $customers->links() !!}
@if(count($customers)==0)
{{\App\Utils\translate('Image Description')}}

{{ \App\Utils\translate('No_data_to_show')}}

@endif
@endsection @push('script_2') @endpush