
<?php $__env->startSection('title','Baneri'); ?>

<?php $__env->startSection('content_header'); ?>
<h1 class="m-0 text-dark">Baneri</h1>
<a href="<?php echo e(URL::route('admin\banners-create')); ?>"
    class="btn btn-default"><?php echo e(Lang::get('Dodaj novi baner')); ?></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('Uvod')); ?></th>
            <th><?php echo e(Lang::get('Tekst linka')); ?></th>
            <th><?php echo e(Lang::get('Slika')); ?></th>
            <th><?php echo e(Lang::get('Kreirano')); ?></th>
            <th><?php echo e(Lang::get('Objavljeno')); ?></th>
            <th><?php echo e(Lang::get('Akcija')); ?></th>
        </tr>
    </thead>
    <tbody>
        <?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <?php
                if($item->status_id == 1){
                    $published = "Objavljeno";
                }else{
                    $published = "Neobjavljeno";
                }
            ?>
            <td><?php echo e($item->id); ?></td>
            <td><?php echo e($item->introduction); ?></td>
            <td><?php echo e($item->link_to_follow); ?></td>
            <td><img style="height:100px; width:100px" src="/<?php echo e($item->image_path); ?>"></td>
            <td><?php echo e($item->created_at); ?></td>
            <td><?php echo e($published); ?></td>
            <td>
                <div class="btn-group">
                    <button 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 class="font-weight-bold"
                                href="#"><?php echo e(Lang::get('Izmijeni')); ?></a>
                        </li>
                    </ul>
                </div>
            </td>

        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>
<?php echo e($banners->links()); ?>

<?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/banners/index.blade.php ENDPATH**/ ?>