@php
use App\Helpers\Template as Template;
use App\Helpers\Hightlight as Hightlight;
@endphp
| # |
Name |
Link |
Ordering |
Source |
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;
$class = ($index % 2 == 0) ? "even" : "odd";
$id = $val['id'];
$source = $val['source'];
$ordering = $val['ordering'];
$name = Hightlight::show($val['name'], $params['search'], 'name');
$link = Hightlight::show($val['link'], $params['search'], 'link');
$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
| {{ $index }} |
{{ $name }} |
{{ $link }} |
{{ $ordering }} |
{{ $source }} |
{!! $status !!} |
{!! $createdHistory !!} |
{!! $modifiedHistory !!} |
{!! $listBtnAction !!} |
@endforeach
@else
@include('admin.templates.list_empty', ['colspan' => 9])
@endif