<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use Encore\Admin\Controllers\Dashboard;
use Encore\Admin\Layout\Column;
use Encore\Admin\Layout\Content;
use Encore\Admin\Layout\Row;

class HomeController extends Controller
{
    public function index(Content $content)
    {
        return $content
            ->header(__('admin.home.dashboard'))
            ->description(__('admin.home.description'))
            ->row(function(Row $row) {

                $row->column(4, function(Column $column) {
                    $column->append(DashboardController::general());
                });

                $row->column(4, function(Column $column) {
                    $column->append(DashboardController::environment());
                });

                // $row->column(4, function(Column $column) {
                //     $column->append(Dashboard::extensions());
                // });

                $row->column(4, function(Column $column) {
                    $column->append(Dashboard::dependencies());
                });
            });
    }
}
