@extends('backEnd.master') @section('title') @lang('hr.payroll_bulk_print') @endsection @section('mainContent')
@if(userPermission('payroll-bulk-print-seacrh'))

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'payroll-bulk-print-seacrh', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
@if ($errors->has('role_id')) {{ $errors->first('role_id') }} @endif
@php $month = date('F'); @endphp
@if ($errors->has('payroll_month')) {{ $errors->first('payroll_month') }} @endif
@if ($errors->has('payroll_year')) {{ $errors->first('payroll_year') }} @endif
{{ Form::close() }}
@endif @if(isset($staffs))

@lang('hr.staff_list')

@foreach($staffs as $value) @endforeach
@lang('hr.staff_no') @lang('common.name') @lang('hr.role') @lang('hr.department') @lang('common.description') @lang('common.mobile') @lang('common.status') @lang('common.action')
{{$value->staff_no}} {{$value->first_name}} {{$value->last_name}} {{$value->roles !=""?$value->roles->name:""}} {{$value->departments !=""?$value->departments->name:""}} {{$value->designations !=""?$value->designations->title:""}} {{$value->mobile}} @php $getPayrollDetails = App\SmHrPayrollGenerate::getPayrollDetails($value->id, $payroll_month, $payroll_year); @endphp @if(!empty($getPayrollDetails)) @if($getPayrollDetails->payroll_status == 'G') @endif @if($getPayrollDetails->payroll_status == 'P') @endif @else @endif
@endif
@endsection @include('backEnd.partials.data_table_js')