@if (auth()->user()->user_type_id == 1) @endif @if (auth()->user()->user_type_id == 1 || auth()->user()->user_type_id == 2 || auth()->user()->user_type_id == 3) @endif @foreach ($reportsDtData as $key => $floodreportsData) @php if ($floodreportsData['output_response_json'] != null) { if ($floodreportsData['vendor_id'] == 7) { $xmlstring = simplexml_load_string($floodreportsData['output_response_json']); $json = json_encode($xmlstring); $output = json_decode($json, true); if(isset($output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPFloodZoneIdentifier']) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPFloodZoneIdentifier'] == "") { $zone = '--'; } else if(isset($output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPFloodZoneIdentifier']) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPFloodZoneIdentifier'] != "") { $zone = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPFloodZoneIdentifier']; } else { $zone = '--'; } if(isset($output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_COMMUNITY_INFORMATION']['@attributes']['NFIPCommunityIdentifier']) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_COMMUNITY_INFORMATION']['@attributes']['NFIPCommunityIdentifier'] == "") { $community = '--'; } else if(isset($output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_COMMUNITY_INFORMATION']['@attributes']['NFIPCommunityIdentifier']) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_COMMUNITY_INFORMATION']['@attributes']['NFIPCommunityIdentifier'] != "") { $community = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_COMMUNITY_INFORMATION']['@attributes']['NFIPCommunityIdentifier']; } else { $community = '--'; } if(isset($output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPMapIdentifier']) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPMapIdentifier'] == "") { $map_panel = '--'; } else if(isset($output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPMapIdentifier']) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPMapIdentifier'] != "") { $map_panel = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION']['_BUILDING_INFORMATION']['@attributes']['NFIPMapIdentifier']; } else { $map_panel = '--'; } } elseif ($floodreportsData['vendor_id'] == 8) { $responseData = json_decode($floodreportsData['output_response_json'], true); if(isset($responseData['flood_cert_data']['flood_insurance']['flood_zone']) && $responseData['flood_cert_data']['flood_insurance']['flood_zone'] == "") { $zone = '--'; } else if(isset($responseData['flood_cert_data']['flood_insurance']['flood_zone']) && $responseData['flood_cert_data']['flood_insurance']['flood_zone'] != "") { $zone = $responseData['flood_cert_data']['flood_insurance']['flood_zone']; } else { $zone = '--'; } if(isset($responseData['flood_cert_data']['jurisdiction']['community_num']) && $responseData['flood_cert_data']['jurisdiction']['community_num'] == "") { $community = '--'; } else if(isset($responseData['flood_cert_data']['jurisdiction']['community_num']) && $responseData['flood_cert_data']['jurisdiction']['community_num'] != "") { $community = $responseData['flood_cert_data']['jurisdiction']['community_num']; } else { $community = '--'; } if(isset($responseData['flood_cert_data']['flood_insurance']['map_num']) && $responseData['flood_cert_data']['flood_insurance']['map_num'] == "") { $map_panel = '--'; } else if(isset($responseData['flood_cert_data']['flood_insurance']['map_num']) && $responseData['flood_cert_data']['flood_insurance']['map_num'] != "") { $map_panel = $responseData['flood_cert_data']['flood_insurance']['map_num']; } else { $map_panel = '--'; } } } else { $zone = '--'; $community = '--'; $map_panel = '--'; } $businessname = $floodreportsData['lender_loans_data']['business_name']; $firstname = $floodreportsData['lender_loans_data']['primary_borrower_first_name']; $middlename = $floodreportsData['lender_loans_data']['primary_borrower_middle_name']; $lastname = $floodreportsData['lender_loans_data']['primary_borrower_last_name']; $secfirstname = $floodreportsData['lender_loans_data']['secondary_borrower_first_name']; $secmiddlename = $floodreportsData['lender_loans_data']['secondary_borrower_middle_name']; $seclastname = $floodreportsData['lender_loans_data']['secondary_borrower_last_name']; $secondname = null; if ($middlename != null) { $prborrowername = $firstname . ' ' . $middlename . ' ' . $lastname; } else { $prborrowername = $firstname . ' ' . $lastname; } if($secfirstname != null) { $secondname = $secfirstname; } if($secmiddlename != null) { $secondname = $secondname . ' ' . $secmiddlename; } if($seclastname != null) { $secondname = $secondname . ' ' . $seclastname; } @endphp @if (auth()->user()->user_type_id == 1) @endif @if (auth()->user()->user_type_id == 1 || auth()->user()->user_type_id == 2 || auth()->user()->user_type_id == 3) @endif @endforeach
SI. No. Vendor Name Lender Name Service Order ID Application No# Borrower/Business Name Property Service Type Added Datetime Completed Date Zone Community Map-Panel
{{ $j++ }}

{{ $floodreportsData['lender_loans_data']['lender_data']['vendor']['name'] }}

{{ $floodreportsData['lender_loans_data']['lender_data']['lender_name'] }}

{{ $floodreportsData['service_order_id'] }}

{{ $floodreportsData['lender_loans_data']['application_no'] }}

{{ $prborrowername }}

{{ $floodreportsData['lender_loans_data']['property_address'] . ' ' . $floodreportsData['lender_loans_data']['property_city'] . ' ' . $floodreportsData['lender_loans_data']['property_state_data']['short_code'] . ' ' . $floodreportsData['lender_loans_data']['property_zip'] }}

{{ $floodreportsData['vendor_services_data']['vendor_service_name'] }}

{{ date('m-d-Y h:m a', strtotime($floodreportsData['created_at'])) }}

{{ date('m-d-Y h:m a', strtotime($floodreportsData['updated_at'])) }}

{{ $zone }}

{{ $community }}

{{ $map_panel }}