
<div class="rounded-lg py-3 bg-white shadow-sm summary">
    <h3 class="text-center mb-3">Cover Plan Summary</h3>

    <div 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-four';
    }
    ?> text-white p-3 mb-3">
        <div class="row no-gutters">
            <div class="col-md-8">
                <h5 class="mb-0">{{$package["title"]}}</h5>
            </div>
            <div class="col-md-4 text-right">
                <strong class="h5 mb-0">{{env('CURRENCY_SYMBOL')}}{{$prices["total_price"]}} /  {{ucfirst(str_replace("Per", "", $packagesType))}} </strong>
            </div>
        </div>
    </div>
    <div class="p-3">
        <p class="mb-2 text-primary"><strong>Rolling {{ucfirst($type)}} Contract</strong></p>
        <p class="font-weight-bold">{{env('CURRENCY_SYMBOL')}}{{$prices["total_price"]}} will be debited within 10 working days of the plan start date, then the same date each {{$each}}.</p>

        <h4 class="font-weight-bold text-primary">Your Plan Includes</h4>
        <ul class="prodct-points">
            @if(count($facilities)>0)
            @foreach($facilities as $facility)

            @if($facility->hasPrice==0 || in_array($facility->id,$selectedFacilities))
            <li>{{$facility->title}}</li>
            @endif
            @endforeach
            @endif
        </ul>
        <p class=" mt-3 mb-0 text-center banner-logos">
            <a href="#">
                <img src="{{ asset('/front/images/Google-Reviews.png') }}" width="120" class="img-fluid mr-2" alt="">
            </a>
            <a href="#">
                <img src="{{ asset('/front/images/Trustpilot_brandmark_black.png') }}" width="200" class="img-fluid ml-2" alt="Gas Safe Registered">
            </a>
        </p>
    </div>
</div>