@extends('layouts.customer') @section('content')

Edit Role

{{--

{{ __('Edit Role') }}

--}}
Edit Role
@if ($errors->any())
Whoops! There were some problems with your input.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::model($role, ['method' => 'PATCH','url' => url('user-roles', $role->id)]) !!}
{{--
{{ __('Name') }}: {!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control', 'disabled' => 'disabled')) !!}
--}}
{{ __('Name') }}: {!! Form::text('display_name', null, array('placeholder' => 'Display Name','class' => 'form-control')) !!}
{{--
{{ __('Permission') }}:
@foreach( $permission as $key => $items ) @endforeach
MODULE PERMISSION
@foreach( $items as $k => $value )
id, $rolePermissions) ? 'checked' : '') }}>
@endforeach
{{ --
{{ __('Permission') }}:
@foreach( $permission as $key => $value )
id, $rolePermissions) ? 'checked' : '') }}>
@endforeach
-- }}
--}}
{!! Form::close() !!}
@endsection @section('script') @endsection