
<?php $__env->startSection('title','Meni i stranice'); ?>

<?php $__env->startSection('content_header'); ?>
<h1 class="m-0 text-dark">Meni i stranice</h1>
<a href="<?php echo e(URL::route('admin\page-create')); ?>" class="btn btn-default"><?php echo e(Lang::get('Dodaj novu stranicu')); ?></a>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<table id="data-table" class="display" cellspacing="0" width="100%">
    <thead>
        <tr>
            <th><?php echo e(Lang::get('ID')); ?></th>
            <th><?php echo e(Lang::get('Naziv')); ?></th>
            <th><?php echo e(Lang::get('Predloženi link')); ?></th>
            <th><?php echo e(Lang::get('Link')); ?></th>
            <th><?php echo e(Lang::get('Roditelj')); ?></th>
            <th><?php echo e(Lang::get('Objavljeno')); ?></th>
            <th><?php echo e(Lang::get('Akcija')); ?></th>
        </tr>
    </thead>
    <tbody>
        <?php $__currentLoopData = $data['menu_pages']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if($item->status_id == 1){
                $published = "Objavljeno";
            }else{
                $published = "Neobjavljeno";
            }?>
        <tr>
            <td><?php echo e($item->id); ?></td>
            <td><?php echo e($item->title_ba); ?></td>
            <td><?php echo e($item->slug); ?></td>
            <td><?php echo e($item->link); ?></td>
            <td><?php echo e($item->parent_name); ?></td>
            <td><?php echo e($published); ?></td>
            <td>
                <div class="btn-group">
                    <button id="action-secondary-btn" data-toggle="dropdown" class="btn btn-xs dropdown-toggle"
                        data-original-title="" title="">
                        <?php echo e(Lang::get('Izaberi')); ?> <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu pull-right">
                        <li>
                            <a
                                href=""><?php echo e(Lang::get('Izmijeni')); ?></a>
                        </li>
                        <li>
                            <a href=""><?php echo Lang::get('Prikaži
                                sve dodatke'); ?></a>
                        </li>
                        <li>
                            <a href="#"><?php echo Lang::get('Dodaj dodatak'); ?></a>
                        </li>
                        <!-- <li>
                            <a href=""><?php echo Lang::get('Obriši'); ?></a>
                        </li>!-->
                    </ul>
                </div>
            </td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<?php $__env->startSection('plugins.Datatables', true); ?>
<script>
    $(document).ready(function() {

            $('#data-table').DataTable({
                "paging": false,
                "lengthChange": false,
                "searching": true,
                "ordering": true,
                "info": false,
                "autoWidth": false
            });
    } );


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

<?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Projects\laravel\laravel-shop\resources\themes\default\views/admin/menu_pages/index.blade.php ENDPATH**/ ?>