@extends('layouts.admin') @section('content')
{{-- @can('role_create') @endcan --}}
{{ trans('cruds.role.title_singular') }} {{ trans('global.list') }}
@php $i = 1; @endphp @foreach($roles as $key => $role) @php $i++; @endphp @endforeach
{{ trans('cruds.role.fields.id') }} {{ trans('cruds.role.fields.title') }} {{ trans('cruds.role.fields.permissions') }}  
{{ $i }} {{ $role->title ?? '' }} @foreach($role->permissions as $key => $item) {{ $item->title }} @endforeach @can('role_show') {{-- {{ trans('global.view') }} --}} @endcan @can('role_edit') {{-- {{ trans('global.edit') }} --}} @endcan @can('role_delete')
{{-- --}}
@endcan
@endsection @section('scripts') @parent @endsection