<title>Withdraw List - Best Leearning</title>

<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700">
    <link rel="stylesheet" href="https://powerworkerearn.com/resources/css/argon.css" type="text/css">
    <link rel="stylesheet" href="https://powerworkerearn.com/resources/css/myapp.css" type="text/css">
   
<style>
    .checklist-item-warning{
        font-weight: ;
    }
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('user-content'); ?>
    <div class="row justify-content-center">
        <div class="col-xl-6">
            <div class="card mt-2">
                <div class="card-header">
                    <h5 class="h3 mb-0">Withdraw History</h5>
                </div>

                <div class="card-body p-0">
					<?php if($withdraws->isEmpty()): ?>
						<div class="text-center py-3">
							<p>You Have No Withdraw History</p>
						</div>
					<?php else: ?> 

                    <ul class="list-group list-group-flush" data-toggle="checklist">
						<?php $__currentLoopData = $withdraws; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<?php if($data->approval == 0): ?>    
								<li class="checklist-entry list-group-item flex-column align-items-start py-2 px-4">
									<div class="checklist-item checklist-item-warning">
										<div class="checklist-info">
											<h5 class="checklist-title mb-0"><?php echo e($data->account_no); ?> (<?php echo e($data->account_type); ?>)</h5>
											<small><?php echo e(\Carbon\Carbon::parse($data->created_at)->format('j M Y g:i A')); ?></small>
											<!--<small>(Reviewing...)</small>-->
										</div>
							<?php elseif($data->approval == 1): ?>
								<li class="checklist-entry list-group-item flex-column align-items-start py-2 px-4">
									<div class="checklist-item checklist-item-success">
										<div class="checklist-info">
											<h5 class="checklist-title mb-0"><?php echo e($data->account_no); ?> (<?php echo e($data->account_type); ?>)</h5>
											<small><?php echo e(\Carbon\Carbon::parse($data->created_at)->format('j M Y g:i A')); ?></small>
										</div>
							<?php else: ?>
								<li class="checklist-entry list-group-item flex-column align-items-start py-2 px-4">
									<div class="checklist-item checklist-item-danger">
										<div class="checklist-info">
											<h5 class="checklist-title mb-0"><?php echo e($data->account_no); ?> (<?php echo e($data->account_type); ?>)</h5>
											<small><?php echo e(\Carbon\Carbon::parse($data->created_at)->format('j M Y g:i A')); ?></small>
										<div class="checklist-info">
											<!--<small>Reason: <?php echo e($data->reason); ?></small>-->
										</div>
										</div>
							<?php endif; ?>
										<div>
										   <h5><b> <div style="color:#1D8348";>
												<b><?php echo e($data->amount - $data->charge); ?> $ </b>
											</div></b></h5>
										</div>
									</div>
								</li>
								
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						</div>
					</ul>
					<?php endif; ?>
                </div>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script>
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('user.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/powerwor/public_html/resources/views/user/pages/withdraw.blade.php ENDPATH**/ ?>