fix exam and grading

This commit is contained in:
root
2026-06-04 13:25:31 -04:00
parent b4e6ac03c5
commit feb6be0610
22 changed files with 1288 additions and 120 deletions
@@ -0,0 +1,37 @@
<?php
namespace App\Http\Requests\Grading;
use App\Http\Requests\ApiFormRequest;
use Illuminate\Validation\Rule;
class BelowSixtyDecisionSaveRequest extends ApiFormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'student_id' => ['required', 'integer', 'min:1'],
'school_year' => ['required', 'string', 'max:50'],
'semester' => ['nullable', 'string', 'max:20'],
'decision' => [
'nullable',
'string',
'max:100',
Rule::in([
'Pass',
'Repeat Class',
'Make-up exam in fall',
'Deferred decision',
'Expel',
'Withdrawn',
]),
],
'notes' => ['nullable', 'string'],
];
}
}