<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class AreaResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param \Illuminate\Http\Request $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id'          => $this->id,
            'name'        => $this->name,
            'slug'        => $this->slug,
            'description' => $this->description,
            'logo'        => $this->logo,
            'shop'        => $this->shop,
            'parent_id'   => $this->parent_id,
            'parent'      => $this->parent,
            'show_search' => $this->show_search,
        ];
    }
    /*public function withResponse($request, $response)
    {
        $response->header('Last-Modified', 'Sat, 15 May 2021 07:44:32 GMT');
    }*/
}
