@extends('admin.layouts.master') @section('main-content')

{{ __('Roles') }}

{{ Breadcrumbs::render('roles') }}
@can('role_create') @endcan
@if (auth()->user()->can('role_show') || auth()->user()->can('role_edit') || auth()->user()->can('role_delete')) @endif @if(!blank($roles)) @foreach($roles as $role) @if (auth()->user()->can('role_show') || auth()->user()->can('role_edit') || auth()->user()->can('role_delete')) @endif @endforeach @endif
{{ __('levels.id') }} {{ __('levels.name') }}{{ __('levels.actions') }}
{{ $loop->index+1}} {{ $role->name}} @if (auth()->user()->can('role_show')) @endif @if (auth()->user()->can('role_edit')) @endif @if (!in_array($role->id, $notDeleteArray) && auth()->user()->can('role_delete'))
@csrf @method('DELETE')
@endif
@endsection