@extends('layouts.dash')

@section('content')
    <!-- Right Panel -->
    <div id="right-panel" class="right-panel">

        @if ($errors)
            @foreach ($errors->all() as $error)
                <div class='bg-danger alert'>{!! $error !!}</div>
            @endforeach
        @endif
        <div class="col-lg-max col-lg-offset-1 container-fluid">
            <h1><i class='fa fa-entreprise'></i> Etablissement scolaire</h1>
            {!! Form::model($etablissement, ['class' => 'form-horizontal']) !!}

            @include("structures.etablissements.content")

            <div class='form-group '>
                <a class="btn btn-info"  href="{!! url('etablissements/'.$etablissement->id.'/edit') !!}">Modifier</a>&nbsp;&nbsp;
            </div>
            {{ html()->form()->close() }}
        </div>
    </div><!-- /#right-panel -->
@endsection