<?php

namespace App\Nova\Dashboards;

use App\Nova\Metrics\DraftArticles;
use App\Nova\Metrics\PublishedArticles;
use App\Nova\Metrics\SiteVisitsPerDay;
use App\Nova\Metrics\TotalArticles;
use App\Nova\Metrics\TotalContacts;
use App\Nova\Metrics\TotalReferrals;
use Laravel\Nova\Dashboards\Main as Dashboard;

class Main extends Dashboard
{
    /**
     * Get the cards for the dashboard.
     *
     * @return array
     */
    public function cards()
    {
        return [
            (new TotalArticles())->width('1/3'),
            (new PublishedArticles())->width('1/3'),
            (new DraftArticles())->width('1/3'),

            (new SiteVisitsPerDay())->width('full'),

            (new TotalContacts())->width('1/2'),
            (new TotalReferrals())->width('1/2'),
        ];
    }
}
