<?php

namespace App\Http\Requests\Reports\ReportCards;

use App\Http\Requests\ApiFormRequest;

class ReportCardPdfRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return auth()->check();
    }

    public function rules(): array
    {
        return [
            'school_year' => ['nullable', 'string', 'max:20'],
            'semester' => ['nullable', 'string', 'max:20'],
            'report_date' => ['nullable', 'date'],
            'download' => ['nullable', 'boolean'],
        ];
    }
}
