<?php $__env->startSection('body'); ?>
    <div class="page-content"><div class="container"><div class="card content-area"><div class="card-innr"><div class="card-head"><h4 class="card-title">Deposits Log</h4></div><table class="data-table dt-init user-tnx"><thead><tr class="data-item data-head"><th class="data-col dt-tnxno">Tranx NO</th><th class="data-col dt-token">Amount</th><th class="data-col dt-amount">Gateway</th><th class="data-col dt-usd-amount">Charge</th><th class="data-col dt-type"><div class="dt-type-text">Status</div></th><th class="data-col"></th></tr></thead><tbody>

<?php if(count($deposits) >0): ?>
 <?php $__currentLoopData = $deposits; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr class="data-item"><td class="data-col dt-tnxno"><div class="d-flex align-items-center"><div class="data-state data-state-approved"><span class="d-none">Pending</span></div><div class="fake-class"><span class="lead tnx-id"><?php echo e(isset($data->trx ) ? $data->trx  : 'N/A'); ?></span><span class="sub sub-date"><?php echo date(' d/M/Y', strtotime($data->created_at)); ?></span></div></div></td><td class="data-col dt-token"><span class="lead token-amount"> <?php echo e($data->amount); ?></span><span class="sub sub-symbol"><?php echo $basic->currency; ?></span></td><td class="data-col dt-amount"><span class="lead amount-pay"> <?php echo e(isset($data->gateway->name) ? $data->gateway->name : 'N/A'); ?></span></td><td class="data-col dt-usd-amount"><span class="lead amount-pay"><?php echo e($data->charge); ?></span><span class="sub sub-symbol"><?php echo e($basic->currency); ?> <em class="fas fa-info-circle" data-toggle="tooltip" data-placement="bottom" title="1 ETH = 350.54 USD"></em></span></td><td class="data-col dt-type">
<?php if($data->status > 0): ?>
<span class="dt-type-md badge badge-outline badge-success badge-md">Successful</span><span class="dt-type-sm badge badge-sq badge-outline badge-success badge-md">S</span>
<?php else: ?>
<span class="dt-type-md badge badge-outline badge-warning badge-md">Pending</span><span class="dt-type-sm badge badge-sq badge-outline badge-warning badge-md">P</span>
<?php endif; ?>
</td><td class="data-col text-right"><div class="relative d-inline-block d-md-none"><a href="#" class="btn btn-light-alt btn-xs btn-icon toggle-tigger"><em class="ti ti-more-alt"></em></a><div class="toggle-class dropdown-content dropdown-content-center-left pd-2x"><ul class="data-action-list"><li><a href="#" class="btn btn-auto btn-primary btn-xs" data-toggle="modal" data-target="#<?php echo e($data->trx); ?>" ><span>View <span class="d-none d-xl-inline-block">Now</span></span><em class="ti ti-wallet"></em></a></li></ul></div></div><ul class="data-action-list d-none d-md-inline-flex"><li><a href="#" data-toggle="modal" data-target="#<?php echo e($data->trx); ?>"  class="btn btn-auto btn-primary btn-xs"><span>View <span class="d-none d-xl-inline-block">Now</span></span><em class="ti ti-wallet"></em></a></li></ul></td></tr>




<!-- Modal Large --><div class="modal fade" id="<?php echo e($data->trx); ?>" tabindex="-1"><div class="modal-dialog modal-dialog-lg modal-dialog-centered"><div class="modal-content"><a href="#" class="modal-close" data-dismiss="modal" aria-label="Close"><em class="ti ti-close"></em></a><div class="popup-body popup-body-lg"><div class="content-area"><div class="card-head d-flex justify-content-between align-items-center"><h4 class="card-title mb-0">Transaction Details</h4></div><div class="gaps-1-5x"></div><div class="data-details d-md-flex"><div class="fake-class"><span class="data-details-title">Tranx Date</span><span class="data-details-info"><?php echo date(' D, d/M/Y', strtotime($data->created_at)); ?></span></div><div class="fake-class"><span class="data-details-title">Tranx Status</span><span class="badge badge-success ucap">Approved</span></div><div class="fake-class"><span class="data-details-title">Payment Gateway</span><span class="data-details-info"><?php echo e(isset($data->gateway->name) ? $data->gateway->name : 'N/A'); ?></span></div></div><div class="gaps-3x"></div><h6 class="card-sub-title">Transaction Info</h6><ul class="data-details-list"><li><div class="data-details-head">Transaction Type</div><div class="data-details-des"><strong>Deposit</strong></div></li><!-- li --

<li><div class="data-details-head">Tx Hash</div><div class="data-details-des"><span><?php echo e($data->trx); ?></span> <span></span></div></li><!-- li --><li><div class="data-details-head">Transaction ID</div><div class="data-details-des"><span><?php echo e($data->trx); ?></span> <span></span></div></li><!-- li --><li><div class="data-details-head">Amount</div><div class="data-details-des"><?php echo $basic->currency; ?> <?php echo e($data->amount); ?></div></li>

<li><div class="data-details-head">Charge</div><div class="data-details-des"><?php echo $basic->currency; ?> <?php echo e($data->charge); ?></div></li>

<li><div class="data-details-head">Total Amount</div><div class="data-details-des"><?php echo $basic->currency; ?> <?php echo e($data->amount + $data->charge); ?></div></li>

<!-- li --></ul></div><!-- .modal-content --></div><!-- .modal-dialog --></div><!-- Modal End -->
 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
 <?php endif; ?>

 <!-- .data-item --></tbody></table></div><!-- .card-innr --></div><!-- .card --></div><!-- .container --></div><!-- .page-content -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('include.admindashboard', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>