<?php

namespace App\Http\Resources\Fees;

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

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