{{ __('navbar.Contracts') }}

@can('create_contract', App\Models\Contract::class) @endcan
@foreach ($data as $contract) @endforeach
# {{ __('table.Code') }} {{ __('table.Name') }} {{ __('table.Gender') }} {{ __('table.Job-Position') }} {{ __('table.Type') }} Status {{ __('table.Effective-Date') }} {{ __('table.Action') }}
{{ $loop->iteration }} {{ $contract->code }} {{ $contract->employee?->gender?->getLabel() ?? '-' }} {{ $contract->jobposition->name ?? '-' }} {{ $contract->employeestatus->name }} {!! $contract->status->getBadge() !!} {{ \Carbon\Carbon::parse($contract->date1)->format('d F Y') }} @if ($contract->status->getLabel() === 'Pending') @endif