<?php $__env->startSection('content'); ?>
    <h1><?php echo e(ucfirst($contentType->getLabel())); ?></h1>
    <div id="generic_wrapper">
        <?php if($contentType->hasActions("grid")): ?>
            <div class="grid-btns-wrapper">
                <?php $__currentLoopData = $contentType->getActions("grid"); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $action): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <button type="button" data-toggle="tooltip" data-placement="right" class="btn btn-default command-<?php echo e($action->getType()); ?>" title="<?php echo e($action->getLabel()); ?>">
                        <span class="icon glyphicon <?php echo e($action->getCssClass()); ?>"></span>
                    </button>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        <?php endif; ?>
        <table id="grid" class="table table-condensed table-hover table-striped">
            <thead>
                <tr>
                    <th data-column-id="id" data-type="numeric" data-identifier="true" data-visible="false">ID</th>
                    <?php $__currentLoopData = $contentType->getFields()->getListableFields(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php echo $field->toGridHeader(); ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    
                    <?php if($contentType->getShowSlug()): ?>
                        <th data-column-id="slug">Slug</th>
                    <?php endif; ?>
                    
                    <?php if($contentType->getShowUri()): ?>
                        <th data-column-id="uri">Uri</th>
                    <?php endif; ?>
                    
                    <th data-column-id="status">Status</th>
                    
                    <?php if($contentType->hasActions("row")): ?>
                        <th data-column-id="commands" data-formatter="commands" data-sortable="false"><?php echo e(trans('backend.actions')); ?></th>
                    <?php endif; ?>
                </tr>
            </thead>
        </table>
    </div>
    <script>
        $(function() {
            var genericListView = new Eae.View.BackendGenericList({
                el : $('#generic_wrapper'),
                contentType: <?php echo $contentType->toJson(); ?>

            });
        });     
    </script>
    
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.main', ['scripts' => [path_asset('path.backoffice.js_path') . '/view/generic/backend-generic-list.js']], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/resources/views/admin/generic/pages/list.blade.php ENDPATH**/ ?>