@extends('app') @section('content')

@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif {!! Form::model($role,['route' => $role ? ['roles.update','role'=>$role->id] : 'roles.store','method'=> $role ? 'PUT' : 'POST', 'id'=>'form_roles', 'novalidate'=>"novalidate"]) !!}
{!! Form::text('name', null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('name', 'إسم الدور', ['class' => 'control-label label-b']) !!}
{!! Form::text('display_name', null, ['class' => 'form-control']) !!}
{!! Form::label('display_name', 'إسم الدور العام', ['class' => 'control-label label-b']) !!}
{!! Form::textarea('description', null, ['class' => 'form-control','rows'=>3]) !!}
{!! Form::label('Description', 'وصف الدور', ['class' => 'control-label label-b']) !!}
{!! Form::submit( $role ? 'تحديث' : 'حفظ', ['class' => 'btn btn-primary btn-cons brownbtn','id' => 'btn-submit']) !!}
إلغاء
{!! Form::close() !!}
@endsection @section('page_script') @endsection