@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; $class = ($index % 2 == 0) ? "even" : "odd"; $id = $val['id']; $name = Hightlight::show($val['name'], $params['search'], 'name'); $phone = Hightlight::show($val['phone'], $params['search'], 'phone'); $content = Hightlight::show($val['content'], $params['search'], 'content'); $email = Hightlight::show($val['email'], $params['search'], 'email'); $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 @endforeach @else @include('admin.templates.list_empty', ['colspan' => 6]) @endif
# Name Email Phone Content Trạng thái Tạo mới Chỉnh sửa Hành động
{{ $index }} {!! $name !!} {!! $email!!} {!! $phone!!} {!! $content !!} {!! $status !!} {!! $createdHistory !!} {!! $modifiedHistory !!} {!! $listBtnAction !!}