@php /** @var \App\Models\Vacation $vacation */ $empName = $vacation->employee?->full_name ?: ($vacation->employee?->user?->name ?? '—'); $cells = [ ['label' => 'الموظف', 'value' => e($empName)], ['label' => 'نوع الإجازة', 'value' => e($vacation->type?->name ?? '—')], ['label' => 'من تاريخ', 'value' => e(optional($vacation->start_date)->format('Y-m-d'))], ['label' => 'إلى تاريخ', 'value' => e(optional($vacation->end_date)->format('Y-m-d'))], ['label' => 'عدد الأيام', 'value' => e($vacation->total_days)], ['label' => 'الحالة', 'value' => view('pages.vacations.partial.status-badge', ['vacation'=>$vacation])->render()], ]; @endphp
@foreach($cells as $c)
{{ $c['label'] }}
{!! $c['value'] !!}
@endforeach @if($vacation->member_reason)
سبب الطلب
{{ $vacation->member_reason }}
@endif @if($vacation->leader_reason)
ملاحظة TL
{{ $vacation->leader_reason }}
@endif @if($vacation->hr_reason)
ملاحظة HR
{{ $vacation->hr_reason }}
@endif