@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            <div class="{{ $containerSize }}">
                @include('layouts.alerts')

                <div class="panel panel-default">
                    <div class="panel-heading"><strong>@lang($heading) {{ $customHeading?$singular:'' }}</strong></div>
                    <div class="panel-body">
                        {!! Form::open(['route' => $router . '.store']) !!}
                        <div class="form-group">
                            {!! Form::label('name', Lang::getFromJson($singular . ' Name')) !!}
                            {!! Form::text('name', Input::old('name'), [
                                'class' => 'form-control',
                                'autofocus'
                            ]) !!}
                        </div>
                        {!! Form::submit(Lang::getFromJson('do.Create'), array('class' => 'btn btn-primary')) !!}
                        {!! Form::close() !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
