<?php
$title = 'My Payment Method';
$customerTypes = Config("params.customer_types");
$currency = Config("params.currency");
$paymentMethods = Config("params.payment_methods");
?>
<?php echo $__env->make('front/common/meta', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('content'); ?>

<div class="col-lg-8 px-lg-5 shadow py-lg-5 py-3">


    <h4 class="font-weight-bold">Payment Method </h4>
    <?php if(isset($model->paymentMethod)): ?>
    <div class="package package-header-bg-three text-white p-4 row no-gutters">
        <div class="col-md-6 text-md-left text-center"> <?php echo $paymentMethods[$model->paymentMethod] ?>
        </div>

    </div>
    <br clear="all"/>
    <div class="row">


        <?php if($model->paymentMethod == "credit_card"): ?>
        <ul class="list-group">
            <li class="list-group-item"><strong>Card Number:</strong> ************<?php echo e($paymentMethod->card->last4); ?></li>
            <li class="list-group-item"><strong>Brand:</strong> <?php echo e($paymentMethod->card->brand); ?></li>
            <li class="list-group-item"><strong>Expiry:</strong> <?php echo e($paymentMethod->card->exp_month); ?>/<?php echo e($paymentMethod->card->exp_year); ?></li>
        </ul>
        <?php else: ?>
        <?php if(isset($paymentMethod->start_date)): ?>
        <div class="col-lg-12">
            <ul class="list-group">
                <li class="list-group-item"><strong>Start Date:</strong> <?php echo date("d/m/Y", strtotime($paymentMethod->start_date)) ?></li>
            </ul>
        </div>
        <?php endif; ?>
        <?php endif; ?>


    </div
    <?php else: ?>
    <div class="form-row mt-4">
        <div class="alert alert-warning" role="alert">
            You haven't subscribe to any of our packages.
        </div>
    </div>

    <?php endif; ?>
</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('myscript'); ?>



<?php $__env->stopSection(); ?>
<?php echo $__env->make('front.layouts.account', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/seolocaj/public_html/homefloltd/resources/views/front/my_payment_method.blade.php ENDPATH**/ ?>