@php $mi_details = @$step_verified_data['mi_details']; @endphp

Medical Insurance

@if($is_step_success == 1 && !empty($mi_details)) @if(count($mi_details) > 1)
@foreach($mi_details as $mi_data) @php $is_active = ($loop->index == 0)?"active":""; $insurance_company = $mi_data['insurance_company']; $insurance_guides = $mi_data['insurance_guides']; @endphp

Following is your medical insurance details.

Full Name
{{ $mi_data['first_name'].' '.$mi_data['last_name'] }}
Email
{{ $mi_data['email_address'] }}
Policy Number
{{ $mi_data['policy'] }}
Insurance Period
From: {{ dateformat($mi_data['start'],'M d, Y') }} To: {{ dateformat($mi_data['end'],'M d, Y') }}
Insurance Status
{{ $mi_data['status'] }}
ATTENTION: YOU CAN DOWNLOAD THE OFFICIAL DOCUMENTS RELATED TO YOUR MEDICAL INSURANCE BELOW!
@if(!empty($insurance_guides)) @foreach($insurance_guides as $file) @php $file = (array) $file; $dcode = encrypt([ 'dcode' => $file['download_code'], 'doc_filename' => $file['name'] ]); @endphp
{{ $file['name'] }}
@endforeach @endif
@endforeach
@else @php $mi_data = $mi_details[0]; $insurance_guides = $mi_data['insurance_guides']; @endphp

Following is your medical insurance details.

Full Name
{{ $mi_data['first_name'].' '.$mi_data['last_name'] }}
Email
{{ $mi_data['email_address'] }}
Policy Number
{{ $mi_data['policy'] }}
Insurance Period
From: {{ dateformat($mi_data['start'],'M d, Y') }} To: {{ dateformat($mi_data['end'],'M d, Y') }}
Insurance Status
{{ $mi_data['status'] }}
ATTENTION: YOU CAN DOWNLOAD THE OFFICIAL DOCUMENTS RELATED TO YOUR MEDICAL INSURANCE BELOW!
@if(!empty($insurance_guides)) @foreach($insurance_guides as $file) @php $file = (array) $file; $dcode = encrypt([ 'dcode' => $file['download_code'], 'doc_filename' => $file['name'] ]); @endphp
{{ $file['name'] }}
@endforeach @endif
@endif @else

Your Medical Insurance details will appear here, as soon as it is available.

@endif