<div class="checkout-form-header mt-md-0 mt-5 pb-3 pt-4 col-md-12 text-center px-0">
    <div class="form-header-image">
        <img src="{{ asset('/front/images/emblem.svg') }}" width="70" alt="">
    </div>
</div>
<div class="px-md-5 px-2">
    <h3 class="text-center mb-lg-4">Cover Plan Summary</h3>
    <h4 class="text-primary mb-4 bg-black py-2 text-center rounded-lg">Payment Frequency: {{$packagesType}}</h4>

    <table class="table table-borderless package-summary-table">
        <tbody>
            <tr class="<?php
            if ($package['id'] == 1 || $package['id'] == 6) {
                echo 'package-header-bg-one';
            } else if ($package['id'] == 2 || $package['id'] == 7) {
                echo 'package-header-bg-two';
            } else if ($package['id'] == 3 || $package['id'] == 8) {
                echo 'package-header-bg-three';
            } else if ($package['id'] == 10 || $package['id'] == 11) {
                echo 'package-header-bg-four';
            } else {
                echo 'package-header-bg-three';
            }
            ?> text-white">
                <td class="font-weight-bold">{{$package["title"]}} Cover Plan</td>
                <td width="50" class="left-border font-weight-bold">{{env('CURRENCY_SYMBOL')}}{{numberformat($prices["price"])}}</td>
            </tr>


            @if(count($facilities)>0)
            @foreach($facilities as $facility)

            @if($facility->hasPrice==0 || in_array($facility->id,$selectedFacilities))
            <tr>
                <td class="font-weight-bold"><i class="fas fa-check text-primary"></i> {{$facility->title}}</td>
                <td></td>
            </tr>
            @endif

            @endforeach
            @endif

            @if(count($selectedFacilities)==0)
            <tr>
                <td class="font-weight-bold">Call Out Charge {{$excess->title}}</td>
                <td></td>
            </tr>
            @endif


            <tr class="bg-light">
                <td class="font-weight-bold">
                    VAT Amount:
                </td>
                <td class="font-weight-bold left-border"> {{env('CURRENCY_SYMBOL')}}{{numberformat($prices["vat_amount"])}}</td>
            </tr>
            <tr>
                <td></td>
                <td></td>
            </tr>
            <tr class="bg-gradiat-color text-white">
                <td class="font-weight-bold ">
                    Total Amount
                </td>
                <td class="font-weight-bold left-border"> {{env('CURRENCY_SYMBOL')}}{{$prices["total_price"]}}</td>
            </tr>
        </tbody>
    </table>
    <div class="text-center py-4">
        <button type="button" class="btn back btn-primary bg-black-gradiant btn-lg px-4 border-0 shadow summaryBackButton mr-3"><i class="fas fa-location-arrow pr-2"></i> Back</button>
        <button type="button" class="btn summaryNextButton btn-primary btn-lg bg-black-gradiant border-0 text-white px-4">Next <i class="fas fa-location-arrow pl-2"></i></button>

    </div>
</div>