@extends('admin.layout') @section('title',__('Users')) @section('css') @endsection @section('breadcrump')

{{ __('Users') }}

@endsection @section('content')

{{ __('Users table') }}

@foreach($users as $user) @endforeach
# {{ __('Name') }} {{ __('Phone') }} {{ __('State') }} {{ __('Change status') }} {{ __('Status') }} {{ __('Orders count') }} {{ __('Email') }} {{ __('Store commission') }} {{ __('Pickup points') }} {{ __('Store outlet') }} {{ __('Meta title') }} {{ __('Store active') }} {{ __('Paid balance') }} {{__('Total Sales')}} {{__('Total balance')}} {{ __('Created at') }} {{ __('Action') }}
{{$user->id}} {{$user->name}} {{$user['phone']}} @if(isset($user['state'])) {{$user['state']['name']}} @endif @if($user['active']) {{__('Active')}} @else {{__('Unactive')}} @endif {{count($user['orders'])}} {{$user->email}} {{$user->store_commission}} {{$user->pickup_points}} {{$user->store_outlet}} {{$user->meta_title}} @if($user['store_active']) {{__('Active')}} @else {{__('Unactive')}} @endif {{$user->paid_balance}} {{formated_price($user->total_sales())}} {{formated_price($user->total_balance)}} {{date('d-m-Y',strtotime($user->created_at))}}
@csrf @method('delete')
@include('admin.pages.users._form') @endsection @section('scripts') @include('admin.pages.users.users_index_js') @endsection