<?php

namespace App\Http\Resources\Settings;

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

class SettingsResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'site_name' => $this->resource['site_name'] ?? null,
            'administrator_email' => $this->resource['administrator_email'] ?? null,
            'timezone' => $this->resource['timezone'] ?? null,
        ];
    }
}
