<?php

namespace App\Listeners;

use App\Facades\Feature;

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'
            ],
        ];
    }
}
