@extends('backEnd.master') @section('title') @lang('hr.staff_attendance') @endsection @push('css') @endpush @section('mainContent')

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'staff-attendance-search', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'infix_form']) }}
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
{{ $errors->first('date_of_birth') }}
{{ Form::close() }}
@if (isset($staffs))

@lang('hr.staff_attendance')

@if ($attendance_type != '' && $attendance_type == 'H')
@lang('hr.attendance_already_submitted_as_holiday')
@elseif($attendance_type != '' && $attendance_type != 'H')
@lang('hr.attendance_already_submitted')
@endif
@if ($attendance_type != 'H')
@csrf
@else
@csrf
@endif
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'staff-attendance-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
@foreach ($staffs as $staff) @endforeach
@lang('hr.staff_no') @lang('hr.staff_name') @lang('hr.role') @lang('hr.attendance') @lang('hr.note')
{{ $staff->staff_no }} {{ $staff->first_name . ' ' . $staff->last_name }} {{ $staff->roles != '' ? $staff->roles->name : '' }}
DateWiseStaffAttendance != null ? ($staff->DateWiseStaffAttendance->attendence_type == 'P' ? 'checked' : '') : 'checked' }}>
DateWiseStaffAttendance != null ? ($staff->DateWiseStaffAttendance->attendence_type == 'L' ? 'checked' : '') : '' }}>
DateWiseStaffAttendance != null ? ($staff->DateWiseStaffAttendance->attendence_type == 'A' ? 'checked' : '') : '' }}>
@lang('hr.error')
@endif
@endsection @include('backEnd.partials.date_picker_css_js')