@php use App\Models\User; @endphp @extends('layouts.master') @section('title', __('index.employees_title')) @section('action', __('index.employees_action')) @section('button') @can('create_employee')
@endcan @endsection @section('main-content')
@include('admin.section.flash_message') @include('admin.employees.common.breadcrumb')
{{ __('index.employee_lists') }}
@if(!isset(auth()->user()->branch_id))
@endif
@can('create_employee') @endcan {{ __('index.reset') }}
{{ __('index.employee_lists') }}
@can('show_detail_employee') @endcan @canany(['edit_employee','delete_employee','change_password','force_logout']) @endcanany @forelse($users as $key => $value) @can('show_detail_employee') @endcan @canany(['edit_employee','delete_employee','change_password','force_logout']) @endcanany @empty @endforelse
#{{ __('index.full_name') }} {{ __('index.address') }} {{ __('index.email') }} {{ __('index.designation') }} {{ __('index.department') }} {{ __('index.role') }} {{ __('index.shift') }} {{ __('index.holiday_check_in') }} {{ __('index.workplace') }} {{ __('index.is_active') }}{{ __('index.action') }}

{{ ucfirst($value->name) }}

({{ ucfirst($value->role ? $value->role->name : 'N/A') }} )
{{ ucfirst($value->address) }} {{ $value->email }} {{ $value->post ? ucfirst($value->post->post_name) : 'N/A' }} {{ $value->department ? ucfirst($value->department->dept_name) : 'N/A' }} {{ $value->role ? ucfirst($value->role->name) : 'N/A' }} {{ $value->officeTime ? ucfirst($value->officeTime->shift) : 'N/A' }} {{ $value->workspace_type == User::FIELD ? 'Field' : 'Office' }}

{{ __('index.no_records_found') }}

{{ $users->appends($_GET)->links() }}
@include('admin.employees.common.password') @endsection @section('scripts') @include('admin.employees.common.scripts') @endsection