@php $file = isset($contract->id) ? $contract->getFile($file_type) : null; @endphp @if ((isset($show_btn) && $show_btn) || (isset($contract->document_delegation) && $contract->document_delegation == config('const.document_delegation_status_code.ushitra')))
@endif @if(isset($show_doc_info) && $show_doc_info) @if(!empty(old("contract_file.{$file_type}.file_path")) && Storage::disk('temp')->has(old("contract_file.{$file_type}.file_path"))) @if(\App\Helper\SystemHelper::checkImageFileExtension(old("contract_file.{$file_type}.file_path"))) @else {{ old("contract_file.{$file_type}.file_name") }} @endif @elseif(is_object($file) && !empty($file->file_path) && Storage::disk('contract')->has($contract->id.'/'.$file->file_path)) @if(\App\Helper\SystemHelper::checkImageFileExtension($file->file_path)) @else {{ $file->file_name }} @endif @else @endif @endif file_path) ? $file->file_path : '') }}"> file_name) ? $file->file_name : '') }}"> id) ? $file->id : '') }}"> @if ((isset($show_btn) && $show_btn) || (isset($contract->document_delegation) && $contract->document_delegation == config('const.document_delegation_status_code.ushitra'))) @endif