@can('add employee_excuses')
{{-- Excuses --}}
excuse_type_id
@foreach(\App\Models\ExcuseType::all() as $excuse)
@endforeach
{{-- Start From --}}
{{-- End To --}}
@if ($end_to && $start_from )
{{ abs( number_format((float)( strtotime($end_to) - strtotime($start_from) ) /60 /60, 0, '.', '') ) }} {{ __('hr_messages.Hours Will be the Excuse') }}
@endif
@endcan
@if (session()->has('message'))
{{ session('message') }}
@endif
@can('show employee_excuses')
#
{{__("hr_messages.Excuse Type")}}
{{__("messages.from")}}
{{__("messages.to")}}
{{trans_choice("messages.period",1)}}
{{__("hr_messages.Action")}}
{{__("messages.action_by")}}
{{__("messages.Updated By")}}
{{__("hr_messages.Action Date")}}
{{__("messages.Created At")}}
@forelse ($employee_excuses = \App\Models\EmployeeExcuse::where('employee_id',$employee->id)->paginate(Config::get('constants.paginate')) as $key =>$employee_excuse)
#{{$employee_excuses->firstItem() + $key}}
{{__("hr_messages.Excuse Type")}}{{$employee_excuse->excuse_type->name}}
{{__("messages.from")}}{{$employee_excuse->start_from}}
{{__("messages.to")}}{{$employee_excuse->end_to}}
{{trans_choice("messages.period",1)}}
{{ abs( number_format((float)( strtotime($employee_excuse->end_to) - strtotime($employee_excuse->start_from) ) /60 /60, 0, '.', '') ) }} Hours
{{__("hr_messages.Action")}}{{$employee_excuse->action}}
{{__("messages.action_by")}}{{($employee_excuse->action_by_user_id) ? $employee_excuse->action_by_user->name : '-'}}
{{__("messages.Updated By")}}{{($employee_excuse->last_updated_by)?$employee_excuse->last_updated_by_user->name:"-"}}
{{__("hr_messages.Action Date")}}{{$employee_excuse->action_date}}
{{__("messages.Created At")}}{{$employee_excuse->created_at}}
@if($employee_excuse->action == "pending")
@can("edit employee_excuses")
{{$employee_excuse->id}}
{{__('hr_messages.Employee Excuse')}}
mt-0
{{-- Excuses --}}
edit_excuse_type_id
@foreach(\App\Models\ExcuseType::all() as $excuse)
@endforeach
{{-- Start From --}}
{{-- End To --}}
@endcan
@can("delete employee_excuses")
mt-0
{{__('hr_messages.Employee Excuse')}}
{{$employee_excuse->id}}
@endcan
@endif
@empty
{{__("messages.Empty Result")}}
@endforelse
{{$employee_excuses->links()}}
@endcan