@extends('layouts.theme') @section('title',"Role Edit") @section('content')

Update Role

Below is update role form

@csrf

Role name

@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
@foreach ($permissions as $value=>$permission)
@foreach ($permission as $item)
permissions as $role_per) {{$role_per->id == $item->id ?' checked ':''}} @endforeach name="permission[]" value="{{$item->id}}" class="custom-control-input {{$value}}" id="{{$item->name}}" >
@endforeach
@endforeach
@endsection @section('script') @endsection