<?php

namespace App\Modules\ServiceBooking\Http\Resources;

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

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

    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        $this->resource->load([
            'location',
            'packages',
            'deliveryOption',
        ]);
        return parent::toArray($request);
    }
}
