@extends('layouts.admin') @php $profile=asset(Storage::url('uploads/avatar/')); @endphp @section('page-title') {{__('Manage User')}} @endsection @push('script-page') @endpush @section('breadcrumb') @endsection @section('action-btn')
@endsection @section('content')
@foreach($users as $user)
{{ (!empty($user->last_login_at)) ? $user->last_login_at : '' }}
{{ $user->type }}
@if(Gate::check('edit user') || Gate::check('delete user'))
@if($user->is_active==1) @else @endif
@endif

{{ $user->name }}

@if($user->delete_status==0)
{{__('Soft Deleted')}}
@endif {{ $user->email }}

{{ ucfirst($user->type) }}
@if(\Auth::user()->type == 'super admin')
{{!empty($user->currentPlan)?$user->currentPlan->name:''}}

{{__('Plan Expired : ') }} {{!empty($user->plan_expire_date) ? \Auth::user()->dateFormat($user->plan_expire_date): __('Unlimited')}}
{{$user->totalCompanyUser($user->id)}} {{__('Users')}}
{{$user->totalCompanyCustomer($user->id)}} {{__('Customers')}}
{{$user->totalCompanyVender($user->id)}} {{__('Vendors')}}
@endif
@endforeach
@endsection