@extends('layouts.master') @section('css') @endsection @section('title') {{ __('roles.Permission_update') }} @stop @section('page-header')
@endsection @section('content') @if (count($errors) > 0)
خطأ
@endif {!! Form::model($role, ['method' => 'PATCH', 'route' => ['roles.update', $role->id], 'autocomplete' => 'off']) !!}
بيانات الدور الوظيفي
{!! Form::text('name', null, ['class' => 'form-control form-control-filter font-weight-bold', 'placeholder' => 'أدخل اسم الدور...', 'required']) !!}
{{ __('roles.permissions') }} المتاحة بالنظام
@foreach ($permission as $value)
{{ Form::checkbox('permission[]', $value->id, in_array($value->id, $rolePermissions) ? true : false, ['class' => 'name custom-control-input', 'id' => 'perm_' . $value->id]) }}
@endforeach
{!! Form::close() !!} @endsection @section('js') @endsection