@section('main')

<h1>All {{formalModel}}</h1>

<p>{{ link_to_route('{{pluralModel}}.create', 'Add new {{model}}') }}</p>

@if (${{pluralModel}}->count())
    <table class="table table-striped table-bordered">
        <thead>
            <tr>
                {{headings}}
            </tr>
        </thead>

        <tbody>
            @foreach (${{pluralModel}} as ${{model}})
                <tr>
                    {{fields}}
                </tr>
            @endforeach
        </tbody>
    </table>
@else
    There are no {{pluralModel}}
@endif

@stop