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

    <!-- ========User-Panel-Section Starte Here ========-->
    <div class="row">
        <div class="col-12">
            <h2 class="content-header"><?php echo e(__($page_title)); ?></h2>
        </div>
    </div>

    <section id="simple-table">
        <div class="row">
            <div class="col-sm-12">
                <div class="card">
                    <div class="card-body">
                        <div class="card-block table-responsive table-responsive-xl table-responsive-lg table-responsive-md table-responsive-sm">
                            <table class="table table-striped">
                                <thead class="thead-dark">
                                <tr>
                                    <th scope="col"><?php echo app('translator')->get('Transaction ID'); ?></th>
                                    <th scope="col"><?php echo app('translator')->get('Gateway'); ?></th>
                                    <th scope="col"><?php echo app('translator')->get('Amount'); ?></th>
                                    <th scope="col"><?php echo app('translator')->get('Status'); ?></th>
                                    <th scope="col"><?php echo app('translator')->get('Time'); ?></th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php if(count($withdraws) >0): ?>
                                    <?php $__currentLoopData = $withdraws; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php if($data->method->type == $type): ?>
                                            <tr>
                                                <td data-label="#<?php echo app('translator')->get('Trx'); ?>"><?php echo e($data->trx); ?></td>
                                                <td data-label="<?php echo app('translator')->get('Gateway'); ?>"><?php echo e($data->method->name); ?></td>
                                                <td data-label="<?php echo app('translator')->get('Amount'); ?>">
                                                    <strong><?php echo e(formatter_money($data->amount)); ?> <?php if($type == 'money'): ?> <?php echo e($general->cur_text); ?> <?php endif; ?></strong>
                                                </td>
                                                <td data-label="<?php echo app('translator')->get('Status'); ?>">
                                                    <?php if($data->status == 0): ?>
                                                        <span class="badge badge-warning"><?php echo app('translator')->get('Pending'); ?></span>
                                                    <?php elseif($data->status == 1): ?>
                                                        <span class="badge badge-success"><?php echo app('translator')->get('Completed'); ?></span>
                                                    <?php elseif($data->status == 2): ?>
                                                        <span class="badge badge-danger"><?php echo app('translator')->get('Rejected'); ?></span>
                                                    <?php endif; ?>

                                                </td>
                                                <td data-label="<?php echo app('translator')->get('Time'); ?>">
                                                    <i class="fa fa-calendar"></i> <?php echo e(date('d M, Y ', strtotime($data->created_at))); ?>

                                                    <span class="pl-1"></span> <?php echo e(date('h:i A', strtotime($data->created_at))); ?>

                                                </td>
                                            </tr>
                                        <?php endif; ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php else: ?>
                                    <tr>
                                        <td colspan="4"> <?php echo app('translator')->get('No results found'); ?>!</td>
                                    </tr>
                                <?php endif; ?>
                                </tbody>
                            </table>

                            <?php echo e($withdraws->links()); ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- ========User-Panel-Section Ends Here ========-->
<?php $__env->stopSection(); ?>


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

<?php echo $__env->make(activeTemplate() .'layouts.user', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ectinternational/goldenage.club/resources/views/templates/minimal/user/withdraw/log.blade.php ENDPATH**/ ?>