<?php if (isset($component)) { $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\MasterLayout::class, []); ?>
<?php $component->withName('master-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <div>
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header d-flex justify-content-between">
                        <div class="header-title">
                            <h4 class="card-title"><?php echo e($pageTitle); ?></h4>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="new-user-info pl-2 pr-2">
                            <div class="row">
                                <div class="col-md-12 border py-3 bg-indigo pr-3">
                                  <h4><?php echo e(__('message.available_balnce')); ?></h4>
                                    <div class="col-pt-5">
                                        <br>
                                        <h4><?php echo e(getPriceFormat($withdrawn->total_amount ?? 0)); ?></h4>
                                    </div>
                                </div>
                            </div>
                            <div class="mt-4">
                                <table id="basic-table" class="table mb-3  text-center">
                                    <thead>
                                        <tr>
                                            <th scope='col'><?php echo e(__('message.order_id')); ?></th>
                                            <th scope='col'><?php echo e(__('message.transaction_type')); ?></th>
                                            <th scope='col'><?php echo e(__('message.amount')); ?></th>
                                            <th scope='col'><?php echo e(__('message.created_at')); ?></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php if($wallet->count() > 0): ?>
                                            <?php $__currentLoopData = $wallet; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td><?php echo e(optional($value)->order_id ?? '-'); ?></td>
                                                    <td><?php echo e(optional($value)->transaction_type ?? '-'); ?></td>
                                                    <td style="color: <?php echo e(optional($value)->type == 'credit' ? 'green' : 'red'); ?>">
                                                        <?php echo e(getPriceFormat($value->amount) ?? 0); ?>

                                                    </td>
                                                    <td><?php echo e(dateAgoFormate($value->created_at) ?? '-'); ?></td>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php else: ?>
                                            <tr>
                                                <td colspan="9"><?php echo e(__('message.no_record_found')); ?></td>
                                            </tr>
                                        <?php endif; ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php $__env->startSection('bottom_script'); ?>
        <script>
            $("#basic-table").DataTable({
                "dom":  '<"row align-items-center"<"col-md-2"><"col-md-6" B><"col-md-4"f>><"table-responsive my-3" rt><"d-flex" <"flex-grow-1" l><"p-2" i><"mt-4" p>><"clear">',
                "order": [[0, "desc"]]
            });
        </script>
    <?php $__env->stopSection(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23)): ?>
<?php $component = $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23; ?>
<?php unset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23); ?>
<?php endif; ?>
<?php /**PATH /www/wwwroot/mxunzo.atharvatek.com/resources/views/clientside/wallet.blade.php ENDPATH**/ ?>