<div class="modal-dialog modal-full" id="dashboard">
    <div class="modal-content">
        <div class="modal-header">
            <div class="container">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><span>×</span></button>
                <h4 class="modal-title">
                    {{ trans('front.dashboard') }}
                </h4>
            </div>
        </div>

        <div class="modal-body">
            <div class="container">
                <div id="dashboard_blocks" class="row">
                    @if( ! empty($blocks))
                        @foreach($blocks as $block => $html)
                            {!! $html !!}
                        @endforeach
                    @else
                        <p><b>{{ trans('front.nothing_found_request') }}</b></p>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var lazy = JSON.parse('{!! json_encode(array_keys($blocks)) !!}');

    for (i in lazy) {
        app.dashboard.loadBlockContent(lazy[i]);
    }
</script>

