@if(!empty($enquiry->reason))
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Registration</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ strtoupper($enquiry->reason?->registration) }}
        </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 }}
            {{ $enquiry->reason?->model }}
        </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>
    <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;">
            {{ $enquiry->reason?->mileage }}
        </td>
    </tr>
    @if(!empty($enquiry->reason?->body_type))
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Body type</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason?->body_type }}
        </td>
    </tr>
    @endif
    @if(!empty($enquiry->reason?->colour))
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Colour</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason?->colour }}
        </td>
    </tr>
    @endif
    @if($valuation_email_price_to_show == 'all')
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Retail value</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason?->adjusted_retail_price ?? $enquiry->reason?->retail_price }}
            <p style="font-size: 0.8em; color: #333; margin-bottom: 0;">The suggested market average retail valuation for the Car</p>
        </td>
    </tr>
    @endif
    @if(
        !empty($enquiry->reason?->clean_price)
        && in_array($valuation_email_price_to_show, ['all', 'clean_price'])
    )
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Clean value</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason?->adjusted_clean_price ?? $enquiry->reason?->clean_price }}
            <p style="font-size: 0.8em; color: #333; margin-bottom: 0;">An example of Showroom Condition is a vehicle that needs no reconditioning work. Paint work is free from scratches, chips and dents, interior/exterior trim and wheels are unmarked. Tyres need to have a minimum of 6mm tread across the face of the tyre. The vehicle must be in the original factory condition with all keys and a documented service history, warranted mileage with a minimum 6 month MOT and maximum of two owners.</p>
        </td>
    </tr>
    @endif
    @if(
        !empty($enquiry->reason?->average_price)
        && in_array($valuation_email_price_to_show, ['all', 'average_price'])
    )
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Average value</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason?->adjusted_average_price ?? $enquiry->reason?->average_price }}
            <p style="font-size: 0.8em; color: #333; margin-bottom: 0;">An example of Average Condition is a vehicle that may need a small amount of reconditioning work, including mechanical and/or paintwork, relative to the vehicle age and mileage. The vehicle will have a documented service history and a valid MOT certificate.</p>
        </td>
    </tr>
    @endif
    @if(
        !empty($enquiry->reason?->below_price)
        && in_array($valuation_email_price_to_show, ['all', 'below_price'])
    )
    <tr>
        <td width="32%" valign="top" style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            <strong>Below value</strong>
        </td>
        <td width="58%" valign="middle"
            style="border-bottom:1px solid {{ $layerAccentColour }};padding: 10px;">
            {{ $enquiry->reason?->adjusted_below_price ?? $enquiry->reason?->below_price }}
            <p style="font-size: 0.8em; color: #333; margin-bottom: 0;">An example of Below Average Condition is a vehicle that will require mechanical and/or bodywork repairs. The vehicle may have a limited service history.</p>
        </td>
    </tr>
    @endif
@endif
