<?php $__env->startSection('tab-title'); ?>| دسته‌بندی سرویس ها <?php $__env->stopSection(); ?>

<?php $__env->startSection("page-title"); ?> دسته‌بندی سرویس ها <?php $__env->stopSection(); ?>

<?php $__env->startSection("page-body"); ?>
    <div class="row justify-content-center">
        <div class="col-4">
            <div class="box">
                <div class="box-header with-border">
                    <h5 class="box-title">ثبت دسته‌بندی جدید</h5>
                    <ul class="box-controls pull-right">
                        <li><a class="box-btn-slide" href="#"></a></li>
                    </ul>
                </div>
                <form action="./categories" method="POST">
                    <div class="box-body">
                        <?php echo csrf_field(); ?>
                        <div class="form-group">
                            <input type="text" class="form-control" id="category-title" name="ctitle" placeholder="عنوان دسته‌بندی جدید">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control ltr" id="icon" name="icon" placeholder="bootsrap icon">
                        </div>
                        <button class="btn btn-sm btn-block btn-primary btn-outline" type="submit" name="action" value="add">ذخیره</button>
                    </div>
                </form>
            </div>
        </div>
        <?php if(count($categories) > 0): ?>
        <div class="col-6">
            <div class="box">
                <div class="box-header with-border">
                    <h5 class="box-title">دسته‌های ثبت شده</h5>
                    <ul class="box-controls pull-right">
                        <li><a class="box-btn-slide" href="#"></a></li>
                    </ul>
                </div>
                <div class="box-body">
                    <div class="table-responsive">
                        <table class="table table-striped text-center">
                            <thead class="thead-dark">
                            <tr>
                                <th>#</th>
                                <th>عنوان دسته‌بندی</th>
                                <th>آیکون</th>
                                <th>ذخیره</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <form action="./categories" method="POST"><?php echo csrf_field(); ?>
                                    <td><?php echo e(convertNumbers($i+1)); ?></td>
                                    <td><input type="text" class="form-control" name="ctitle" value="<?php echo e($category->title); ?>"></td>
                                    <td><input type="text" class="form-control ltr" name="icon" value="<?php echo e($category->icon); ?>"></td>
                                    <td>
                                        <input type="hidden" name="cid" value="<?php echo e($category->id); ?>">

                                        <button class="btn btn-social-icon btn-circle btn-sm btn-info" name="action" value="edit"><i class="mdi mdi-content-save"></i></button>
                                    </td>
                                    </form>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make("v1/02_dash-template/layouts/layout-admin", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\gpumonster\core\resources\views/v1/02_dash-template/admin-pages/categories.blade.php ENDPATH**/ ?>