@extends('layouts.dash') {!! $with_navbar=false !!} @section('title') Rôle @stop @section('title_card',"Mise à jour du Rôle") @section('content')
@if ($errors) @foreach ($errors->all() as $error)
{!! $error !!}
@endforeach @endif
{!! Form::model($role, ['role' => 'form', 'url' => '/roles/' . $role->id, 'method' => 'PUT', 'class' => 'form-horizontal']) !!}
{!! Form::label('name', 'Nom') !!} {!! Form::text('name', null, ['placeholder' => 'Nom', 'class' => 'form-control']) !!}
{!! Form::label('permissions', 'Permissions') !!} {!! Form::select( 'role_permissions[]', $liste_premissions, $t_getPermissions, [ 'class' => 'selectpicker form-control', 'multiple'=> 'multiple', 'data-selected-text-format'=>"count", 'data-width' => "100%" ] ) !!}
{!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!} Retour
{!! Form::close() !!}
@endsection