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

<script>
function goBack() {
  window.history.back()
}
</script>


<div class="page-content"><div class="container"><div class="card content-area"><div class="card-innr"><div class="card-head d-flex justify-content-between align-items-center"><h4 class="card-title mb-0">Transaction Details</h4><a href="#" onclick="goBack()" class="btn btn-sm btn-auto btn-primary d-sm-block d-none"><em class="fas fa-arrow-left mr-3"></em>Back</a><a href="#" onclick="goBack()" class="btn btn-icon btn-sm btn-primary d-sm-none"><em class="fas fa-arrow-left"></em></a></div><div class="gaps-1-5x"></div><div class="data-details d-md-flex"><div class="fake-class"><span class="data-details-title">Request Date</span><span class="data-details-info"><?php echo e($data->created_at); ?></span></div><div class="fake-class"><span class="data-details-title">Request Status</span>


<?php if($data->status == 1): ?>
<span class="badge badge-success ucap">Approved</span>
<?php elseif($data->status == 0): ?>
<span class="badge badge-warning ucap">Pending</span>
<?php elseif($data->status == -2): ?>
<span class="badge badge-danger ucap">Rejected</span>
<?php endif; ?>

</div><div class="fake-class"><span class="data-details-title">Username</span><span class="data-details-info">  <strong><?php echo e($data->user->username); ?></strong> (<?php echo e($data->user->email); ?>)</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">Payment Gateway</div><div class="data-details-des"><strong><?php if($data->gateway_id == 0): ?> Bank Transfer <?php else: ?> <?php echo e($data->gateway->name); ?> <?php endif; ?> <small>- Payment Method</small></strong></div></li><!-- li --><li><div class="data-details-head">Amount</div><div class="data-details-des"><strong><?php echo number_format($data->amount, $basic->decimal); ?> <?php echo e($basic->currency); ?></strong></div></li><!-- li --><li><div class="data-details-head">Deposit Charge</div><div class="data-details-des"><span><?php echo number_format($data->charge, $basic->decimal); ?><?php echo e($basic->currency); ?></span> <span></span></div></li><!-- li --><li><div class="data-details-head">Total Amount</div><div class="data-details-des"><span><?php echo number_format($data->amount, $basic->decimal); ?><?php echo e($basic->currency); ?></span> <span></span></div></li><!-- li --><li><div class="data-details-head">TRX ID</div><div class="data-details-des"><?php echo e($data->trx); ?></div></li>

<?php if($data->gateway_id == 0): ?>
</li><!-- li --><li><div class="data-details-head">Payment Number</div><div class="data-details-des"><?php echo e($data->code); ?></div></li></li><!-- li --><li><div class="data-details-head">Payment Screenshot</div><div class="data-details-des">

<img src="<?php echo e(asset('uploads/payments/'.$data->image)); ?>" alt="..." class="img-thumbnail">
</div></li>
<?php endif; ?>


<!-- li --></ul><!-- .data-details --><div class="gaps-3x"></div> <!-- .data-details --></div></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(); ?>