@extends('leave.print') @section('styles') @endsection @section('print_buttons') @if($leave->status === 'Certified')
@endif @endsection @section('header_controls')
← Back to Dashboard
@endsection @section('rejection_notice') @if($leave->status === 'Rejected' && $leave->certification_data) @php $cert = is_string($leave->certification_data) ? json_decode($leave->certification_data, true) : ($leave->certification_data ?? []); @endphp
🚫 Rejected by HR
Reason: {{ $cert['rejection_comment'] ?? 'No comment provided.' }}
{{ isset($cert['rejected_by']) ? 'By: ' . $cert['rejected_by'] : '' }} {{ isset($cert['rejected_at']) ? 'on ' . \Carbon\Carbon::parse($cert['rejected_at'])->format('F j, Y g:i A') : '' }}
@endif @endsection @section('signatory_overlay') @if($leave->status === 'Pending')
@endif @endsection