@if(!empty($user_document))
@foreach($user_document as $doc)
{{ $doc['document_label'] }} @php if(!empty($doc['document_note_text'])) { @endphp file-Note Text @php } @endphp @if(!empty($doc['document_id'])) @endif
@if(!empty($doc['document_id'])) @if(@$doc['document_count_by_type'] >= 1 && $doc['document_status'] != 2) @if($doc['document_status'] == 2) {{ $doc['document_status_name'] }} @elseif($doc['document_status'] == 1) {{ $doc['document_status_name'] }} @else {{ $doc['document_status_name'] }} @endif @endif @endif
@if($is_itn_user == 1) @if(array_key_exists('template_download_code', $doc) && !empty($doc['template_download_code']) && !empty($doc['common_template_file_name'])) @php $tdcode = encrypt([ 'dcode' => $doc['template_download_code'], 'doc_filename' => $doc['common_template_file_name'] ]); @endphp Template @elseif(!empty($doc['is_azure_template_download_path'])) Template @endif @elseif(!empty($doc['download_template_link'])) Template @endif
@if($is_itn_user == 1 && !empty($doc['document_id'])) @if(array_key_exists('document_download_code', $doc)) @php $dcode = encrypt([ 'dcode' => $doc['document_download_code'], 'doc_filename' => $doc['document_filename'] ]); @endphp View @else @if(!empty($doc['is_azure_download_path'])) View @else Pending to upload @endif @endif @elseif(!empty($doc['document_id']) && @$is_itn_user == 0) @if(@$doc['document_count_by_type'] >=1) @endif @if(@$doc['document_count_by_type'] >= 1) @if(!empty($doc['document_download_link'])) View @endif @if(check_route_access('document.action') ) Delete @endif @endif @if(empty($doc['document_status']) && @$doc['document_count_by_type'] >= 1 ) @if(check_route_access('document.action')) | @endif @elseif($doc['document_status'] == 1 && @$doc['document_count_by_type'] >= 1 ) @if(check_route_access('document.action')) @endif @elseif($doc['document_status'] == 2 ) @if(check_route_access('uploaddocument'))
Upload
@endif @endif @elseif(!empty($doc['user_template_id'])) @if(!empty($doc['user_template_download_link'])) View @endif @else @if(check_route_access('uploaddocument') && $is_itn_user == 0)
Upload
@else Pending to upload @endif @endif
@if(!empty($doc['document_id']))

Status: {{ $doc['document_status_name'] }}

Status Date: {{ dateformat($doc['document_status_date'], DISPLAY_DATETIME) }}

Uploaded Date: {{ $doc['document_uploaded'] }}

Approved/Rejected: {{ (!empty($doc['action_by']))?$doc['action_by']:'' }}

Uploaded By: {{ (!empty($doc['uploaded_by']))?$doc['uploaded_by']:'' }}

@endif @endforeach
@endif