<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

    <style>
        .receipt-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 20px;
        }
        .receipt-footer {
        margin-top: 50px;
        text-align: center;
        font-size: 14px;
        }
      </style>
    <title>Payment Receipt Templete</title>
  </head>
  <body>
  
    <div class="container-fluid">
        <!-- Receipt Header -->
        <div class="receipt-header">

        <div style="text-align: center;">
          <!-- <h3> John Ambulance of Kenya</h3> -->
          <img src="https://walkathon.stjohnkenya.org/assets/images/stjohn.jpg" alt="logo" width="150" height="60">
          <h3>Receipt</h3>
        </div>

         
        <!-- Receipt Content Goes Here -->
        <div class="receipt-content">
          <!-- Your receipt content here -->
            <p><strong>Date:</strong> {{ \Carbon\Carbon::parse($date)->format('d F Y') }}</p>
            <p><strong>Voucher Type:</strong> Mpesa Receipts</p>
            <p><strong>Payment Method:</strong> Mpesa <strong>REF:</strong> {{$refno}}</p>
            <p><strong>Amount:</strong> KES: {{$paymentAmount}}</p>
            <p><strong>Name:</strong> {{$studentnames}}</p>

            <!-- Table for further details -->
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>#</th>
                    <th>Particulars</th>
                    <th>Total</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>1</td>
                    <td>{{$service}}</td>
                    <td>KES {{$paymentAmount}}</td>
                </tr>
                <!-- <tr>
                    <td>2</td>
                    <td>Manual Guide</td>
                    <td>KES 300.00</td>
                </tr> -->
                <tr>
                    <td colspan="2">Total</td>
                    <td>KES {{$paymentAmount}}</td>
                </tr>
                <!-- Add more rows if needed -->
                </tbody>
            </table>
            </div>
        </div>
        <div class="receipt-footer">
            <p>This is a system-generated receipt. <br>
            For any enquiries, please contact us at: Email: accounts@stjohnkenya.org <br>
            Phone: 0721 611 555</p>
          </div>
      </div>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  </body>
</html>