@extends('admin.layout.base') @section('title') {{'Users'}} @endsection @push('inlineStyle') @endpush @section('content')

List Of All Users

List of all registered users with their roles. Cancel @can('user-create') Create New User @endcan

@include('admin.layout.includes.successWalert')
Users
@if(count($users) > 0) @foreach($users as $user) @endforeach @else @endif
Name Email Roles Actions
{{ucfirst($user->name)}} {{ucfirst($user->email)}} @if(!empty($user->getRoleNames())) @foreach($user->getRoleNames() as $v) @endforeach @endif
@can('user-list') View @endcan @can('user-edit') Edit @endcan
@can('user-delete')
{!! Form::open(['method' => 'DELETE', 'route' => ['users.destroy', $user->id], 'onsubmit' => 'return confirmDelete()']) !!} @csrf {!! Form::close() !!}
@endcan
No record uploaded
{{ $users->render("pagination::simple-bootstrap-4") }}
@endsection @push('inlineJs') @endpush