Some checks failed
tests / ci (pull_request) Has been cancelled
- Implemented academic advising logs functionality with create, edit, and delete capabilities. - Created UI components for displaying academic advising logs in a data table format. - Added letter requests management with similar CRUD operations and UI components. - Refactored routes to organize academic classes, announcements, finances, and services under appropriate namespaces.
28 lines
736 B
PHP
28 lines
736 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin\Finances;
|
|
|
|
use App\Enums\PaymentStatus;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class TuitionPaymentRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'amount_paid' => ['required', 'numeric', 'min:0'],
|
|
'paid_at' => ['required', 'date'],
|
|
'payment_method' => ['nullable', 'string', 'max:30'],
|
|
'status' => ['required', Rule::enum(PaymentStatus::class)],
|
|
'notes' => ['nullable', 'string'],
|
|
'proof' => ['nullable', 'file', 'max:10240', 'mimes:pdf,jpg,jpeg,png'],
|
|
];
|
|
}
|
|
}
|