<?php

namespace App;

use App\Http\Resources\LeaseVehicleList;
use Mtc\MercuryDataModels\KeyloopLeaseVehicleVariant;

class LeaseVehicleRepository
{
    public function featured(): LeaseVehicleList
    {
        $query = KeyloopLeaseVehicleVariant::query()
            ->active()
            ->withRelationshipsForCardView()
            ->where('featured', true);

        return new LeaseVehicleList($query->get());
    }
}
