<?php

namespace App\Listeners;

use App\Facades\Feature;
use App\Modules\Stock\KeyloopRev8;

class AddVehicleDescriptionFields
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return array
     */
    public function handle($event)
    {
        if (!Feature::isEnabled('add_dealers_vehicle_description')) {
            return [];
        }

        return [
            'vehicle-description' => [
                'type' => 'textarea',
                'validation' => [
                    '',
                ],
                'label' => 'Dealer Description For Vehicles'
            ],
        ];
    }
}
