<?php
    use App\Helpers\Template as Template;
    use App\Helpers\Hightlight as Hightlight;
?> <div class="x_content"> <div class="table-responsive"> <table class="table table-striped jambo_table bulk_action"> <thead> <tr class="headings"> <th class="column-title">#</th> <th class="column-title">Article Info</th> <th class="column-title">Thumb</th> <th class="column-title">Category</th> <th class="column-title">Kiểu bài viết</th> <th class="column-title">Trạng thái</th> <th class="column-title">Hành động</th> </tr> </thead> <tbody> <?php if(count($items) > 0): ?> <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php
                            $index           = $key + 1;
                            $class           = ($index % 2 == 0) ? "even" : "odd";
                            $id              = $val['id'];
                            $name            = Hightlight::show($val['name'], $params['search'], 'name');
                            $content         = Hightlight::show($val['content'], $params['search'], 'content');
                            $thumb           = Template::showItemThumb($controllerName, $val['thumb'], $val['name']);

                            $fieldName = 'changeCategory';
                            $link          = route($controllerName . '/' . $fieldName, ['category_id' => 'value_new', 'id' => $id]);
                            $categoryName    = Form::select('select_change_attr', $itemsCategory, @$val['category_id'],  ['class' => "form-control ", 'data-url' => $link]);
                            $status          = Template::showItemStatus($controllerName, $id, $val['status']); 
                            $type            = Template::showItemSelect($controllerName, $id, $val['type'], 'type');
                            // $createdHistory  = Template::showItemHistory($val['created_by'], $val['created']);
                            // $modifiedHistory = Template::showItemHistory($val['modified_by'], $val['modified']);
                            $listBtnAction   = Template::showButtonAction($controllerName, $id);
                        ?> <tr class="<?php echo e($class); ?> pointer"> <td ><?php echo e($index); ?></td> <td width="30%"> <p><strong>Name:</strong> <?php echo $name; ?></p> <p><strong>Content:</strong> <?php echo $content; ?></p> </td> <td width="14%"> <p><?php echo $thumb; ?></p> </td> <td ><?php echo $categoryName; ?></td> <td><?php echo $type; ?></td> <td><?php echo $status; ?></td> <td class="last"><?php echo $listBtnAction; ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <?php echo $__env->make('admin.templates.list_empty', ['colspan' => 6], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> </tbody> </table> </div> </div> <?php /**PATH D:\xampp\htdocs\offline_laravel_duongle\resources\views/admin/pages/article/list.blade.php ENDPATH**/ ?>