<?php

namespace App\Http\Resources;

use App\Classes\ValueObjects\Constants\RoleTypes;
use App\Models\Order;
use Illuminate\Http\Resources\Json\JsonResource;

class PackingListNullOrderResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        $replica = $this->packingLists()->first();

        return [
            'id' => $this->id,
            'claimant_id' => $this->claimant_id,
            'reference' => $this->reference,
            'status' => $this->status,
            'type' => $this->type,
        ];
    }
}
