@php
use App\Helpers\Template as Template;
use App\Helpers\Hightlight as Hightlight;
@endphp
| # |
Username |
Email |
Fullname |
Level |
Avatar |
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'];
$username = Hightlight::show($val['username'], $params['search'], 'username');
$fullname = Hightlight::show($val['fullname'], $params['search'], 'fullname');
$email = Hightlight::show($val['email'], $params['search'], 'email');
$level = Template::showItemSelect($controllerName, $id, $val['level'], 'level');
$avatar = Template::showItemThumb($controllerName, $val['avatar'], $val['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
| {{ $index }} |
{!! $username !!} |
{!! $email!!} |
{!! $fullname!!} |
{!! $level !!} |
{!! $avatar !!} |
{!! $status !!} |
{!! $createdHistory !!} |
{!! $modifiedHistory !!} |
{!! $listBtnAction !!} |
@endforeach
@else
@include('admin.templates.list_empty', ['colspan' => 6])
@endif