<?php

namespace App\Reporting;

use Illuminate\Contracts\Support\Arrayable;
use Mtc\MercuryDataModels\Vehicle;

class VehiclesInStockKPI implements Arrayable
{
    public function toArray()
    {
        return [
            'name' => 'Vehicles published',
            'value' => Vehicle::query()
                ->active()
                ->count(),
            'scope' => '',
        ];
    }
}
