<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class DealBuilderDeliverySettingsResource extends JsonResource
{
    public static $wrap = '';

    #[\Override]
    public function toArray(Request $request): array
    {
        return [
            'allow_home_delivery' => $this->resource['allow_home_delivery'],
            'max_delivery_distance' => $this->resource['max_delivery_distance'],
            'locations' => $this->resource['locations'],
            'price_tiers' => $this->resource['price_tiers'],
        ];
    }
}
