@extends('shared.admin') @section('content') User Group Trang chủ User Group Chọn nhóm thành viên: Chọn nhóm @if($listGroup != null && count($listGroup) > 0) @foreach($listGroup as $item) id == $groupSelect) selected="selected" @endif>{{$item->name}} @endforeach @endif Tìm kiếm Thêm thành viên vào nhóm # User Name Group Name @for ($i = 0; $i < count($list); $i++) @php $m = $list[$i]; @endphp {{ (($current_page - 1) * $page_size + $i + 1) }} {{ $m->username }} {{ $m->name }} @endfor Tổng số : {{ $total_record }} @if ($total_record > 0) Trước 1 @php $left = true; $right = true; @endphp @for ($page = 2; $page <= $total_page - 1; $page++) @if ($page < $current_page - 2) @if ($left) ... @php $left = false; @endphp @endif @elseif ($page > $current_page + 2) @if ($right) ... @php $right = false; @endphp @endif @else {{ $page }} @endif @endfor @if ($total_page > 1) {{ $total_page }} @endif Tiếp @endif @endsection