<?php

namespace Modules\Delivery\app\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use App\Http\Resources\UserResource;

class DeliveryResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     */
    public function toArray($request): array
    {
        return [
            'id' => $this->id,
            'company' => $this->company,
            'sum' => $this->sum,
            'package_type' => $this->package_type,
            'status' => $this->status, 
            'client_last_name' => $this->client_last_name,
            'client_first_name' => $this->client_first_name,
            'client_email' => $this->client_email,
            'client_phone' => $this->client_phone,
            'client_country' => $this->client_country,
            'client_city' => $this->client_city,
            'client_street' => $this->client_street,
            'client_zip_code' => $this->client_zip_code,         

        ];
    }
}
