dbfdg @extends('layouts.admin') @php // $profile=asset(Storage::url('uploads/avatar/')); $profile = \App\Models\Utility::get_file('uploads/avatar'); @endphp @section('page-title') @if (\Auth::user()->type == 'super admin') {{ __('Manage Companies') }} @else {{ __('Manage User') }} @endif @endsection @push('script-page') @endpush @section('breadcrumb') @if (\Auth::user()->type == 'super admin') @else @endif @endsection @section('action-btn')
@if (\Auth::user()->type == 'company' || \Auth::user()->type == 'HR') @endif @can('create user') @endcan
@endsection @section('content')
@foreach ($users as $user)
@if (\Auth::user()->type == 'super admin')
{{ !empty($user->currentPlan) ? $user->currentPlan->name : '' }}
@else
{{ ucfirst($user->type) }}
@endif
@if (Gate::check('edit user') || Gate::check('delete user'))
@if ($user->is_active == 1 && $user->is_disable == 1) @else @endif
@endif

{{ $user->name }}

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

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

{{ __('Plan Expired : ') }} {{ !empty($user->plan_expire_date) ? \Auth::user()->dateFormat($user->plan_expire_date) : __('Lifetime') }}

{{ $user->totalCompanyUser($user->id) }}

{{ $user->totalCompanyCustomer($user->id) }}

{{ $user->totalCompanyVender($user->id) }}

@endif
@endforeach
@endsection @push('script-page') @endpush