<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="'Deji Busari">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />

    <link rel="SHORTCUT ICON" href="<?php echo e(asset('images/favicon.jpg')); ?>">
    <title>PAYMENT INVOICE FOR <?php echo e($receipt->transactionID); ?></title>
    <link href="https://fonts.googleapis.com/css?family=Changa" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
    <!-- Bootstrap -->
    <link href="<?php echo e(asset('vendors/bootstrap/dist/css/bootstrap.min.css')); ?>" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="<?php echo e(asset('vendors/font-awesome/css/font-awesome.min.css')); ?>" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="<?php echo e(asset('css/custom.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/style.css')); ?>" rel="stylesheet">
</head>
<body class="nav-md" style="font-family: 'Changa', sans-serif;">
<!-- jQuery -->

<div class="container">
    <div class="row">
        <div class="col-sm-6 col-sm-offset-3 col-xs-12" style="margin-top: 50px; margin-bottom: 20px; background: white; border: 1px solid whitesmoke; padding: 0px; border-radius: 8px;">
            <div class="well">
                <center>
                    <img src="<?php echo e(asset('images/sportpesa.png')); ?>" class="img-responsive" style="max-height: 55px;" alt="Doctor Odds">
                </center>
                <div class="row">
                    <hr>
                    <div class="col-sm-8 col-sm-offset-2 col-xs-12">
                        <center>
                            <h3>PAYMENT INVOICE <br><small><?php echo e(\Carbon\Carbon::parse($receipt->created_at)->format('D d M, Y h:ia')); ?></small>
                                <br>$<?php echo e(number_format($receipt->plan->dollarPrice, 2)); ?></h3>
                        </center>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <center>
                    <h4>Transaction Details</h4>
                </center>
                <table class="table table-striped table-hover table-bordered">
                    <thead>
                    <tr>
                        <th class="text-right">Customer Name:</th>
                        <td><?php echo e($customer->full_name); ?></td>
                    </tr>
                    <tr>
                        <th class="text-right">Email Address:</th>
                        <td><?php echo e($customer->email); ?></td>
                    </tr>
                    <tr>
                        <th class="text-right">Phone Number:</th>
                        <td><?php echo e($customer->phone); ?></td>
                    </tr>
                    <tr>
                        <th class="text-right">Amount:</th>
                        <td>$<?php echo e(number_format($receipt->plan->dollarPrice, 2)); ?></td>
                    </tr>
                    <tr>
                        <th class="text-right">Transaction ID:</th>
                        <td><?php echo e($receipt->transactionID); ?></td>
                    </tr>
                    <tr>
                        <th class="text-right">Reference:</th>
                        <td><?php echo e($receipt->transactionRef); ?></td>
                    </tr>
                    <tr>
                        <th class="text-right">Plan:</th>
                        <td><?php echo e($receipt->plan->category); ?> (<?php echo e($receipt->plan->accessTime); ?>)</td>
                    </tr>
                    <tr>
                        <th class="text-right">Date Subscribed:</th>
                        <td><?php echo e(\Carbon\Carbon::parse($receipt->created_at)->format('D d M, Y h:ia')); ?></td>
                    </tr>
                    <tr>
                        <th class="text-right">Subscription Expired:</th>
                        <?php
                            $next = strtotime('+'.$receipt->plan->accessTime, strtotime($receipt->created_at));
                            $nextDue = date("Y-m-d H:i:s", $next);
                        ?>
                        <td><?php echo e(\Carbon\Carbon::parse($nextDue)->format('D d M, Y h:ia')); ?></td>
                    </tr>
                    </thead>
                </table>
                <center>
                    All rights reserved.
                    (c) 2019 - Sportspesa Tips <br>
                    For inquiries or complaint, email us via soccabet6@gmail.com
                    <br><br>
                </center>
            </div>
        </div>
    </div>
</div>
<script src="<?php echo e(asset('vendors/jquery/dist/jquery.min.js')); ?>"></script>
<!-- Bootstrap -->
<script src="<?php echo e(asset('vendors/bootstrap/dist/js/bootstrap.min.js')); ?>"></script>
<!-- Custom Theme Scripts -->
<script src="<?php echo e(asset('js/native.js')); ?>"></script>
</body>
</html>