<?php $__env->startSection('title', $title); ?>
<?php $__env->startSection('content'); ?>
<div class="udex-main" id="main">
	<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.danger-alert','data' => []]); ?>
<?php $component->withName('danger-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.success-alert','data' => []]); ?>
<?php $component->withName('success-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
    
    
    <?php if( Auth::user()->withdrawal_code==='on' ): ?> 
     <div class="bg-white p-4 mt-3 rounded mb-5">
				<div class="mb-3 ">
				    
				    <div class="alert alert-warning" role="alert">
<h6 class="h6 ">The Withdrwal Code is required to enable you to continue with your withdrawal. Please contact any of our online customer care representative on livechat or on with <?php echo e($settings->contact_email); ?> they will help you with the appropriate withdrwal code for this transaction.</h6>
                            </div>
</div>
                                
                          
                               <form action="<?php echo e(route('userwithdrawal')); ?>" method="post">
                                    <?php echo csrf_field(); ?>
                                    <div class="mb-3">
                                        <label class="">Enter Withdrwal Code 
                                          </label>
                                        <input class="form-control " placeholder="Enter Withdrwal Code" type="text"
                                            name="withdrawal_code" step="any" required>
                                            </div>
                                           
                                            	<button class="btn btn-primary">Verify Withdrawal code</button>
                                            	
                                            </form>
</div>

<?php else: ?>
    
    <ul class="breadcrumb shadow-none p-0" style="background-color: transparent">
		<li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>">Home</a></li>
		<li class="breadcrumb-item active">Withdraw </li>
	</ul><h1 class="clearfix">Withdrawal <div class="float-right"></div></h1>
			<div class="bg-white p-4 mt-3 rounded mb-5">
				<h3 class="mb-4">Select Withdrawal method</h3>
				<form method="POST" action="<?php echo e(route('withdrawamount')); ?>">
					<?php echo csrf_field(); ?>


                  
                    <div class="input-group mb-3">
                <select class="form-control"  name="method"  required>
                    <?php $__empty_1 = true; $__currentLoopData = $wmethods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $method): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                  <option value="<?php echo e($method->name); ?>"><?php echo e($method->name); ?></option>
                 
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
					<option class="">No Withdrawal Method enabled at the moment, please check
						back later.</option>
                        <?php endif; ?>
</select>
</div>				
					
					

					
					<button class="btn btn-primary">CONTINUE</button>
				</form>
			</div>
			<h3>Withdrawal History</h3>
			<div class="table-responsive mt-3">
				<table class="table table-bordered table-hover table-striped bg-white">
              
					<tr class="bg-dark text-light">
						<th style="min-width: 150px">Details</th><th style="min-width: 150px">Method</th><th style="min-width: 120px">Status</th>
					</tr>
					  <?php $__empty_1 = true; $__currentLoopData = $withdrawals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deposit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
					<tr>
						<td>
                        
							<div class="font-weight-bold">  <?php echo e(number_format($deposit->amount, 2, '.', ',')); ?>  <?php echo e($settings->s_currency); ?></div>
							<date class="text-black-50 small"><?php echo e(\Carbon\Carbon::parse($deposit->created_at)->toDayDateTimeString()); ?></date></td>
						<td><span class="badge badge-info"><i class="fas fa-university"></i> <?php echo e($deposit->payment_mode); ?></span></td>
						
                        <td>
                            <?php if($deposit->status=='Pending'): ?>
                            <span class="badge badge-warning">
							<i class="fa fa-check"></i> <?php echo e($deposit->status); ?></span>
                            <?php else: ?>
                            <span class="badge badge-success">
							<i class="fa fa-check"></i> <?php echo e($deposit->status); ?></span>
                            <?php endif; ?>
                            </td>
                            <td colspan="3"></td></tr>

                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
					<option class=""> No withdrawal History.</option>
                        <?php endif; ?>
				</table>
			</div>
			<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.dasht', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/icttradeup/public_html/dash.ict-tradeup.com/resources/views/user/withdrawals.blade.php ENDPATH**/ ?>