@extends('layouts.sidebar') @section('title', 'Edit Overtime Request') @section('content') @if (in_array('Manage Employee', $privileges))

{{ ucfirst($request->type) }} Request Form

Document ID: OT-{{ str_pad($request->id, 5, '0', STR_PAD_LEFT) }}

@if ($request->is_approved && $request->approver) @endif @if ($request->payroll_notes) @endif
Employee Name: @if ($request->employee) {{ $request->employee->last_name }}, {{ $request->employee->first_name }} {{ $request->employee->middle_name ? strtoupper(substr($request->employee->middle_name, 0, 1)) . '.' : '' }} @else N/A @endif
Employee ID: {{ $request->employee_id ?? 'N/A' }}
Department: {{ $request->department->department_name ?? 'N/A' }}
Position: {{ $request->position }}
Request Date: {{ \Carbon\Carbon::parse($request->request_date)->format('F d, Y') }}
Regular Time: {{ $request->regular_start ?? '--:--' }} to {{ $request->regular_end ?? '--:--' }}
Actual Time: {{ $request->actual_start ?? '--:--' }} to {{ $request->actual_end ?? '--:--' }}
Total Hours: {{ $request->total_hours }} hrs
Reason: {{ $request->reason ?? 'N/A' }}
Status: {{ $request->is_approved === 1 ? 'Approved' : ($request->is_approved === 0 ? 'Pending' : 'Rejected') }}
Approved By: {{ $request->approver->name }} on {{ \Carbon\Carbon::parse($request->approved_at)->format('F d, Y h:i A') }}
Payroll Notes: {{ $request->payroll_notes }}

Employee Signature

Approver Signature

Printed on: {{ now()->format('F d, Y') }}
@if ($request->is_approved == null)
@csrf
@csrf
@endif
@endif @endsection