@extends('layouts.admin') @section('content')
<div class="row mb-12">
    <div class="col-md-3 col-xxl-3">
        <div class="card h-md-100">
            <div class="card-body">
                <div class="row h-100 justify-content-between g-0">
                    <div class="col-5 col-sm-6 col-xxl pe-2">
                        <h6 class="mt-1">Months Covered</h6>
                        <div class="fs--2 mt-3">
                            <p>Dear {{$member->name}},</p>
                            <p>You payment has been received</p>
                            <p>Cash rendered: E {{$cash_tendered}} <br>
                                Change: E {{$change}}
                            </p>
                            <p> <strong> Payment Details </strong></p>
                            <p># of months: {{$months}}</p>
                            
                            @foreach ($covers as $cover)
                            <div class="d-flex flex-between-center mb-1">
                                <div class="d-flex align-items-center"><span class="dot bg-300"></span><span class="fw-semi-bold">{{$cover->months}}</span></div>
                            </div>
                            @endforeach

                            <p>Areas</p>
                            @foreach ($arrears as $arrear)
                            <div class="d-flex flex-between-center mb-1">
                                <div class="d-flex align-items-center"><span class="dot bg-300"></span><span class="fw-semi-bold">{{$arrear->months}}</span></div>
                            </div>
                            @endforeach




                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection