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

All User

@can('create-user') @endcan
@foreach($users as $user) @endforeach
# Name Email Role Login Status Actions
{{ $loop->iteration }} {{ $user->name }} {{ $user->email }} {{ implode(', ',$user->getRoleNames()->toArray())}} {{ $user->status }} @can('view-user') @endcan @can('update-user') @endcan @can('delete-user')
{{ method_field('DELETE') }} {{ csrf_field() }}
@endcan
{{$users->links()}}
@endsection