<?php

namespace App\Http\Requests\Auth;

use Illuminate\Foundation\Http\FormRequest;

class StoreManualPaymentRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'amount' => 'required|numeric|min:1',
            'transfer_date' => 'required|date',
            'sender_name' => 'required|string|max:255',
            'proof' => 'required|image|max:2048', // 2MB max
            'review_notes' => 'nullable|string',
        ];
    }

    public function messages()
    {
        return [
            'proof.required' => 'Bukti transfer wajib diunggah.',
            'proof.image' => 'File harus berupa gambar (JPG, PNG).',
        ];
    }
}
