<?php

namespace App\Http\Resources\MarcasPlazas;

use Illuminate\Http\Resources\Json\JsonResource;

class MarcasPlazasResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param \Illuminate\Http\Request $request
     * @return array
     */

    public function toArray($request)
    {
        return [
            'id_marca_plaza' => $this->id_marca_plaza,
            'id_marca' => $this->id_marca,
            'id_plaza' => $this->id_plaza,
            'id_rubro' => $this->id_rubro,
            'id_region' => $this->id_region,
            'id_sigo' => $this->id_sigo,
            'descripcion_larga' => $this->descripcion_larga,
            'descripcion_corta' => $this->descripcion_corta,
            'unidad_de_nogocio' => $this->descripcion_corta . ' ' . $this->descripcion_larga,
            'fecha_actualizacion' => $this->fecha_actualizacion,
            'fecha_registro' => $this->fecha_registro,
        ];
    }
}
