@php
use App\Helpers\Template as Template;
use App\Helpers\Hightlight as Hightlight;
@endphp
| # |
Tên |
Trạng thái |
Tạo mới |
Chỉnh sửa |
Hành động |
@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]);
// $linkChangeOrdering = "";
$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 = Hightlight::show($val['name'], $params['search'], 'name');
$status = Template::showItemStatus($controllerName, $id, $val['status']); ;
$createdHistory = Template::showItemHistory($val['created_by'], $val['created']);
$modifiedHistory = Template::showItemHistory($val['modified_by'], $val['modified']);
$listBtnAction = Template::showButtonAction($controllerName, $id);
@endphp
| {{ $ordering }} |
{!! $name !!} |
{!! $status !!} |
{!! $createdHistory !!} |
{!! $modifiedHistory !!} |
{!! $listBtnAction !!} |
@endforeach
@else
@include('admin.templates.list_empty', ['colspan' => 6])
@endif