@php use App\Domain\Time\BusinessCalendar; $tz = config('qw.business_timezone'); $day = fn ($at) => BusinessCalendar::formatKey($at->setTimezone($tz)->format('Y-m-d')); @endphp {{-- Port of leave-request-form.tsx + leave-history.tsx: the form card (5fr) and "my requests" card (7fr) side by side. --}}
{{ __('leave.form.successTitle') }}
{{ __('leave.form.successBody') }}
{{ __('leave.history.empty') }}
{{ __('leave.history.emptyHint') }}
{{ $s === $e ? BusinessCalendar::formatKey($s) : BusinessCalendar::formatKey($s).' – '.BusinessCalendar::formatKey($e) }} {{ trans_choice('leave.days', $r->days(), ['count' => $r->days()]) }}
$r->status === 'approved', 'bg-destructive/10 text-destructive' => $r->status === 'rejected', 'bg-warning-soft text-warning' => $r->isPending()])>{{ __('leave.status.'.strtoupper($r->status)) }}{{ __('twoRole.rejectionReason') }}: {{ $r->rejection_reason }}
@endif {{-- The worker's own words, shown as written. --}}{{ $r->comment }}
{{ __('leave.history.submitted', ['date' => $day($r->created_at)]) }}@if ($r->approved_at) · {{ __('leave.history.approvedOn', ['date' => $day($r->approved_at)]) }}@endif