@extends('hr_main') @section('title', '| Employee List') @section('content') @php $hr_module = DB::table('gnr_module')->where('id', 5)->value('status'); $isGuestRole = Auth::user()->isGuestRole(); $idCardPrintModuleCheck = \DB::table('hr_config')->where('title', 'employee_idCard_printing_module')->select('config_content')->first(); @endphp
@include('hr.employee.approvalModalList')
Employee List
@if (!$isGuestRole) @if ($hr_module != 0) Add @else Add @endif @endif
{!! Form::open([ 'url' => '/hr/employee/search', 'role' => 'form', 'class' => 'form-horizontal form-groups filter-form', 'method' => 'get', ]) !!}
{!! Form::select( 'filter[project]', $data['easycode']::getProject(), isset($data['filter']['project']) ? $data['filter']['project'] : '', ['class' => 'form-control getBranch', 'id' => 'filter_project'], ) !!}
{!! Form::select( 'filter[branch]', ['' => '---Branch---'], isset($data['filter']['branch']) ? $data['filter']['branch'] : '', ['class' => 'form-control select2', 'id' => 'filter_branch'], ) !!}
{!! Form::select( 'filter[position]', $data['easycode']::getPosition(), isset($data['filter']['position']) ? $data['filter']['position'] : '', ['class' => 'form-control'], ) !!}
{!! Form::select( 'filter[department]', $data['easycode']::getDepartment(), isset($data['filter']['department']) ? $data['filter']['department'] : '', ['class' => 'form-control'], ) !!}
@if ($hr_module == 1)
{!! Form::select( 'filter[grade]', $data['easycode']::getGrade(), isset($data['filter']['grade']) ? $data['filter']['grade'] : '', ['class' => 'form-control'], ) !!}
@endif
{!! Form::text( 'filter[nid_or_birth]', isset($data['filter']['nid_or_birth']) ? $data['filter']['nid_or_birth'] : '', ['class' => 'form-control', 'placeholder' => 'NID or Birth Certificate'], ) !!}
{!! Form::text('filter[name_or_id]', isset($data['filter']['name_or_id']) ? $data['filter']['name_or_id'] : '', [ 'class' => 'form-control', 'placeholder' => 'Name or ID', ]) !!}
{!! Form::select( 'filter[status]', $data['empStatus'], isset($data['filter']['status']) ? $data['filter']['status'] : '', ['class' => 'form-control'], ) !!}
{!! Form::close() !!}
 
@if ($hr_module == 1) @endif @php $page = request()->get('page') != '' ? intval(request()->get('page')) : 1; $sl = ($page - 1) * 100; @endphp @foreach ($data['list'] as $row)
SL Photo Name Employee Id BranchDepartmentDesignation Job Duration Status Action
{{ ++$sl }} @if ($row->photo != '')