{{ $c['label'] }}
{!! $c['value'] !!}
@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