

<?php $__env->startSection('title',__('All Menu Categories')); ?>
<?php $__env->startSection('content'); ?>
<br>
<main>
	<div class="container">
		<div class="row">
			<div class="col">
				<div>

                    <div class="page-title-container">
                        <div class="row">
                            <div class="col-sm-12 col-md-6 col-lg-4">
                                <h1 class="mb-0 pb-0 display-4" id="title"><?php echo app('translator')->get('All Categories'); ?></h1>
                                <nav class="breadcrumb-container d-inline-block" aria-label="breadcrumb">
                                    <ul class="breadcrumb pt-0">
                                        <li class="breadcrumb-item"><a href="<?php echo e(route('admin:home')); ?>"><?php echo app('translator')->get('Home'); ?></a></li>
                                        <li class="breadcrumb-item"><a href="<?php echo e(route('admin:menuCategories.index')); ?>"><?php echo app('translator')->get('Categories'); ?></a></li>
                                    </ul>
                                </nav>
                            </div>

                            <div class="col-sm-12 col-md-6 col-lg-4 mb-2 d-flex align-items-start justify-content-center">
                                <form action="<?php echo e(route('admin:menuCategories.search')); ?>" method="GET" class="d-inline-block w-100">
                                    <div class="input-group w-100">
                                        <input type="text" name="query" class="form-control" placeholder="Ara..." required>
                                        <button type="submit" class="btn btn-outline-primary">
                                            <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="acorn-icons acorn-icons-search undefined">
                                                <circle cx="11" cy="11" r="8"></circle>
                                                <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
                                            </svg>
                                        </button>
                                    </div>
                                </form>
                            </div>

                            <div class="col-sm-12 col-md-6 col-lg-4 d-flex align-items-start justify-content-end three">
                                <a href="<?php echo e(route('admin:menyus.index')); ?>">
                                    <button type="button" class="btn btn-outline-primary btn-icon btn-icon-start w-100 w-md-auto">
                                        <i data-acorn-icon="leaf" class="me-2" data-acorn-size="17"></i>
                                        <span><?php echo app('translator')->get('All Menus'); ?></span>
                                    </button>
                                </a>
                                <a href="<?php echo e(route('admin:menuCategories.create')); ?>">
                                    <button type="button" class="btn btn-outline-primary btn-icon btn-icon-start w-100 w-md-auto">
                                        <i data-acorn-icon="plus" class="me-2" data-acorn-size="17"></i>
                                        <span><?php echo app('translator')->get('Create new Category'); ?></span>
                                    </button>
                                </a>
                                <div class="ms-1">
                                    <button type="button" class="btn btn-outline-primary btn-icon btn-icon-only" data-bs-offset="0,3" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-submenu="">
                                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="acorn-icons acorn-icons-more-horizontal undefined">
                                            <path d="M9 10C9 9.44772 9.44772 9 10 9V9C10.5523 9 11 9.44772 11 10V10C11 10.5523 10.5523 11 10 11V11C9.44772 11 9 10.5523 9 10V10zM2 10C2 9.44772 2.44772 9 3 9V9C3.55228 9 4 9.44772 4 10V10C4 10.5523 3.55228 11 3 11V11C2.44772 11 2 10.5523 2 10V10zM16 10C16 9.44772 16.4477 9 17 9V9C17.5523 9 18 9.44772 18 10V10C18 10.5523 17.5523 11 17 11V11C16.4477 11 16 10.5523 16 10V10z"></path>
                                        </svg>
                                    </button>
                                    <div class="dropdown-menu dropdown-menu-end">
                                        <?php $__currentLoopData = $menuCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <button class="dropdown-item" type="button"><?php echo e($category->menu_category()); ?></button>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <style>
                        .input-group {
                            width: 100%;
                        }
                        .form-control {
                            width: 100%;
                        }
                        @media(max-width: 768px ){
                            .nosee{
                                display: none !important;
                            }
                        }
                        @media(max-width: 425px){
                            .three{
                                flex-direction: column !important;
                            }
                            .three a{
                                width: 100%;
                            }
                            .three div{

                            }
                        }
                    </style>



					<div class="row">
    <div class="col-xl-12 mb-5">
        <section class="scroll-section" id="userButtons">
            <h2 class="small-title"><?php echo app('translator')->get('All Categories'); ?></h2>
            <div class="card h-100-card">
                <div class="card-body mb-n2 border-last-none h-100">

                    
                    <div class="row fw-bold border-bottom pb-2 mb-2 text-muted small">
                        <div class="col-lg-2 col-md-2 col-sm-4 col-3"><?php echo app('translator')->get('Image'); ?></div>
                        <div class="col-lg-1 col-md-1 col-sm-2 col-2"><?php echo app('translator')->get('Place Number'); ?></div>
                        <div class="col-lg-1 col-md-1 col-sm-2 col-2"><?php echo app('translator')->get('Position'); ?></div>
                        <div class="col-lg-2 col-md-2 col-sm-3 col-3"><?php echo app('translator')->get('Category'); ?></div>
                        <div class="col-lg-1 col-md-1 d-none d-lg-block"><?php echo app('translator')->get('AZ'); ?></div>
                        <div class="col-lg-1 col-md-1 d-none d-lg-block"><?php echo app('translator')->get('RU'); ?></div>
                        <div class="col-lg-1 col-md-1 d-none d-lg-block"><?php echo app('translator')->get('EN'); ?></div>
                        <div class="col-lg-2 col-md-2 col-sm-3"><?php echo app('translator')->get('Created At'); ?></div>
                        <div class="col-lg-1 col-md-1 col-sm-1 text-center"><?php echo app('translator')->get('Actions'); ?></div>
                    </div>

                    
                    <?php if(isset($menuCategories) && count($menuCategories)): ?>
                        <?php $__currentLoopData = $menuCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menuCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="row border-bottom border-separator-light mb-2 pb-2 align-items-center">
                                
                                <div class="col-lg-2 col-md-2 col-sm-4 col-3">
                                    <img src="<?php echo e($menuCategory->image()); ?>"
                                         class="card-img rounded-xl sh-6 sw-6"
                                         alt="<?php echo e($menuCategory->menu_category()); ?>">
                                </div>

                                
                                <div class="col-lg-1 col-md-1 col-sm-2 col-2">
                                    <?php echo e($menuCategory->getAttribute('number')); ?>

                                </div>

                                
                                <div class="col-lg-1 col-md-1 col-sm-2 col-2">
                                    <?php
                                        $pos = $menuCategory->getAttribute('position');
                                    ?>

                                    <?php if($pos === '1'): ?>
                                        <span class="badge bg-success"><?php echo app('translator')->get('Aktivdir'); ?></span>
                                    <?php elseif($pos === '2'): ?>
                                        <span class="badge bg-danger"><?php echo app('translator')->get('Aktiv deyil'); ?></span>
                                    <?php else: ?>
                                        <span class="badge bg-secondary"><?php echo e($pos); ?></span>
                                    <?php endif; ?>
                                </div>


                                
                                <div class="col-lg-2 col-md-2 col-sm-3 col-3">
                                    <div class="fw-semibold"><?php echo e($menuCategory->menu_category()); ?></div>
                                </div>

                                
                                <div class="col-lg-1 col-md-1 d-none d-lg-block">
                                    <?php echo e($menuCategory->getAttribute('menu_category_az')); ?>

                                </div>
                                <div class="col-lg-1 col-md-1 d-none d-lg-block">
                                    <?php echo e($menuCategory->getAttribute('menu_category_ru')); ?>

                                </div>
                                <div class="col-lg-1 col-md-1 d-none d-lg-block">
                                    <?php echo e($menuCategory->getAttribute('menu_category_en')); ?>

                                </div>

                                
                                <div class="col-lg-2 col-md-2 col-sm-3">
                                    <?php echo e($menuCategory->getAttribute('created_at')->format('Y-m-d')); ?>

                                </div>

                                
                                <div class="col-lg-1 col-md-1 col-sm-1 text-center">
                                    <a href="<?php echo e(route('admin:menuCategories.edit', $menuCategory->id)); ?>"
                                       class="btn btn-outline-primary btn-sm">
                                        <i data-acorn-icon="pen" data-acorn-size="15"></i>
                                    </a>
                                    <a href="<?php echo e(route('admin:menuCategories.destroy', $menuCategory->id)); ?>"
                                       class="btn btn-outline-danger btn-sm">
                                        <i data-acorn-icon="bin" data-acorn-size="15"></i>
                                    </a>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <div class="text-center text-muted py-4">
                            <?php echo app('translator')->get('No categories found.'); ?>
                        </div>
                    <?php endif; ?>

                </div>
            </div>
        </section>
    </div>
</div>

				</div>
			</div>
		</div>
</main>
<?php $__env->stopSection(); ?>



<?php echo $__env->make('app.admin.layout.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\MAGA\Downloads\menyum.az\menyum.az\resources\views/app/admin/pages/menuCategories/all-menuCategories.blade.php ENDPATH**/ ?>