You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
862 B
27 lines
862 B
<?php
|
|
|
|
namespace App\Livewire\Forms\Academic;
|
|
|
|
use Livewire\Attributes\Validate;
|
|
use Livewire\Form;
|
|
|
|
class TermForm extends Form
|
|
{
|
|
#[Validate('required|string|max:255', as: 'domains/academic/field.term.name')]
|
|
public string $name = '';
|
|
|
|
#[Validate('required|string|max:255', as: 'domains/academic/field.term.code')]
|
|
public string $code = '';
|
|
|
|
#[Validate('required|string|max:255', as: 'domains/academic/field.term.year_study')]
|
|
public string $year_study = '';
|
|
|
|
#[Validate('required|string|max:255', as: 'domains/academic/field.term.semester')]
|
|
public string $semester = '';
|
|
|
|
#[Validate('required|date', as: 'domains/academic/field.term.date_start')]
|
|
public string $date_start = '';
|
|
|
|
#[Validate('required|date|after_or_equal:date_start', as: 'domains/academic/field.term.date_end')]
|
|
public string $date_end = '';
|
|
}
|
|
|