@extends('shared.admin') @section('content')

User Group

@for ($i = 0; $i < count($list); $i++) @php $m = $list[$i]; @endphp @endfor
# User Name Group Name
{{ (($current_page - 1) * $page_size + $i + 1) }} {{ $m->username }} {{ $m->name }}
Tổng số : {{ $total_record }}
    @if ($total_record > 0)
  • 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 @endif
@endsection