add school calendar logic

This commit is contained in:
root
2026-03-10 16:55:50 -04:00
parent 311bb93977
commit abebe0d9c0
25 changed files with 1358 additions and 750 deletions
@@ -0,0 +1,25 @@
<?php
namespace App\Http\Requests\Settings;
use App\Http\Requests\ApiFormRequest;
use Illuminate\Validation\Rule;
class SchoolCalendarIndexRequest extends ApiFormRequest
{
public function authorize(): bool
{
return auth()->check();
}
public function rules(): array
{
return [
'school_year' => ['nullable', 'string', 'max:20'],
'semester' => ['nullable', 'string', 'max:20'],
'audience' => ['nullable', 'string', Rule::in(['parent', 'teacher', 'admin'])],
'include_meetings' => ['nullable', 'boolean'],
'sort_dir' => ['nullable', 'string', Rule::in(['asc', 'desc'])],
];
}
}