@extends('backend.layouts.app') @section('title') {{ __('roles') }} @endsection @section('content')

{{ __('roles_list') }}

{{ __('all_users') }} @if (auth()->user()->can('role.create')) {{ __('create') }} @endif
@if (auth()->user()->can('role.edit') || auth()->user()->can('role.delete')) @endif @forelse ($roles as $role) @if (auth()->user()->can('role.edit') || auth()->user()->can('role.delete')) @endif @empty @endforelse
# {{ __('name') }} {{ __('permission') }}{{ __('action') }}
{{ $loop->index + 1 }} {{ ucwords($role->name) }} @foreach ($role->permissions as $item) {{ $item->name }} @endforeach @if (auth()->user()->can('role.edit')) @endif @if (auth()->user()->can('role.delete'))
@method('DELETE') @csrf
@endif
{{ $roles->links() }}
@endsection @section('script') @endsection