@extends('admin.layout.app') @section('content')
@include('admin.layout.session')
Roles
@forelse ($roles as $key => $role)
{!! Form::model($role, ['method' => 'PUT', 'route' => ['admin.roles.update', $role->id ], 'class' => 'm-b']) !!} @if($role->name === 'admin') @include('admin.shared._permissions', [ 'title' => ucwords(str_replace("_"," ",$role->name)) .' Permissions', 'options' => ['disabled'], 'key' => $key, 'role_nm' => $role->name, ]) @else @include('admin.shared._permissions', [ 'title' => ucwords(str_replace("_"," ",$role->name)) .' Permissions', 'key' => $key, 'role_nm' => $role->name, ]) @can('edit_roles')
{!! Form::submit('Save', ['class' => 'btn btn-glow-primary btn-primary btn-sm']) !!}
@endcan @endif {!! Form::close() !!}
@empty

No Roles defined, please run php artisan db:seed to seed some dummy data.

@endforelse
@endsection @push('js') @endpush