{{-- resources/views/hpi_enquiry_request.blade.php --}}
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:sup="http://webservices.hpi.co.uk/SupplementaryEnquiryV1">
    <soapenv:Header/>
    <soapenv:Body>
        <EnquiryRequest xmlns="http://webservices.hpi.co.uk/SupplementaryEnquiryV1">
            <Authentication>
                <SubscriberDetails>
                    <CustomerCode>{{ $data['subscriber_details']['customer_code'] }}</CustomerCode>
                    <Initials>{{ $data['subscriber_details']['initials'] }}</Initials>
                    <Password>{{ $data['subscriber_details']['password'] }}</Password>
                </SubscriberDetails>
            </Authentication>
            <Request>
                <Asset>
                    <Vrm>{{ $data['asset']['vrm'] }}</Vrm>
                    <Vin>{{ $data['asset']['vin'] }}</Vin>
                    <Reference>{{ $data['asset']['reference'] }}</Reference>
                </Asset>
                <PrimaryProduct>
                    <Code>{{ $data['primary_product']  }}</Code>
                </PrimaryProduct>
                @if($data['supplementary_product'])
                    <SupplementaryProduct>
                        <Code>{{ $data['supplementary_product']  }}</Code>
                    </SupplementaryProduct>
                @endif
            </Request>
        </EnquiryRequest>
    </soapenv:Body>
</soapenv:Envelope>
