

<?php $__env->startSection('container_content'); ?>
<section class="box valign">
    <div class="container-fluid">
        <div class="content">
            <h3 class="title wow fadeInUp">E-Wallet</h3>
            <div class="row">
                <div class="col-lg-5">
                    <div class="text-error mt-5">
                        check your E-wallet balance
                    </div>
                    <div class="text-error mt-3">
                        <h5>last transection  </h5>
                    </div>
                    <?php if($latestInvoice): ?>
                    <div class="card-details main-back mt-3">
                        <div class="info row">
                            <div class="col-8">
                                <h6><?php echo e(date('F Y', strtotime($latestInvoice['created_at']))); ?></h6>
                                <p>invioce number #<?php echo e($latestInvoice['code']); ?></p>
                            </div>
                            <div class="col-4 text-right">
                                <h6><?php echo e($latestInvoice['meta']['total']); ?> SAR</h6>
                                <p>
                                    <?php echo e(date('d / m / y', strtotime($latestInvoice['created_at']))); ?>

                                    <span><?php echo e(date('H:i', strtotime($latestInvoice['created_at']))); ?></span>
                                </p>
                            </div>
                        </div>
                        <div class="content">
                            <div class="row justify-content-between">
                                <?php if($latestInvoice['meta']['remainingAmount'] ?? ''): ?>
                                <div class="bxsh text-center">
                                    <p><?php echo e(__('loops.remaining')); ?></p>
                                    <span><small><?php echo e($latestInvoice['meta']['remainingAmount']); ?> SAR</small></span>
                                </div>
                                <?php endif; ?>

                                <?php if($latestInvoice['meta']['managment_fees'] ?? ''): ?>
                                <div class="bxsh text-center">
                                    <p><?php echo e(__('loops.managment_fees')); ?></p>
                                    <span><small><?php echo e($latestInvoice['meta']['managment_fees']); ?> SAR</small></span>
                                </div>
                                <?php endif; ?>

                                <?php if($latestInvoice['meta']['government_fees'] ?? ''): ?>
                                <div class="bxsh text-center">
                                    <p><?php echo e(__('loops.government_fees')); ?></p>
                                    <span><small><?php echo e($latestInvoice['meta']['government_fees']); ?> SAR</small></span>
                                </div>
                                <?php endif; ?>

                                <?php if($latestInvoice['meta']['vat_fees'] ?? ''): ?>
                                <div class="bxsh text-center">
                                    <p><?php echo e(__('loops.vat_fees')); ?></p>
                                    <span><small><?php echo e($latestInvoice['meta']['vat_fees']); ?> SAR</small></span>
                                </div>
                                <?php endif; ?>

                                <?php if($latestInvoice['meta']['withdraw_fees'] ?? ''): ?>
                                <div class="bxsh text-center">
                                    <p><?php echo e(__('loops.withdraw_fees')); ?></p>
                                    <span><small><?php echo e($latestInvoice['meta']['withdraw_fees']); ?> SAR</small></span>
                                </div>
                                <?php endif; ?>

                                <?php if($latestInvoice['meta']['delay_fees'] ?? ''): ?>
                                <div class="bxsh text-center">
                                    <p><?php echo e(__('loops.delay_fees')); ?></p>
                                    <span><small><?php echo e($latestInvoice['meta']['delay_fees']); ?> SAR</small></span>
                                </div>
                                <?php endif; ?>

                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                </div>
                <div class="col-lg-4">
                    <div class="card-img">
                        <h2 class="sub-color"><?php echo e($totalBalance); ?> SAR <small>Available Balance</small></h2>
                        <div class="img visa-img">
                            <!-- <img src="<?php echo e(asset('assets/web/images/gr-visa.png')); ?>" alt=""> -->
                            <img src="<?php echo e(asset('assets/web/images/credit-card.jpeg')); ?>" alt="">
                            <span class="visa-number">
                                <?php echo e($card_number); ?>

                            </span>
                            <span class="ex-date">
                                <?php echo e($card['exp_year'] ?? ''); ?>

                                <!-- 12 / 20 -->
                            </span>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3">
                    <div class="card-btns">
                        <div class="row">
                            <?php if($totalBalance > 0): ?>
                            <div class="col-12">
                                <div class="bxsh">
                                    <a href="#">Withdraw Amount</a>
                                </div>
                            </div>
                            <?php endif; ?>

                            <?php if($totalBalance < 0): ?>
                            <div class="col-12">
                                <div class="bxsh">
                                    <a href="#">Add Amount</a>
                                </div>
                            </div>
                            <?php endif; ?>

                            <!-- <div class="col-6">
                                <div class="bxsh">
                                    <a href="#">send amount</a>
                                </div>
                            </div> -->

                            <div class="col-12">
                                <div class="bxsh">
                                    <a href="#">Edit Card</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<!-- Modals -->
<?php $__env->startSection('container_modals'); ?>

<?php if(($success_notes ?? '' ) || ($invoice['code'] ?? '' )): ?>
    <?php echo $__env->make('web.loops.invoice', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endif; ?>

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


<?php echo $__env->make('web.layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\wamp64\www\gam3iea\resources\views/web/wallet/index.blade.php ENDPATH**/ ?>