@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            <div class="{{ $containerSize }}">
                @include('layouts.alerts')
                @php(\App\Debugger\Debugger::attach())

                <div class="panel panel-default">
                    <div class="panel-heading"><strong>@lang('Please choose entity class to be created')</strong></div>
                    <div class="panel-body text-center">
                        @foreach($results as $result)
                            <div class="row" style="margin-bottom: 10px">
                                <a href="{{ route($router . '.create', [
                                    'classId' => $result->id
                                ]) }}">
                                    <div class="btn btn-primary">
                                        {{ $result->name }}
                                    </div>
                                </a>
                            </div>
                        @endforeach
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
