Current File : //home/tradevaly/public_html/storage/framework/views/2481d6fc3b69bf43585eec6ef456e5415eb2f3a1.php |
<?php $__env->startPush('title','Selling Progress'); ?>
<?php $__env->startPush('style'); ?>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header card-header-info card-header-icon">
<h4 class="card-title">Selling Progress</h4>
</div>
<div class="card-header m-0 row">
<div class="col-md-3 p-3 border">
<h4 class="text-success">Pending Amount</h4>
<h4 class=""><?php echo e($totalPending); ?></h4>
</div>
<div class="col-md-3 p-3 border">
<h4 class="text-success">Waiting For Delivery</h4>
<h4 class=""><?php echo e($waiting_del); ?></h4>
</div>
<div class="col-md-3 p-3 border">
<h4 class="text-success">Lifetime Sell</h4>
<h4 class=""><?php echo e(auth()->user()->total_income); ?></h4>
</div>
<div class="col-md-3 p-3 border">
<h4 class="text-success">Total Balance</h4>
<h4 class=""><?php echo e(auth()->user()->balance); ?></h4>
</div>
</div>
<div class="card-body">
<div class='row'>
<div class="col"><strong>#</strong></div>
<div class="col"><strong>Order Number</strong></div>
<div class="col"><strong>Order Date</strong></div>
<div class="col"><strong>Order Status</strong></div>
<div class="col"><strong>Amount</strong></div>
<div class="col"><strong>Delevary Date</strong></div>
<div class="col"><strong>Amount Relese date</strong> </div>
<div class="col"><strong>Remain Days</strong></div>
</div>
<hr>
<?php $__currentLoopData = $selling_progresses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $selling_progress): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$today = \Carbon\Carbon::now();
$releseDate = \Carbon\Carbon::parse($selling_progress->amount_relese_date);
$hourDifference = $today->diffInHours($releseDate);
$remainDate = $today->diffInDays($releseDate);
$progress = 100 - $hourDifference*100/168;
?>
<div class="row" style="padding: 25px 0px;">
<div class="col"><?php echo e($loop->iteration); ?></div>
<div class="col"><?php echo e($selling_progress->order_number); ?></div>
<div class="col"><?php echo e(\Carbon\Carbon::parse($selling_progress->order_date)->format('Y-m-d')); ?></div>
<div class="col"><?php echo e($selling_progress->payment_status); ?></div>
<div class="col"><?php echo e($selling_progress->amount); ?></div>
<div class="col"><?php echo e($selling_progress->created_at->format('d-m-Y')); ?></div>
<div class="col"><?php echo e(\Carbon\Carbon::parse($selling_progress->amount_relese_date)->format('Y-m-d')); ?></div>
<div class="col">
<?php if($selling_progress->payment_status=="compleate"): ?>
<span class='bg-success text-white p-2' style="width: 100px;display: block;text-align: center;">
Compleate
</span>
<?php elseif($remainDate<1): ?>
<span class='bg-success text-white text-center rounded-pill' style="width: 100px;display: block;text-align: center;">
Very Soon
</span>
<?php else: ?>
<span class='bg-warning text-white text-center rounded-pill' style="width: 100px;display: block;text-align: center;">
<?php echo e($remainDate); ?> Days
</span>
<?php endif; ?>
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped bg-success" role="progressbar" style="width:<?php echo e(($selling_progress->payment_status=="compleate")?"100":$progress); ?>%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<hr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<div class="card-footer">
<?php echo e($selling_progresses->links()); ?>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('user.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/user/pages/selling/index.blade.php ENDPATH**/ ?>