@extends('layouts.app') @php $ModelName = 'App\Models\HrmEmployee'; $moduleName = __('lang.employee'); $createItemName = __('lang.all') . $moduleName; $breadcrumbCurrentName = __('lang.all'); $breadcrumbMainName = $moduleName; $breadcrumbMainIcon = 'fas fa-users'; $ParentRouteName = 'hrm.employee'; $breadcrumbCurrentIcon = "format_list_bulleted"; $search_route = $ParentRouteName; if($action == 'trash'){ $search_route = $search_route.'.trashed'; $breadcrumbCurrentName =__('lang.trash'); } $role_manage_file = roleManageFile(); $all = config("$role_manage_file.Employee.All"); $create = config("$role_manage_file.Employee.Create"); $delete = config("$role_manage_file.Employee.Delete"); $edit = config("$role_manage_file.Employee.Edit"); $pdf = config("$role_manage_file.Employee.Pdf"); $permanently_delete = config("$role_manage_file.Employee.PermanentlyDelete"); $restore = config("$role_manage_file.Employee.Restore"); $show = config("$role_manage_file.Employee.Show"); $trash_show = config("$role_manage_file.Employee.TrashShow"); function checkFilter($request_name,$current_value=null){ // Check IF Current Value Exists in Required Request if($request_name && $current_value){ $request_value=request()->get($request_name); $check=$request_value == $current_value; $selected = ($check) ? 'selected' : ''; return $selected; } // Return Required Request Value if($request_name){ $request_value=request()->get($request_name); return $request_value; } return ''; } @endphp @section('title') {{ $moduleName }} -> {{ $breadcrumbCurrentName }} @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.hrm-left-sidebar') @stop @section('content')

{{__('lang.search_criteria')}}


@csrf @include('admin.hrm.employee.partials.search')
@if ($create && $action == 'index') {{__('lang.create')}} @endif
{{ csrf_field() }} @if (count($employees) > 0) @foreach ($employees as $employee) @endforeach
{{ __('lang.sno') }} {{ __('lang.employee') }} {{ __('lang.project') }} {{ __('lang.department') }} {{ __('lang.designation') }} {{ __('lang.phone') }} {{ __('lang.cnic') }} {{ __('lang.status') }} {{ __('lang.options') }}
{{ $loop->iteration }} {{ $employee->name ?? ' - ' }} {{ $employee->project->name ?? ' - ' }} {{ $employee->department->department_name ?? ' - ' }} {{ $employee->designation->designation_name ?? ' - ' }} {{ $employee->phone ?? ' - ' }} {{ $employee->cnic ?? ' - ' }} {{ !empty($employee->status) ? 'ACTIVE' : 'NOT ACTIVE' }}
{{ __('lang.sno') }} {{ __('lang.employee') }} {{ __('lang.project') }} {{ __('lang.department') }} {{ __('lang.designation') }} {{ __('lang.phone') }} {{ __('lang.cnic') }} {{ __('lang.status') }} {{ __('lang.options') }}
@else
{{ __('lang.there_has_no_data') }}
@endif
{{ $employees->links() }}
@stop @push('include-css') @endpush @push('include-js') @endpush