@extends('layouts.app') @push('pg_btn') All Roles @endpush @section('content')
{!! Form::open(['route' => ['roles.update', $role], 'method'=>'put']) !!}
Role information
{{ Form::label('name', 'Name', ['class' => 'form-control-label']) }} {{ Form::text('name', $role->name, ['class' => 'form-control']) }}

@foreach ($permissions as $key => $permission)
permissions as $perm) @if ($perm->id== $key)) checked @endif @endforeach @if($role->name == 'super-admin') disabled @endif> {{ Form::label($permission, $permission, ['class' => 'custom-control-label']) }}
@endforeach
{{ Form::submit('Submit', ['class'=> 'mt-3 btn btn-primary']) }}
{!! Form::close() !!}
@endsection