<div class="table_error"></div>
<div class="table-responsive">
    <table class="table table-list" data-toggle="multiCheckbox">
        <thead>
        <tr>
            <?php echo tableHeaderCheckall(['delete_url' => trans('admin.delete_selected')]); ?>

            <?php echo tableHeaderSort($items->sorting, 'protocol', trans('validation.attributes.device_protocol')); ?>

            <?php echo tableHeader('front.tags'); ?>

            <?php echo tableHeaderSort($items->sorting, 'message'); ?>

            <?php echo tableHeaderSort($items->sorting, 'always', trans('admin.show_always')); ?>

            <?php echo tableHeader('admin.actions', 'style="text-align: right;"'); ?>

        </tr>
        </thead>
        <tbody>
        <?php if(count($collection = $items->getCollection())): ?>
            <?php foreach($collection as $item): ?>
                <tr>
                    <td>
                        <div class="checkbox">
                            <input type="checkbox" value="<?php echo $item->id; ?>" <?php echo e($item->trial ? 'disabled="disabled"' : ''); ?>>
                            <label></label>
                        </div>
                    </td>
                    <td>
                        <?php echo e($item->protocol); ?>

                    </td>
                    <td>
                        <?php echo e(!empty($item->tags) ? implode(', ', array_fetch($item->tags->toArray(), 'tag')) : ''); ?>

                    </td>
                    <td>
                        <?php echo e($item->message); ?>

                    </td>
                    <td>
                        <span class="label label-sm label-<?php echo e($item->always ? 'success' : 'danger'); ?>">
                            <?php echo e(trans('admin.' . ($item->always ? 'yes' : 'no'))); ?>

                        </span>
                    </td>
                    <td class="actions">
                        <div class="btn-group dropdown droparrow" data-position="fixed">
                            <i class="btn icon edit" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"></i>
                            <ul class="dropdown-menu">
                                <li><a href="javascript:" data-modal="<?php echo e($section); ?>_edit" data-url="<?php echo e(route("admin.{$section}.edit", $item->id)); ?>"><?php echo e(trans('global.edit')); ?></a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
            <?php endforeach; ?>
        <?php else: ?>
            <tr class="">
                <td class="no-data" colspan="6">
                    <?php echo trans('admin.no_data'); ?>

                </td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
</div>

<?php echo $__env->make("Admin.Layouts.partials.pagination", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
