@extends('flatlab::layout')

@section('header_title')
    Editar Permiso: {{$permiso->name}}
@endsection

@section('main-content')
<div class='col-lg-6 col-lg-offset-3'>
    <div class="panel">
        <div class="panel-heading">
            <h3><i class='fa fa-key'></i> Editar Permiso: {{$permiso->name}}</h3>
        </div>
        <div class="panel-body">
            {{ Form::model($permiso, array('route' => array('permisos.update', $permiso->id), 'method' => 'PUT')) }}
            <div class="form-group">
                {{ Form::label('name', 'Nombre del Permiso') }}
                {{ Form::text('name', null, array('class' => 'form-control')) }}
            </div>
            {{ Form::submit('Guardar Cambios', array('class' => 'btn btn-primary')) }}
            {{ Form::close() }}
            <hr>
            @include('flatlab::errors.list')  
        </div>
    </div>
</div>

@endsection
