<?php

namespace App\Http\Requests\Attendance;

use Illuminate\Foundation\Http\FormRequest;

class SaveStaffAttendanceCellRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'date' => ['required', 'date'],
            'status' => ['nullable', 'in:present,absent,late'],
            'user_id' => ['required', 'integer'],
            'role_name' => ['nullable', 'string'],
            'semester' => ['required', 'string'],
            'school_year' => ['required', 'string'],
            'reason' => ['nullable', 'string'],
        ];
    }
}