@if(session()->has('user_created')) @endif
@if(!empty($search = request()->s)) @lang('Showing :total_customers customers with :per_page customers per page for keyword: :keyword', ['total_customers'=>$users->total(), 'per_page'=>$users->perPage(), 'keyword'=>$search])  @lang('Show all') @else @lang('Showing :total_users customers with :per_page customers per page', ['total_users'=>$users->total(), 'per_page'=>$users->perPage()]) @endif @if(empty(request()->all))
@lang('Show customers in a single page') @else
@lang('Show customers with pagination') @endif
{{-- --}}
{{--
@lang('Advanced Search')
--}} @can('read', App\Order::class) @endcan @can('update-customers', App\Other::class) @endcan @if($users) @foreach($users as $user) @can('read', App\Order::class) @endcan @can('update-customers', App\Other::class) @endcan @endforeach @endif
@lang('ID') @lang('Photo') @lang('Name') @lang('Mobile') @lang('Email') @lang('Role') @lang('Status') @lang('Created')@lang('Orders')@lang('Edit')
{{$user->id}} @if($user->photo) Photo @else Photo @endif {{$user->name}} {{$user->mobile}} {{$user->email}} @if($user->role) @if($user->role->id == 1) {{$user->role->name}} @else {{$user->role->name}} @endif @else @lang('None') @endif {{$user->is_active ? __('Active') : __('Inactive')}} {{$user->created_at ? date('d-m-Y H:i:s', strtotime($user->created_at)) : '-'}} {{count($user->orders->where('location_id', Auth::user()->location_id))}} @if($user->id== 1 && Auth::user()->id != 1) - @else @endif
@if(!request()->all)
{{$users->appends($_GET)->links()}}
@endif
@if(!empty($search_c = request()->s_c)) @lang('Showing :total_customers addresses with :per_page addresses per page for keyword: :keyword', ['total_customers'=>$customers->total(), 'per_page'=>$customers->perPage(), 'keyword'=>$search_c])  @lang('Show all') @else @lang('Showing :total_customers addresses with :per_page addresses per page', ['total_customers'=>$customers->total(), 'per_page'=>$customers->perPage()]) @endif @if(empty(request()->all_c))
@lang('Show addresses in a single page') @else
@lang('Show addresses with pagination') @endif
{{--
--}}
{{--
@lang('Advanced Search')
--}} @if($customers) @foreach($customers as $customer) @endforeach @endif
@lang('ID') @lang('Name') @lang('Address') @lang('Phone') @lang('Email') @lang('Username if Registered') @lang('Created')
{{$customer->id}} {{$customer->first_name . ' ' . $customer->last_name}} {{$customer->address}}
{{$customer->city . ', ' . $customer->state . ' - ' . $customer->zip}}
{{$customer->country}}.
{{$customer->phone}} {{$customer->email}} {{$customer->user ? $customer->user->name .' @'.$customer->user->username : '-'}} {{$customer->created_at->toFormattedDateString()}}
@if(!request()->all_c)
{{$customers->appends($_GET)->links()}}
@endif