<?php

namespace App\Http\Resources\ExtraCharges;

use Illuminate\Http\Resources\Json\JsonResource;

class ExtraChargeInvoiceOptionResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id' => $this['id'] ?? null,
            'invoice_number' => $this['invoice_number'] ?? '',
            'status' => $this['status'] ?? '',
            'balance' => $this['balance'] ?? 0,
            'issue_date' => $this['issue_date'] ?? null,
            'text' => $this['text'] ?? '',
        ];
    }
}
