@php $addImmigrationPermission = user()->permission('add_immigration'); $viewImmigrationPermission = user()->permission('view_immigration'); $deleteImmigrationPermission = user()->permission('delete_immigration'); $editImmigrationPermission = user()->permission('edit_immigration'); @endphp
@if(is_null($passport)) @if ($addImmigrationPermission == 'all' || ($addImmigrationPermission == 'owned' && ($employee->id == user()->id)) ) @lang('app.addPassport') @endif @endif @if($passport)

@lang('app.nationality')

{{ $passport->country->nationality }} {{ '('. $passport->country->name . ')' }}

@lang('modules.employees.scanCopy')

@if($passport->file) @else -- @endif

@else @endif
@if ($addImmigrationPermission == 'all' || ($addImmigrationPermission == 'owned' && ($employee->id == user()->id)) ) @lang('app.addVisa') @endif # @lang('modules.employees.visaNumber') @lang('app.country') @lang('modules.employees.issueDate') @lang('modules.employees.expiryDate') @lang('app.action') @forelse($visa as $key => $visaValue) {{ $key + 1 }} {{ $visaValue->visa_number }} {{$visaValue->country->name}} {{ $visaValue->issue_date->format(company()->date_format)}} {{ $visaValue->expiry_date->format(company()->date_format)}}
@empty @endforelse