@php
// Document extensions are matched case-insensitively and safely handle a
// null original_name or a name without a dot.
$isDocumentFile = function (?string $name): bool {
return in_array(strtolower(pathinfo((string) $name, PATHINFO_EXTENSION)), ['pdf', 'csv', 'xls', 'xlsx'], true);
};
@endphp
@if(isset($company_logo_file))
@if($company_logo_file)
@if($isDocumentFile($company_logo_original_name))
@else
@endif
@endif
@else
@lang('admin::home.No file attached yet')
@endif
@if(isset($owner_id_file))
@if($owner_id_file)
@if($isDocumentFile($owner_id_original_name))
@else
@endif
@endif
@else
@lang('admin::home.No file attached yet')
@endif
@if(isset($menu_copy_file))
@if($menu_copy_file)
@if($isDocumentFile($menu_copy_original_name))
@else
@endif
@endif
@else
@lang('admin::home.No file attached yet')
@endif
@if(isset($cr_copy_file))
@if($cr_copy_file)
@if($isDocumentFile($cr_copy_original_name))
@else
@endif
@endif
@else
@lang('admin::home.No file attached yet')
@endif
@if(isset($national_address_copy_file))
@if($national_address_copy_file)
@if($isDocumentFile($national_address_copy_original_name))
@else
@endif
@endif
@else
@lang('admin::home.No file attached yet')
@endif
@if(isset($signed_contract_copy_file))
@if($signed_contract_copy_file)
@if($isDocumentFile($signed_contract_copy_original_name))
@else
@endif
@endif
@else
@lang('admin::home.No file attached yet')
@endif
@if(isset($bank_account_details_file))
@if($bank_account_details_file)
@if($isDocumentFile($bank_account_details_original_name))
@else
@endif
@endif
@else
@lang('admin::home.No file attached yet')
@endif
@if(isset($vat_certificated_file))
@if($vat_certificated_file)
@if($isDocumentFile($vat_certificated_original_name))
@else
@endif
@endif
@else
@lang('admin::home.No file attached yet')
@endif