<?php $__env->startSection('content'); ?>
    <h1><?php echo e(ucfirst($contentType->getLabel())); ?></h1>
    <?php if($contentType->getShareable() == 'global'): ?>
    <h3>*these contents are shared across sites*</h3>
    <?php endif; ?>
    <div id="generic_wrapper">
        <?php if($contentType->getSubTypes()): ?>
        <div class="sub-type-filter">
            <div class="btn-group" role="group">
                <button type="button" class="btn btn-default active command-filter-subtype" data-subtype="">
                    All
                </button>
                <?php $__currentLoopData = $contentType->getSubTypes(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subType => $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <button type="button" class="btn btn-default command-filter-subtype" data-subtype="<?php echo e($subType); ?>">
                        <?php echo e($data['label']); ?>

                    </button>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
        <?php endif; ?>
        <?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="<?php echo e($contentType->getShowId() ? 'true' : '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" data-formatter="status">Status</th>
                    <th data-column-id="is_shared" data-formatter="yesNo">Shared</th>
                    <?php if($contentType->hasActions("row")): ?>
                        <th data-column-id="commands" data-formatter="commands" data-sortable="false"><?php echo app('translator')->get('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', array('scripts' => array(path_asset('path.backoffice.js_path') . '/view/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**/ ?>