@extends('backend.layouts.app') @section('title') {{ __('users_list') }} @endsection @section('content') @php $userr = auth()->user(); @endphp
@if ($userr->can('admin.edit') || $userr->can('admin.delete')) @endif @forelse ($users as $user) @empty @endforelse
# {{ __('name') }} {{ __('email') }} {{ __('roles') }}{{ __('action') }}
{{ $loop->index + 1 }} {{ $user->name }} {{ $user->email }} @foreach ($user->roles as $role) {{ $role->name }} @endforeach
@method('DELETE') @csrf
{{ $users->links() }}
@endsection