@extends('layouts.admin') @section('title') Users List @endsection @section('content') @php $userr = Auth::user(); @endphp

Users List

@if (Auth::user()->can('admin.create'))  Create User @endif
@if ($userr->can('admin.edit') || $userr->can('admin.delete')) @endif @if(count($users) != 0) @foreach ($users as $user) @if ($userr->can('admin.edit') || $userr->can('admin.delete')) @endif @endforeach @else @endif
SL Name Email RolesAction
{{ $loop->index+1 }} {{ $user->name }} {{ $user->email }} @foreach ($user->roles as $role) {{ $role->name }} @endforeach @if ($userr->can('admin.edit')) @endif @if ($userr->can('admin.delete'))
@method('DELETE') @csrf
@endif
Nothing Found.
{{ $users->links() }}
@endsection