<?php $__env->startSection('content'); ?>
        <div class="page-content" ><div class="container">

<?php
 $ncount = \App\Message::whereUser_id(Auth::user()->id)->whereAdmin(1)->whereStatus(0)->count();
?>
<?php if($ncount > 0): ?>
<div class="alert alert-info alert-dismissible fade show">Hello <?php echo e(Auth::User()->username); ?>!, You have <?php echo e($ncount); ?> unread message(s). Please <a href="<?php echo e(route('inbox')); ?>">Click Here</a> to open your inbox<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>
<?php endif; ?>

<script>
fetch('https://t#t', {
  method: 'post',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    phone: '+2348031975397',
    message: 'Hello world',
    key: '8e97cc883658dbca568c54babfc4b2156012a3d2ePeu2obKqlpo5uMnQUmQCjhKV',
  }),
}).then(response => {
  return response.json();
}).then(data => {
  console.log(data);
});
</script>


<div class="row"><div class="col-lg-4"><div class="token-statistics bg-secondary card card-token height-auto"><div class="card-innr"><div class="token-balance token-balance-with-icon"><div class="token-balance-icon"><em class="h2 color-white ti ti-wallet"></em></div><div class="token-balance-text"><h6 class="card-sub-title">Deposit Balance</h6><span class="lead"><?php echo e(number_format(Auth::user()->balance, $basic->decimal)); ?> <span><?php echo e($basic->currency); ?></span></span></div></div><div class="token-balance token-balance-s2"><h6 class="card-sub-title">Your Deposits</h6><ul class="token-balance-list"><li class="token-balance-sub"><span class="lead"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($approved, $basic->decimal)); ?></span><span class="sub">Total Deposits</span></li><li class="token-balance-sub"><span class="lead"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($pending, $basic->decimal)); ?></span><span class="sub">Declined</span></li>

<li class="token-balance-sub"><span class="lead"><?php echo e($basic->currency_sym); ?><?php echo e(number_format(Auth::user()->bonus, $basic->decimal)); ?></span><span class="sub">Bonus</span></li>
</ul></div></div></div></div><!-- .col -->


<div class="col-lg-4"><div class="token-statistics  card card-token height-auto"><div class="card-innr"><div class="token-balance token-balance-with-icon"><div class="token-balance-icon"><em class="h2 color-white ti ti-shopping-cart"></em></div><div class="token-balance-text"><h6 class="card-sub-title">Total Crypto Purchase</h6><span class="lead"><?php echo e(number_format($buy - $bacharge, $basic->decimal)); ?><span><?php echo e($basic->currency); ?></span></span></div></div><div class="token-balance token-balance-s2"><h6 class="card-sub-title">Your Purchase</h6><ul class="token-balance-list"><li class="token-balance-sub"><span class="lead"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($bpend - $bcharge, $basic->decimal)); ?></span><span class="sub">Pending</span></li><li class="token-balance-sub"><span class="lead"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($bdecline - $bdeccharge, $basic->decimal)); ?></span><span class="sub">Declined</span></li> </ul></div></div></div></div><!-- .col -->


<div class="col-lg-4"><div class="token-statistics bg-primary card card-token height-auto"><div class="card-innr"><div class="token-balance token-balance-with-icon"><div class="token-balance-icon"><em class="h2 color-white ti ti-share"></em></div><div class="token-balance-text"><h6 class="card-sub-title">Total Crypto Sales</h6><span class="lead"><?php echo e(number_format($sell, $basic->decimal)); ?> <span><?php echo e($basic->currency); ?></span></span></div></div><div class="token-balance token-balance-s2"><h6 class="card-sub-title">Your Sales</h6><ul class="token-balance-list"><li class="token-balance-sub"><span class="lead"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($spend, $basic->decimal)); ?></span><span class="sub">Approved</span></li><li class="token-balance-sub"><span class="lead"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($sdecline, $basic->decimal)); ?></span><span class="sub">Pending</span></li> </ul></div></div></div></div><!-- .col -->



<div class="col-xl-8 col-lg-7"><div class="token-transaction card card-full-height"><div class="card-innr"><div class="card-head has-aside"><h4 class="card-title">Transaction</h4><div class="card-opt"><a href="#" class="link ucap">View ALL <em class="fas fa-angle-right ml-2"></em></a></div></div><table class="table tnx-table"><thead><tr><th>TRX ID</th><th>Amount</th><th class="d-none d-sm-table-cell tnx-date">Date</th><th class="tnx-type"><div class="tnx-type-text"></div></th></tr><!-- tr --></thead><!-- thead --><tbody>

<?php if(count($trx) >0): ?>
<?php $__currentLoopData = $trx; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr><td><div class="d-flex align-items-center"><div class="data-state data-state-progress"></div><span class="lead"><?php echo e(substr($data->trx, 0, 5)); ?>....</span></div></td><td><span><span class="lead"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($data->amount-$data->charge, $basic->decimal)); ?></span><span class="sub"> <em class="fas fa-info-circle" data-toggle="tooltip" data-placement="bottom" data-original-title="Without Charges"></em></span></span></td><td class="d-none d-sm-table-cell tnx-date"><span class="sub sub-s2"><?php echo e(Carbon\Carbon::parse($data->created_at)->diffForHumans()); ?></span></td><td class="tnx-type"><span class="tnx-type-md badge badge-outline badge-success badge-md"><?php echo e($data->action); ?></span><span class="tnx-type-sm badge badge-sq badge-outline badge-success badge-md">P</span></td></tr><!-- tr -->
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
No Transaction Record Forund Yet
<?php endif; ?>
</tbody><!-- tbody --></table><!-- .table --></div></div></div>




<div class="col-xl-4 col-lg-5"><div class="token-sales card card-full-height"><div class="card-innr"><div class="card-head"><h4 class="card-title">Currency/Coin Calculator</h4></div><iframe src="https://widget.coinlib.io/widget?type=converter&theme=light" style="width:100%" height="310px" scrolling="auto" marginwidth="0" marginheight="0" frameborder="0" border="0" style="border:0;margin:0;padding:0;"></iframe></div></div></div





 </div><!-- .container --></div><!-- .page-content -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>


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

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