<?php $__env->startPush('style'); ?>
    <style>
        @media (max-width: 504px) {
            a.btn.h-45.btn--base {
                font-size: 10px;
            }
        }
    </style>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>

    <div class="card custom--card overflow-hidden">
        <div class="card-header">
            <div class="header-nav flex-sm-nowrap mb-0">
                <?php if (isset($component)) { $__componentOriginale48b4598ffc2f41a085f001458a956d1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale48b4598ffc2f41a085f001458a956d1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.search-form','data' => ['placeholder' => 'TRX No.','btn' => 'btn--base']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('search-form'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['placeholder' => 'TRX No.','btn' => 'btn--base']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale48b4598ffc2f41a085f001458a956d1)): ?>
<?php $attributes = $__attributesOriginale48b4598ffc2f41a085f001458a956d1; ?>
<?php unset($__attributesOriginale48b4598ffc2f41a085f001458a956d1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale48b4598ffc2f41a085f001458a956d1)): ?>
<?php $component = $__componentOriginale48b4598ffc2f41a085f001458a956d1; ?>
<?php unset($__componentOriginale48b4598ffc2f41a085f001458a956d1); ?>
<?php endif; ?>
                <a class="btn btn--base" href="<?php echo e(route('user.deposit.index')); ?>">
                    <i class="las la-plus"></i> <?php echo app('translator')->get('Deposit Now'); ?>
                </a>
            </div>
        </div>
        <div class="card-body p-0">
            <div class="table-responsive">
                <table class="table table--responsive--md">
                    <thead>
                        <tr>
                            <th><?php echo app('translator')->get('TRX No.'); ?></th>
                            <th><?php echo app('translator')->get('Amount'); ?></th>
                            <th><?php echo app('translator')->get('Charge'); ?></th>
                            <th><?php echo app('translator')->get('After Charge'); ?></th>
                            <th><?php echo app('translator')->get('Initiated At'); ?></th>
                            <th><?php echo app('translator')->get('Method'); ?></th>
                            <th><?php echo app('translator')->get('Status'); ?></th>
                            <th><?php echo app('translator')->get('Details'); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $deposits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deposit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td>#<?php echo e($deposit->trx); ?></td>

                                <td><?php echo e(showAmount($deposit->amount)); ?></td>

                                <td><?php echo e(showAmount($deposit->charge)); ?></td>

                                <td><?php echo e(showAmount($deposit->amount + $deposit->charge)); ?></td>

                                <td><em><?php echo e(showDateTime($deposit->created_at)); ?></em></td>

                                <td>
                                    <?php if($deposit->branch): ?>
                                        <span class="text-primary" title="<?php echo app('translator')->get('Branch Name'); ?>"><?php echo e(__(@$deposit->branch->name)); ?></span>
                                    <?php else: ?>
                                        <span class="text-primary" title="<?php echo app('translator')->get('Gateway Name'); ?>"><?php echo e(__(@$deposit->gateway->name)); ?></span>
                                    <?php endif; ?>
                                </td>

                                <td><?php echo $deposit->statusBadge ?></td>

                                <?php
                                    $details = $deposit->detail != null ? json_encode($deposit->detail) : null;
                                ?>

                                <td>
                                    <a href="<?php echo e(route('user.deposit.details', $deposit->trx)); ?>" class="btn btn--sm btn-outline--base"><i class="la la-desktop"></i> <?php echo app('translator')->get('Details'); ?></a>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="100%"><?php echo e(__($emptyMessage)); ?></td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
        <?php if($deposits->hasPages()): ?>
            <div class="card-footer">
                <?php echo e($deposits->links()); ?>

            </div>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pxmssriecy/heritagecrestbank.com/core/resources/views/templates/crystal_sky/user/deposit/index.blade.php ENDPATH**/ ?>