@if (!count($staffLicenses)) @else

@lang("content.list")

@foreach($staffLicenses as $i => $each) @php $licenseExists = $each->attachment_file && staffLicenseFileExists($user->id, $each->attachment_file) ? true : false @endphp @php $license = $each->license @endphp @php $isRequired = isLicenseRequiredForPosition($license, $position) @endphp @if ($license) @else @endif @if ($isRequired || ($each->expiry_date || $each->issue_date)) @else @endif @endforeach
No @lang("content.license_approval") @lang("content.abbr") @lang("content.doi") @lang("content.dex") @lang("content.status") @lang("content.actions")
{{ $i + 1 }}{{ $license->name }} {{ $license->abbr }} {{ $each->issue_date ? date('d-M-Y', strtotime($each->issue_date)) : '' }} {{ $each->expiry_date ? date('d-M-Y', strtotime($each->expiry_date)) : '' }}{!! Expiration_Date($each->expiry_date, $each->issue_date)['status'] !!}NOT REQUIRED @if ($licenseExists) @endif
@endif