@extends('hr_main') @section('title', '| Periodic Staff Report') @section('stylesheets') @endsection @section('content')

{{ $pageTitle }}

@php $userAccessibleBranchIds = App\Service\Service::getEngagedBranchesByUserId(Auth::user()->id); if(Auth::user()->branchId ==1 ) { $branchOptions = ['All' => 'All (With HO)', '-1' => 'All (WithOut HO)']; } else { $branchOptions = ['0' => 'All']; } $branchOptions = $branchOptions + DB::table('gnr_branch')->select(DB::raw("CONCAT(LPAD(branchCode, 3, 0), ' - ', name) AS nameWithCode"), 'id') ->whereIn('id', $userAccessibleBranchIds) ->pluck('nameWithCode', 'id') ->all(); $searchElements = [ ['element' => 'project', 'col' => 1, 'attributes' => ['print_order' => '1']], ['element' => 'report_level', 'attributes' => ['print' => '0']], ['element' => 'branchId', 'options' => $branchOptions,'col' => 1, 'attributes' => ['print_order' => '2']], ['element' => 'custom', 'type' => 'select', 'name' => 'reportType', 'id' => 'reportType', 'options' => ['HR' => 'HR', 'MIS' => 'MIS'], 'label' => 'Report Type:', 'col' => 1, 'attributes' => ['print_order' => '3']], ['element' => 'dateFrom', 'col' => 1, 'attributes' => ['print' => '0']], ['element' => 'dateTo', 'col' => 1, 'attributes' => ['print' => '0']], ['element' => 'custom', 'type' => 'select', 'name' => 'positionTypeFilter', 'id' => 'positionTypeFilter', 'options' => ['All' => 'All', 'Active' => 'Active'], 'label' => 'Designation:', 'col' => 1, 'attributes' => ['print_order' => '3']] ]; @endphp @include('partials.searchPanel.main', ['searchElements' => $searchElements, 'buttonLevel' => 'Show'])
{{-- ./row --}}
{{-- ./panel-body --}}
{{-- ./col-md-12 --}}
{{-- ./row --}} @endsection @section('footerAssets') @endsection