<?php

namespace App\Http\Requests\Member;

use Illuminate\Foundation\Http\FormRequest;

// ══════════════════════════════════════════════════════════════════
//  InPractice — RespondJobInterestRequest
//  Location: app/Http/Requests/Member/RespondJobInterestRequest.php
//
//  Validates a professional's response to a job interest notification.
//  Response must be either accepted or declined.
// ══════════════════════════════════════════════════════════════════

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

    public function rules(): array
    {
        return [
            'response' => ['required', 'string', 'in:accepted,declined'],
        ];
    }

    public function messages(): array
    {
        return [
            'response.required' => __('cv.response_required'),
            'response.in'       => __('cv.response_invalid'),
        ];
    }
}