

<?php $__env->startSection('content'); ?>
<!-- dahboard area start -->
<section>
    <div class="dashboard-area pt-150 pb-100">
        <div class="container">
            <div class="row">
                <?php echo $__env->make('layouts.frontend.partials.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="col-lg-9">
                    <div class="main-container">
                        <div class="header-section">
                            <div class="row">
                                <div class="col-md-6"><h4><?php echo e(__('Supports')); ?></h4></div>
                                <div class="col-md-6">
                                    <div class="button-btn">
                                        <a class="float-end" href="<?php echo e(route('user.support.create')); ?>"><?php echo e(__('Add New Support')); ?></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php if(Session::has('message')): ?>
                        <p class="alert alert-danger">
                            <?php echo e(Session::get('message')); ?>

                        </p>
                        <?php endif; ?>
                        <div class="card">
                            <div class="card-body">
                                <table class="table">
                                    <thead>
                                      <tr>
                                        <th scope="col">#</th>
                                        <th scope="col"><?php echo e(__('Ticket No')); ?></th>
                                        <th scope="col"><?php echo e(__('Title')); ?></th>
                                        <th scope="col"><?php echo e(__('Comment')); ?></th>
                                        <th scope="col"><?php echo e(__('Status')); ?></th>
                                        <th scope="col"><?php echo e(__('Date / Time')); ?></th>
                                        <th scope="col"><?php echo e(__('Details')); ?></th>
                                      </tr>
                                    </thead>
                                    <tbody>
                                    <?php $__currentLoopData = $supports; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $support): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                      <tr>
                                           <td><?php echo e($i++); ?></td>
                                           <td><?php echo e($support->ticket_no); ?></td>
                                           <td><?php echo e(Str::limit($support->title,15)); ?></td>
                                           <td><?php echo e(Str::limit($support->meta[0]->comment,15) ?? ''); ?></td>
                                           <td><?php echo e($support->status == 1 ? 'Active' : ($support->status == 2 ? 'Pending' : 'Inactive')); ?></td>
                                           <td><?php echo e($support->created_at->isoFormat('LL')); ?></td>
                                            <td>
                                                <a class="btn btn-primary" href="<?php echo e(route('user.support.show', $support->id)); ?>"><?php echo e(__('View')); ?></a>
                                            </td>
                                      </tr>
                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                                <div class="float-right">
                                    <?php echo e($supports->links('vendor.pagination.bootstrap-4')); ?>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- dahboard area end -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.frontend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\E-Bank\script\resources\views/user/support/index.blade.php ENDPATH**/ ?>