@php use App\Helpers\Template as Template; use App\Helpers\Hightlight as Hightlight; @endphp
@if (count($items) > 0) @foreach ($items as $key => $val) @php $index = $key + 1; $id = $val['id']; $linkChangeOrdering = route($controllerName . '/ordering', ['ordering' => 'value_new', 'id' => $id]); $ordering = Form::number('input_change_attr', @$val['ordering'], ['class'=>'form-control ', 'style' => 'width: 50px', 'min' => 0, 'data-url' => $linkChangeOrdering] ); $class = ($index % 2 == 0) ? "even" : "odd"; $name = $val['name']; $link = $val['link']; // $typeMenu = $val['type_menu']; $typeMenu = Template::showItemSelect($controllerName, $id, $val['type_menu'], 'type_menu'); $typeOpen = Template::showItemSelect($controllerName, $id, $val['type_open'], 'type_open'); // $typeOpen = ""; $status = Template::showItemStatus($controllerName, $id, $val['status']); $listBtnAction = Template::showButtonAction($controllerName, $id); @endphp @endforeach @else @include('admin.templates.list_empty', ['colspan' => 6]) @endif
# Name Link Type menu Type open Trạng thái Hành động
{{ $ordering }} {!! $name !!} {!! $link!!} {!! $typeMenu!!} {!! $typeOpen !!} {!! $status !!} {!! $listBtnAction !!}