@if(isNullOrEmpty($application->final_page_calculate_date))
You have not selected pages , please select documents and update the form for the download the file.
@else
Document selected on OR last updated on {{YYYYMMDDHistoDateFormat($application->final_page_calculate_date)}}
@endif
Application Ready Date : {{YYYYMMDDtoDateFormat($application->ready_on_dt)}}
@php
$document_attachment_status = 'd-none';
@endphp
@if(!isNullOrEmpty($application->document_attachment) && ($application->acc_def == "Accepted"))
@php
$document_attachment_status = 'd-block';
@endphp
@endif
Download selected documents :
@if(!$scan_records->isEmpty())
@foreach ($scan_records AS $record_key => $record_value)
@if(!is_null($record_value->fil_nm))
@php
$extension = pathinfo($record_value->fil_nm, PATHINFO_EXTENSION);
$file_name=($extension == "tif") ? substr($record_value->fil_nm,0, -4).".pdf" : $record_value->fil_nm;
$path="/highcourt/digi_data/CBSL/".$scan_folder."/".$scan_folder_path."/".$application->case_year."/".$case_type_string."/".ltrim($application->case_no, "0")."/".$file_name;
$link_pdf=url('/').$path;
@endphp
@endif
@endforeach
@endif
@if(!$lower_court_documents->isEmpty())
@foreach ($lower_court_documents AS $lower_ct_record_key => $lower_ct_record_value)
@if($lower_ct_record_value->file_name2 == $lower_ct_record_value->cino)
@php
$lower_file_name=$lower_ct_record_value->file_name;
@endphp
@else
@php
$lower_file_name=$lower_ct_record_value->file_name2;
@endphp
@endif
@if(!is_null($lower_ct_record_value->fil_nm))
@php
$extension = pathinfo($lower_ct_record_value->fil_nm, PATHINFO_EXTENSION);
$file_name=($extension == "tif") ? substr($lower_ct_record_value->fil_nm,0, -4).".pdf" : $lower_ct_record_value->fil_nm;
$path="http://172.16.180.100:8080/server/api/core/bitstreams/$lower_ct_record_value->dspace_bitstream_id/content";
$link_pdf=$path;
@endphp
@endif
@endforeach
@endif
@if(!$case_orders->isEmpty())
@php
$path="";
@endphp
@foreach ($case_orders AS $case_order_key => $case_order_value)
@if (!is_null($case_order_value->pdfname) && trim($case_order_value->pdfname) !== "")
@php
$total_page=0;
$link_pdf=url('storage/orders/'.$case_order_value->pdfname);
@endphp
@if(file_exists(storage_path('/app/public/orders/'.$case_order_value->pdfname)))
@endif
@endif
@endforeach
@endif