@extends('layouts.app') @section('content')

Roles List

@foreach ($roles as $role)

{{ $role->name }}

Total Permission with this role: {{ $role->permissions->count() }}
@foreach ($role->permissions->take(5) as $permission)
{{ $permission->name }}
@endforeach @if ($role->permissions->count() > 5)
more...
@endif
{{-- @can('edit-role-permission') --}} {{-- @endcan --}}
@endforeach {{--
--}}
{{-- --}} {{-- --}}
@endsection @push('script') @endpush