<?php

namespace App\Http\Resources\Finance;

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

class FinancialReimbursementSummaryResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'status' => $this->resource['status'] ?? null,
            'total_amount' => (float) ($this->resource['total_amount'] ?? 0),
        ];
    }
}
