@foreach ($reportsDtData as $key => $floodreportsData) @php if ($floodreportsData['output_response_json'] != null) { $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 = '--'; } elseif ( 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'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator'] == '' ) { $insurance_req = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator'] != '' ) { $insurance_req = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator']; } else { $insurance_req = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'] == '' ) { $lomc = 'No'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'] != '' ) { $lomc = 'Yes'; } else { $lomc = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'] == '' ) { $date = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'] != '' ) { $date = date( 'm/d/Y', strtotime( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPLetterOfMapDate'], ), ); } else { $date = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityName'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityName'] == '' ) { $community_name = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityName'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityName'] != '' ) { $community_name = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityName']; } else { $community_name = '--'; } 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_id = '--'; } elseif ( 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_id = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityIdentifier']; } else { $community_id = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPStateCode'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPStateCode'] == '' ) { $community_state = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPStateCode'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPStateCode'] != '' ) { $community_state = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPStateCode']; } else { $community_state = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCounty'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCounty'] == '' ) { $community_county = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCounty'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCounty'] != '' ) { $community_county = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCounty']; } else { $community_county = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityFirmDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityFirmDate'] == '' ) { $firm_intiate_date = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityFirmDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityFirmDate'] != '' ) { $firm_intiate_date = date( 'm/d/Y', strtotime( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityFirmDate'], ), ); } else { $firm_intiate_date = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStartDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStartDate'] == '' ) { $participation_date = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStartDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStartDate'] != '' ) { $participation_date = date( 'm/d/Y', strtotime( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_COMMUNITY_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStartDate'], ), ); } else { $participation_date = '--'; } 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 = '--'; } elseif ( 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 = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelIdentifier'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelIdentifier'] == '' ) { $map_panel_id = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelIdentifier'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelIdentifier'] != '' ) { $map_panel_id = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelIdentifier']; } else { $map_panel_id = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelSuffixIdentifier'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelSuffixIdentifier'] == '' ) { $panel_suffix_id = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelSuffixIdentifier'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelSuffixIdentifier'] != '' ) { $panel_suffix_id = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelSuffixIdentifier']; } else { $panel_suffix_id = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelDate'] == '' ) { $map_date = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelDate'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelDate'] != '' ) { $map_date = date( 'm/d/Y', strtotime( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapPanelDate'], ), ); } else { $map_date = '--'; } 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'] == '' ) { $flood_zone_id = '--'; } elseif ( 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'] != '' ) { $flood_zone_id = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPFloodZoneIdentifier']; } else { $flood_zone_id = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapIndicator'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapIndicator'] == '' ) { $map_id = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapIndicator'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapIndicator'] != '' ) { $map_id = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_BUILDING_INFORMATION' ]['@attributes']['NFIPMapIndicator']; } else { $map_id = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStatusType'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStatusType'] == '' ) { $participation_status_type = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStatusType'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStatusType'] != '' ) { $participation_status_type = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['NFIPCommunityParticipationStatusType']; } else { $participation_status_type = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator'] == '' ) { $protected_area_id = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator'] != '' ) { $protected_area_id = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ '_INSURANCE_INFORMATION' ]['@attributes']['ProtectedAreaIndicator']; } else { $protected_area_id = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_Name'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_Name'] == '' ) { $name = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_Name'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_Name'] != '' ) { $name = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_Name']; } else { $name = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_StreetAddress'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_StreetAddress'] == '' ) { $street_address = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_StreetAddress'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_StreetAddress'] != '' ) { $street_address = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_StreetAddress']; } else { $street_address = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_City'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_City'] == '' ) { $city = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_City'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_City'] != '' ) { $city = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_City']; } else { $city = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_State'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_State'] == '' ) { $state = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_State'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_State'] != '' ) { $state = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_State']; } else { $state = '--'; } if ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_PostalCode'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_PostalCode'] == '' ) { $postalcode = '--'; } elseif ( isset( $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_PostalCode'], ) && $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_PostalCode'] != '' ) { $postalcode = $output['RESPONSE']['RESPONSE_DATA']['FLOOD_RESPONSE']['FLOOD_DETERMINATION'][ 'FULFILLMENT_PARTY' ]['@attributes']['_PostalCode']; } else { $postalcode = '--'; } } else { $zone = '--'; $insurance_req = '--'; $lomc = '--'; $date = '--'; $community_name = '--'; $community_id = '--'; $community_state = '--'; $community_county = '--'; $firm_intiate_date = '--'; $participation_date = '--'; $map_panel = '--'; $map_panel_id = '--'; $panel_suffix_id = '--'; $map_date = '--'; $flood_zone_id = '--'; $map_id = '--'; $participation_status_type = '--'; $protected_area_id = '--'; $name = '--'; $street_address = '--'; $city = '--'; $state = '--'; $postalcode = '--'; } @endphp @endforeach
SI. No. Service Order ID Property Service Type Document Flood Zone Insurance Required LOMC Date Community Name Community Number Community State Community County Firm Initiate date Participation Date Map Identifier Map Panel Identifier Panel Suffix Identifier Panel Date Flood Zone Identifier Map Indicator Participation Status Type Protected Area Indicator Fulfillment Party Name Fulfillment Party Address Fulfillment Party City Fulfillment Party State Fulfillment Party Postal Code Added Datetime Completed Date
{{ $j++ }}

{{ $floodreportsData['service_order_id'] }}

{{ $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'] }}

{{ asset('storage/docs/' . $floodreportsData['document']) }}

{{ $zone }}

{{ $insurance_req }}

{{ $lomc }}

{{ $date }}

{{ $community_name }}

{{ $community_id }}

{{ $community_state }}

{{ $community_county }}

{{ $firm_intiate_date }}

{{ $participation_date }}

{{ $map_panel }}

{{ $map_panel_id }}

{{ $panel_suffix_id }}

{{ $map_date }}

{{ $flood_zone_id }}

{{ $map_id }}

{{ $participation_status_type }}

{{ $protected_area_id }}

{{ $name }}

{{ $street_address }}

{{ $city }}

{{ $state }}

{{ $postalcode }}

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

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