<!-- BEGIN PAGE TITLE-->
<h1 class="page-title"> Dashboard
    <small> statistics, charts, recent events and reports</small>
</h1>

<div class="row">
    <div class="col-lg-6 col-xs-12 col-sm-12">
        <div class="portlet light bordered">
            <div class="portlet-title">
                <div class="caption ">
                    <span class="caption-subject font-dark bold uppercase">{{ __('Analisi per profilo') }}</span>
                    <span class="caption-helper">{{ __('analisi eseguite per singolo profilo') }}</span>
                </div>
                <div class="actions">
                </div>
                <div class="tools">
                </div>
            </div>
            <div class="portlet-body">
                <div id="dashboard-chart-summary" class="dashboard-chart-summary"></div>
            </div>
        </div>
    </div>
    <div class="col-lg-6 col-xs-12 col-sm-12">
        <div class="portlet light bordered">
            <div class="portlet-title">
                <div class="caption ">
                    <span class="caption-subject font-dark bold uppercase">{{ __('Ultime analisi') }}</span>
                    <span class="caption-helper">{{ __('ultime 10 analisi richieste') }}</span>
                </div>
                <div class="actions">
                </div>
                <div class="tools">
                </div>
            </div>
            <div class="portlet-body">
                <div id="dashboard-last10-summary" class="">
                    <div class="mt-element-list">
                        <div class="mt-list-head list-simple font-white bg-{{ Sartoric\ModularCms\Models\Setting::appsetting('app-main-color') }}">
                            <div class="list-head-title-container">
                            </div>
                        </div>
                        <div class="mt-list-container list-simple">
                            <ul>
                                @foreach($dashSummary['last10'] as $test)
                                    <li class="mt-list-item">
                                        <div class="list-icon-container done">
                                            <span class="badge badge-{{ Sartoric\ModularCms\Models\Setting::appsetting('app-main-color') }} badge-roundless"> {{ $test->score }} </span>
                                        </div>
                                        <div class="list-datetime"> {{Carbon\Carbon::parse($test->data)->formatLocalized('%d %b') }} </div>
                                        <div class="list-item-content">
                                            <h3 class="uppercase">
                                                <a href="{{ action('\Sartoric\ModularCms\Controllers\Layouts\TestResultController@details', [$test->id]) }}">{{ $test->protocol.$test->domain }}</a>
                                            </h3>
                                        </div>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>