<?php $__env->startSection('small_title'); ?>
<?php echo e(__("dashboard.menu.counter")); ?>

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



                <div class="page-content">
                    <div class="container-fluid">

                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                    <h4 class="mb-sm-0 font-size-18">
                                        <?php echo e(__("dashboard.menu.counter")); ?>

                                    </h4>

                                    <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard.index')); ?>">Dashboard</a></li>
                                            <li class="breadcrumb-item active">
                                                <?php echo e(__("dashboard.menu.counter")); ?>

                                            </li>
                                        </ol>
                                    </div>

                                </div>
                            </div>
                            <?php if(Session::has('message')): ?>
                            <div class="alert alert-info"><?php echo e(Session::get('message')); ?></div>

                            <?php endif; ?>

                        </div>
                        <!-- end page title -->


                        <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-header">
                                        <div class="row">
                                            <div class="col-4">
                                                <a type="button" href="<?php echo e(route('counters.create')); ?>" class="btn btn-primary">
                                                    Add

                                                </a>

                                            </div>

                                        </div>
                                    </div>
                                    <div class="card-body">
                                        <div class="table-rep-plugin">
                                            <div class="table-responsive mb-0" data-pattern="priority-columns">

                                                <div class="table-responsive">

                                                    <table class="table table-striped">
                                                    <tr>
                                                        <th>Title (English) </th>
                                                        <th><?php echo e(__("lable.value")); ?> </th>

                                                        <th>Action</th>

                                                    </tr>

                                                    <?php $__currentLoopData = $counters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $counter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                                    <tr>
                                                        <td>
                                                            <p><?php echo e($counter->title); ?></p>
                                                        </td>

                                                        <td>
                                                            <p><?php echo e($counter->value); ?></p>
                                                        </td>






                                                        <td>
                                                            <form action="<?php echo e(route('counters.destroy' , $counter->id)); ?>" method="post" id="form-<?php echo e($counter->id); ?>">
                                                                <?php echo e(csrf_field()); ?>

                                                                <?php echo e(method_field("DELETE")); ?>

                                                            </form>



                                                            &nbsp;
                                                                           <a href=""
                                                               onclick="if(confirm('Are you sure to delete?')) {
                                                                       event.preventDefault();
                                                                       document.getElementById('form-<?php echo e($counter->id); ?>').submit();
                                                                       }else{ event.preventDefault(); }"
                                                               ><i class="fas fa-trash-alt"></i></a>
                                                        </td>


                                                    </tr>

                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                                </table>

                                                <br>
                                                        <br>
                                                        <div class="container">
                                                            <div class="row justify-content-center">
                                                            <?php echo e($counters->links()); ?>

                                                        </div>
                                                        </div>

                                                        <br>
                                                        <br>
                                                        <br>

                                                </div>


                                            </div>

                                        </div>

                                    </div>
                                </div>
                                <!-- end card -->
                            </div> <!-- end col -->
                        </div> <!-- end row -->



                    </div>
                    <!-- container-fluid -->
                </div>
                <!-- End Page-content -->



<?php $__env->stopSection(); ?>


<?php echo $__env->make('Admin.master_page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wssupport/app.mami/resources/views/Admin/counters/index.blade.php ENDPATH**/ ?>