{{ $contract->contract_number }}
{{ $contract->type_label }}
@php $sc = match($contract->status) { 'active'=>'status-active', 'expired'=>'status-expired', 'terminated'=>'status-expired', 'renewed'=>'status-pending', default=>'' }; @endphp
{{ $contract->status_label }}
@if($contract->auto_renew)
تجديد تلقائي
@endif
{{ $contract->start_date?->format('Y/m/d') }}
{{ $contract->end_date?->format('Y/m/d') ?? 'مفتوح (دائم)' }}
@if($contract->days_remaining !== null)
({{ $contract->days_remaining }} يوم متبقي)
@endif
@if($contract->probation_end_date)
{{ $contract->probation_end_date->format('Y/m/d') }} @if($contract->is_in_probation)في فترة التجربة@endif
@endif
{{ $contract->duration_months ?? '—' }} شهر