<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.user.head','data' => ['title' => ''.e(auth()->user()->lastname.' '.auth()->user()->firstname).' | Account Statement - '.e(config('settings.site_name')).'']] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('user.head'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => ''.e(auth()->user()->lastname.' '.auth()->user()->firstname).' | Account Statement - '.e(config('settings.site_name')).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

<body class="bg-white" onload="printPromot()">
    <div class="nk-block">
        <div class="invoice invoice-print">
            <div class="invoice-wrap">
                <div class="invoice-brand text-center">
                    <img src="/images/logo.png" srcset="/images/logo.png 2x" alt="">
                </div>
                <div class="invoice-head">
                    <div class="invoice-contact">
                        <span class="overline-title">Bank Statement for</span>
                        <div class="invoice-contact-info">
                            <h4 class="title"><?php echo e(auth()->user()->firstname.' '.auth()->user()->lastname); ?></h4>
                            <ul class="list-plain">
                                <li><em class="icon ni ni-map-pin-fill fs-18px"></em><span><?php echo e(auth()->user()->address.','. auth()->user()->state.','. auth()->user()->country); ?>.</span></li>
                                <li><em class="icon ni ni-call-fill fs-14px"></em><span><?php echo e(auth()->user()->phone_number); ?></span></li>
                            </ul>
                        </div>
                    </div>
                    <div class="invoice-desc">
                        <h3 class="title">STATEMENT</h3>
                        <ul class="list-plain">
                            <li class="invoice-date"><span>Date</span>:<span><?php echo e(date('d M, Y')); ?></span></li>
                        </ul>
                    </div>
                </div><!-- .invoice-head -->
                <div class="invoice-bills">

                        <table class="table table-striped" data-auto-responsive="false">
                            <thead>
                                <tr class="nk-tb-item nk-tb-head">
                                    <th class="nk-tb-col"><span>txID</span></th>
                                    <th class="nk-tb-col"><span>Amount</span></th>
                                    <th class="nk-tb-col"><span>Account</span></th>
                                    <th class="nk-tb-col"><span>Type</span></th>
                                    <th class="nk-tb-col"><span>Bank</span></th>
                                    <th class="nk-tb-col"><span>Description</span></th>
                                    <th class="nk-tb-col"><span>Date/Time</span></th>
                                    <th class="nk-tb-col"><span>Status</span></th>
                                </tr><!-- .nk-tb-item -->
                            </thead>
                            <tbody>
                                <?php if($transactions->isEmpty()): ?>
                                    <tr class="nk-tb-item" >
                                        <td class="nk-tb-col text-center p-5" colspan="8">
                                            No records yet
                                        </td>
                                    </tr>
                                <?php else: ?>
                                    <?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tx): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr class="nk-tb-item">
                                            <td class="nk-tb-col">
                                                <span class="tb-sub"><?php echo e($tx->tx_id); ?></span>
                                            </td>
                                            <td class="nk-tb-col">
                                                <span class="tb-lead"><?php echo e(getUserCurrency().numbers($tx->amount)); ?></span>
                                            </td>
                                            <td class="nk-tb-col">
                                                <span class="tb-product">
                                                    <span class="title"><?php echo e($tx->receiver_account); ?> <small><?php echo e(ucwords($tx->receiver_name)); ?></small></span>
                                                </span>
                                            </td>
                                            <td class="nk-tb-col">
                                                <span class="tb-sub"><?php echo e(ucwords($tx->type)); ?>(<?php echo e($tx->category); ?>)</span>
                                            </td>
                                            <td class="nk-tb-col">
                                                <span class="tb-sub"><?php echo e(ucwords($tx->bank_name)); ?></span>
                                            </td>
                                            <td class="nk-tb-col">
                                                <span class="tb-sub"><?php echo e(substr($tx->remark,0,15)); ?><?php if(strlen($tx->remark) > 15): ?>...<?php endif; ?></span>
                                            </td>
                                            <td class="nk-tb-col">
                                                <span class="tb-sub"><?php echo e($tx->created_at->format('Y-m-d h:i A')); ?></span>
                                            </td>
                                            <td class="nk-tb-col">
                                                <?php if($tx->status === PENDING_TX): ?>

                                                    <span class="tb-sub">Pending</span>

                                                <?php elseif($tx->status === APPROVED_TX): ?>

                                                    <span class="tb-sub">Successful</span>

                                                <?php elseif($tx->status === HELD_BY_IMF_TX): ?>

                                                    <span class="tb-sub">Hold by IMF</span>

                                                <?php elseif($tx->status === IN_PROGRESS_TX): ?>

                                                    <span class="tb-sub">In Progress</span>

                                                <?php else: ?>
                                                    <span class="tb-sub">Failed</span>
                                                <?php endif; ?>
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </tbody>
                        </table>

                </div><!-- .invoice-bills -->
            </div><!-- .invoice-wrap -->
        </div><!-- .invoice -->
    </div><!-- .nk-block -->
    <script>
        function printPromot() {
            window.print();
        }
    </script>
</body>

</html>
<?php /**PATH /home2/fivemill/secure.fivemillionmiles.net/resources/views/user/print-statement.blade.php ENDPATH**/ ?>