
<?php $__env->startSection('sitecontent'); ?>
<section class="headerbg headerbg-inner">
    <div class="header header-padding">
        <?php echo $__env->make('partials.site.header-menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>
    <div class="inner-heading"><?php echo e(__('lang.wallet_title')); ?></div>
</section>
<section class="order-details-bg">
    <div class="container">
        <div class="row">
            <div class="col-lg-3 col-md-4">
                <?php echo $__env->make('partials.site.user-links', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            </div>
            <div class="col-lg-9 col-md-8">
                <div class="walletlistop">
                    <div class="walletmid">
                        <div class="amountserch">
                            <div class="row">
                                <?php echo Form::model(null, ['method' => 'POST', 'url' => ['wallet-checkout']]); ?>

                                    <?php echo csrf_field(); ?>
                                    <div class="col-lg-9 col-md-8 col-sm-8">
                                        <input  type="text" onkeypress="return (event.charCode !=8 && event.charCode ==0 || (event.charCode >= 48 && event.charCode <= 57))" name="amount" placeholder="<?php echo e(__('lang.wallet_enter_amount_placeholder')); ?>" class="walitinputstyle" />
                                    </div>
                                    <div class="col-lg-3 col-md-4 col-sm-4">
                                        <input type="submit" value="<?php echo e(__('lang.wallet_proceed_btn')); ?>" name="btn" class="procedbtninfo" />
                                    </div>
                                <?php echo Form::close(); ?>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="walletlisttable">
                    <div class="row">
                        <div class="col-lg-6 col-md-6">
                            <div class="tablehead"><h4 class="text-align-left"><?php echo e(__('lang.wallet_amount_transaction')); ?></h4></div>
                        </div>
                        <div class="col-lg-6 col-md-6">
                            <div class="tablehead">
                                <h5><?php echo e(__('lang.current_wallet_amount')); ?> <span><?php echo e(\Helpers::currency($total_wallet)); ?></span></h5>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12">
                            <div class="amountdetailtable">
                                <table class="table table-striped">
                                    <thead>
                                        <tr>
                                            <th width="5%"><?php echo e(__('lang.wallet_sno')); ?></th>
                                            <th width="15%"><?php echo e(__('lang.wallet_amount')); ?></th>
                                            <th width="15%"><?php echo e(__('lang.wallet_type')); ?></th>
                                            <th width="45%"><?php echo e(__('lang.wallet_comments')); ?></th>
                                            <th width="20%"><?php echo e(__('lang.wallet_date_time')); ?></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php if(count($data)>0): ?>
                                            <?php $i=1; ?>
                                            <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td width="5%"><?php echo e($i++); ?></td>
                                                    <td width="15%"><?php echo e(\Helpers::currency($row->amount)); ?></td>
                                                    <td width="15%" style="text-transform: capitalize;"><?php echo e($row->type); ?></td>
                                                    <td width="45%"><?php echo e($row->description); ?> <?php if($row->order_info): ?> <?php echo e(__('lang.wallet_please_click_on')); ?> <a href="<?php echo e(url('order-details/')); ?>/<?php echo e($row->order_info->id); ?>"><b class="nocolor">#<?php echo e($row->order_info->id); ?></b></a>  <?php endif; ?></td>
                                                    <td width="20%">
                                                        <?php echo e(\Helpers::commonDateFormate($row->created_at)); ?> <br />
                                                        <?php echo e(\Helpers::commonTimeFormate($row->created_at)); ?>

                                                    </td>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php else: ?>
                                            <tr>
                                                <td colspan="5" class="required"><?php echo e(__('lang.wallet_record_not_found')); ?></td>
                                            </tr>
                                        <?php endif; ?>
                                    </tbody>
                                </table>
                            </div>
                            <div>
                                <h6 class="pull-left"> <?php if ($data->firstItem() != null) {?> <?php echo e($data->firstItem()); ?>-<?php echo e($data->lastItem()); ?> <?php echo e(__('lang.admin_of')); ?> <?php echo e($data->total()); ?> <?php }?></h6>
                                <h6 class="pull-right">
                                    <div class="pagination" style="float: right;">
                                        <?php echo e($data->withQueryString()->links('pagination::bootstrap-4')); ?>

                                    </div>
                                </h6>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<footer class="footer">
    <?php echo $__env->make('partials.site.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</footer>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.site-app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/hayawater/resources/views/wallet.blade.php ENDPATH**/ ?>