@extends('layouts.adminmaster') @section('styles') @endsection @section('content')

{{lang('Employees List', 'menu')}}

@can('Employee Create') {{lang('Add Employee')}} @endcan @can('Employee Importlist') {{lang('Import Employees List')}} @endcan
@can('Employee Delete') @endcan @can('Employee Delete') @endcan @cannot('Employee Delete') @endcannot @php $i = 1; @endphp @foreach ($users as $user) @endforeach
{{lang('Sl.No')}} {{lang('Employee Name')}} {{lang('Roles')}} {{lang('Register Date')}} {{lang('Status')}} {{lang('Actions')}}
{{$i++}} @if(Auth::user()->can('Employee Delete')) @if(Auth::check() && Auth::user()->id == '1') @if(Auth::user()->id != $user->id ) @endif @else @if(Auth::user()->id != $user->id && !empty($user->getRoleNames()[0]) && $user->getRoleNames()[0] != 'superadmin') @endif @endif @else @if(Auth::check() && Auth::user()->id == '1') @if(Auth::user()->id != $user->id ) @endif @else @if(Auth::user()->id != $user->id && !empty($user->getRoleNames()[0]) && $user->getRoleNames()[0] != 'superadmin') @endif @endif @endif {{Str::limit($user->email, '40')}} @if(!empty($user->getroleNames()[0])) {{Str::limit($user->getroleNames()[0], '40') }} @else ~ @endif {{$user->created_at->format(setting('date_format'))}} @if(Auth::user()->can('Employee Status')) @if(Auth::check() && Auth::user()->id == '1') @if(Auth::user()->id != $user->id ) @endif @else @if(Auth::user()->id != $user->id && !empty($user->getRoleNames()[0]) && $user->getRoleNames()[0] != 'superadmin') @endif @endif {{-- @if(!empty($user->getRoleNames()[0]) && $user->getRoleNames()[0] != 'superadmin') --}} @if($user->id != '1') @endif @else ~ @endif
@if(Auth::user()->can('Employee Edit')) @if(Auth::check() && Auth::user()->id == '1') @else @if($user->id != '1' && !empty($user->getRoleNames()[0]) && $user->getRoleNames()[0] != 'superadmin') @endif @endif @else ~ @endif @if(Auth::user()->can('Employee Delete')) @if(Auth::check() && Auth::user()->id == '1') @if(Auth::user()->id != $user->id ) @endif @else @if(Auth::user()->id != $user->id && !empty($user->getRoleNames()[0]) && $user->getRoleNames()[0] != 'superadmin') @endif @endif @else ~ @endif @if(Auth::user()->can('Reset Password')) @if(Auth::check() && Auth::user()->id == '1') @else @if($user->id != '1' && !empty($user->getRoleNames()[0]) && $user->getRoleNames()[0] != 'superadmin') @endif @endif @endif
@endsection @section('scripts') @endsection @section('modal') @include('admin.agent.passwordresetmodal') @endsection