
<?php $__env->startSection('title'); ?>
    <title><?php echo e(__('admin.Menu Visibility')); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
    <!-- Main Content -->
    <div class="main-content">
        <section class="section">
            <div class="section-header d-flex justify-content-between">
                <h1><?php echo e(__('admin.Menu Visibility')); ?></h1>
                <div>
                    <b><?php echo e(__('admin.Translations')); ?></b>
                    <br>
                    <?php $__empty_1 = true; $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <i
                            class="fa <?php echo e(\App\Models\MenuVisibilityTranslation::where('language_code', $language->code)?->count() > 0 ? 'fa-check' : 'fa-edit'); ?>"></i>
                        <a
                            href="<?php echo e(route('admin.menu-visibility.translation', ['code' => $language->code])); ?>"><?php echo e(strtoupper($language->code)); ?></a>
                        <?php if(!$loop->last): ?>
                            ||
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <a
                            href="<?php echo e(route('admin.menu-visibility.translation', ['code' => $language->code])); ?>"><?php echo e(strtoupper(config('app.locale'))); ?></a>
                    <?php endif; ?>
                </div>
            </div>

            <div class="section-body">
                <div class="row mt-4">
                    <div class="col">
                        <div class="card">
                            <div class="card-body">
                                <form action="<?php echo e(route('admin.update-menu-visibility')); ?>" method="POST">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('PUT'); ?>

                                    <table class="table table-bordered">
                                        <tr>
                                            <th width="33%"><?php echo e(__('admin.Default')); ?></th>
                                            <th width="33%"><?php echo e(__('admin.Custom')); ?></th>
                                            <th width="33%"><?php echo e(__('admin.Status')); ?></th>
                                        </tr>

                                        <?php $__currentLoopData = $menus; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td><?php echo e($menu->menu_name); ?></td>
                                                <td>
                                                    <input class="form-control" type="text"
                                                        value="<?php echo e($menu->custom_name); ?>" name="customs[]">
                                                </td>
                                                <input type="hidden" name="ids[]" value="<?php echo e($menu->id); ?>">
                                                <td>
                                                    <select name="status[]" id="" class="form-control">
                                                        <option <?php echo e($menu->status == 1 ? 'selected' : ''); ?> value="1">
                                                            <?php echo e(__('admin.Active')); ?></option>
                                                        <option <?php echo e($menu->status == 0 ? 'selected' : ''); ?> value="0">
                                                            <?php echo e(__('admin.Inactive')); ?></option>
                                                    </select>
                                                </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </table>

                                    <button class="btn btn-primary"><?php echo e(__('admin.Update')); ?></button>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

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

<?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home3/paprdcor/topriserealtors.com/resources/views/admin/menu_visibility.blade.php ENDPATH**/ ?>