@extends('layouts.app') @push('pg_btn') @can('create-roles') Create New Role @endcan @endpush @section('content')

All Roles

@foreach($roles as $role) @endforeach
Name Permission Action
{{$role->name}}
@foreach ($role->getAllPermissions() as $permission) {{ $permission->name }} @endforeach
@if ($role->name !='super-admin') @can('destroy-roles') {!! Form::open(['route' => ['roles.destroy', $role],'method' => 'delete', 'class'=>'d-inline-block dform']) !!} @endcan @can('update-roles') @endcan @can('destroy-roles') {!! Form::close() !!} @endcan @else - @endif
{{$roles->links()}}
@endsection @push('scripts') @endpush