<?php

namespace App\Http\Resources;

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

class DashboardClienteResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'headerBar'                  => $this['headerBar'],
            'summaryInfos'               => $this['summaryInfos'],
            'pendingSchedules'           => $this['pendingSchedules'],
            'nextSchedules'              => $this['nextSchedules'],
            'lastDoneSchedules'          => $this['lastDoneSchedules'],
            'favoriteProviders'          => $this['favoriteProviders'],
            'providersClose'             => $this['providersClose'],
            'schedulesProposals'         => $this['schedulesProposals'],
            'customSchedulesNoProposals' => $this['customSchedulesNoProposals'],
            'todaySchedules'             => $this['todaySchedules'],
            'notifications'              => $this['notifications'],
            'has_payment_methods'        => $this['has_payment_methods'],
        ];
    }
}
