<?php

namespace App\Modules\HR\Attendance\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ReviewAttendanceExceptionRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()?->can('attendance.manage') ?? false;
    }

    /**
     * @return array<string, array<int, string>>
     */
    public function rules(): array
    {
        return [
            'resolution_note' => ['nullable', 'string', 'max:2000'],
        ];
    }
}
