@extends('layouts.master')

@section('style')
    <link href="{{ asset('js/jquery-multi-select/css/multi-select.css') }}" rel="stylesheet" />
@stop

@section('content')
    <section class="wrapper">
        @include('partials.message')
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <div class="panel panel-default">
                        <div class="panel-heading">{{ trans('ui.procedures.edit_procedure') }}</div>
                        <div class="panel-body">
                            @include('errors.form_error')

                            {!! Form::model($tramite, ['method' => 'PUT', 'route' => ['tramite.update', $tramite->id], 'class' => 'cmxform form-horizontal', 'id' => 'nameForm']) !!}
                            {!! Form::hidden('id', $tramite->id) !!}

                            @include('tramites.form', array('tramite' => $tramite) + compact('documentos', 'tramite_documentos'), ['button' => trans('ui.procedures.button_update')])

                            {!! Form::close() !!}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection

@section('script')
    <script src="{{ asset('js/validation/jquery.validate.min.js') }}"></script>
    <script src="{{ asset('js/validation/validation-init.js') }}"></script>
    <script src="{{ asset('js/jquery-multi-select/js/jquery.multi-select.js') }}"></script>
    <script src="{{ asset('js/multi-select-init.js') }}"></script>
@stop