@extends('panel.layouts.app') @section('body')

Edit Role

@if (count($errors) > 0)
Whoops! There were some problems with your input.

@endif {!! Form::model($role, ['method' => 'PATCH','route' => ['panel.roles.update', $role->id]]) !!}
@foreach($permission as $list) @php($temp_title[] = []) @if(!in_array($list->title,$temp_title)) @php($temp_title[] = $list->title) @else @continue @endif
{{str_replace('Clipboard','Whiteboard',ucwords(str_replace('-',' ',$list->title))) }}
@foreach($permission as $value) @if($list->title === $value->title) @endif @endforeach
   @endforeach
{!! Form::close() !!} @endsection