@if(!empty($enquiry->reason))
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Location</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason->dealership?->name }}
        </td>
    </tr>
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Vehicle VRM</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason->registration_number }}
        </td>
    </tr>
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Vehicle Make/Model</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason->make?->name }}
            {{ $enquiry->reason->model?->name }}
        </td>
    </tr>
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Derivative</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason->derivative }}
        </td>
    </tr>
    @if(!empty($enquiry->reason->odometer_mi))
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Mileage</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            @if(\App\Facades\Settings::get('automotive-distance_measurement') === 'mi')
                {{ $enquiry->reason->odometer_mi }}
            @else
                {{ $enquiry->reason->odometer_km }}
            @endif
        </td>
    </tr>
    @endif
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Price</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason->price }}
        </td>
    </tr>
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Website link</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <a href="{{ \App\Facades\Site::vehicleUrl($enquiry->reason) }}">View on website</a>
        </td>
    </tr>
@endif
