@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.branches.edit_branch') }}</div>
                        <div class="panel-body">
                            @include('errors.form_error')

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

                            @include('sucursales.form', array('sucursal' => $sucursal), ['button' => trans('ui.branches.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