@extends('layouts.master')
 
@section('title') Create Permission @stop
 
@section('content')
 
<div class='col-lg-4 col-lg-offset-4'>
 
    @if ($errors)
        @foreach ($errors->all() as $error)
            <div class='bg-danger alert'>{!! $error !!}</div>
        @endforeach
    @endif
 
    <h1><i class='fa fa-user'></i> Mise à jour de la Permission</h1>
 
    {!! Form::model($permission, ['permission' => 'form', 'url' => '/acces/permissions/' . $permission->id, 'method' => 'PUT']) !!}
  
    <div class='form-group'>
        {!! Form::label('name', 'Nom') !!}
        {!! Form::text('name', null, ['placeholder' => 'Nom', 'class' => 'form-control text-uppercase']) !!}
    </div>

    <div class='form-group'>
        {!! Form::label('display_name', 'Nom affiché') !!}
        {!! Form::text('display_name', null, ['placeholder' => 'Nom', 'class' => 'form-control']) !!}
    </div>
 
    <div class='form-group'>
        {!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!}
    </div>
 
    {!! Form::close() !!}
 
</div>
 
@stop