@lang('ID') | @lang('Photo') | @lang('Name') | @lang('Mobile') | @lang('Email') | @lang('Role') | @lang('Status') | @lang('Created') | @can('read', App\Order::class)@lang('Orders') | @endcan @can('update-customers', App\Other::class)@lang('Edit') | @endcan
---|---|---|---|---|---|---|---|---|---|
{{$user->id}} |
@if($user->photo)
|
{{$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)) : '-'}} | @can('read', App\Order::class){{count($user->orders->where('location_id', Auth::user()->location_id))}} | @endcan @can('update-customers', App\Other::class)@if($user->id== 1 && Auth::user()->id != 1) - @else @endif | @endcan
@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()}} |