Name: @if($latestLeaveRequest){{$latestLeaveRequest->employee_name}}
No.000{{$latestLeaveRequest->leaverequest_id}}@endif
Department:
@if($latestLeaveRequest && $latestLeaveRequest->employee_type == 'OperationEmployee')
Website Development
@elseif($latestLeaveRequest && ($latestLeaveRequest->employee_type == 'Content' || $latestLeaveRequest->employee_type == 'Graphic'))
SMM
@elseif($latestLeaveRequest && $latestLeaveRequest->employee_type == 'Accounting')
Accounting
@endif
Position. @if($latestLeaveRequest && ($latestLeaveRequest->employee_type == 'OperationEmployee'
|| $latestLeaveRequest->employee_type == 'Content' || $latestLeaveRequest->employee_type == 'Graphic' || $latestLeaveRequest->employee_type == 'Accounting'
|| $latestLeaveRequest->employee_type == 'Employee'))
@php
$permissions = $latestLeaveRequest->user->permissions;
@endphp
@if($permissions->contains('permission', 'back-end') || $permissions->contains('permission', 'front-end'))
Developer
@elseif($permissions->contains('permission', 'designer'))
Designer
@elseif($latestLeaveRequest->employee_type == 'Content')
Content Writer
@elseif($latestLeaveRequest->employee_type == 'Graphic')
Graphic Designer
@elseif($latestLeaveRequest->employee_type == 'Employee')
Sales
@elseif($latestLeaveRequest->employee_type == 'Accounting')
Accounting
@endif
@endif
Inclusive Date of Leave: @if($latestLeaveRequest){{ \Carbon\Carbon::parse($latestLeaveRequest->leave_date)->format('D, M d, Y') }} @endif
@if($latestLeaveRequest && $latestLeaveRequest->purpose_of_leave !== null)
Purpose / Reason:
{!! $latestLeaveRequest->purpose_of_leave !!}
@else
No leave request found.
@endif
Please Check:
@foreach($checks as $key => $check)
contains($check->check_id) ? 'checked' : '' }}>
@endforeach
Note: SIL should be applied at least two (2) weeks before the date of leave. If sick leave, employee should present medical
certificate.
@if($latestLeaveRequest && $latestLeaveRequest->employee_name !== null)
@if($latestLeaveRequest && ($latestLeaveRequest->status == "Approved by Operation Admin" || ($latestLeaveRequest->status == "Request Approved" && $Operation)))
{{$Operation->employee_name}}
Department Head
@else
Department Head
@endif
@if($latestLeaveRequest && $latestLeaveRequest->status == "Request Approved" && $TopAdmin)
{{$TopAdmin->employee_name}}
Top Management
@else
Top Management
@endif