commit 007f107be636322abe4bf5eedbe3b1ce5e06de38 Author: novysan87 Date: Sun Apr 12 06:24:30 2026 +0000 Initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a186cd2 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[compose.yaml] +indent_size = 4 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..c0660ea --- /dev/null +++ b/.env.example @@ -0,0 +1,65 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +APP_LOCALE=en +APP_FALLBACK_LOCALE=en +APP_FAKER_LOCALE=en_US + +APP_MAINTENANCE_DRIVER=file +# APP_MAINTENANCE_STORE=database + +# PHP_CLI_SERVER_WORKERS=4 + +BCRYPT_ROUNDS=12 + +LOG_CHANNEL=stack +LOG_STACK=single +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=sqlite +# DB_HOST=127.0.0.1 +# DB_PORT=3306 +# DB_DATABASE=laravel +# DB_USERNAME=root +# DB_PASSWORD= + +SESSION_DRIVER=database +SESSION_LIFETIME=120 +SESSION_ENCRYPT=false +SESSION_PATH=/ +SESSION_DOMAIN=null + +BROADCAST_CONNECTION=log +FILESYSTEM_DISK=local +QUEUE_CONNECTION=database + +CACHE_STORE=database +# CACHE_PREFIX= + +MEMCACHED_HOST=127.0.0.1 + +REDIS_CLIENT=phpredis +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=log +MAIL_SCHEME=null +MAIL_HOST=127.0.0.1 +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +VITE_APP_NAME="${APP_NAME}" diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fcb21d3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +* text=auto eol=lf + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bd4b52 --- /dev/null +++ b/.gitignore @@ -0,0 +1,50 @@ +*.log +.DS_Store +.env +.env.backup +.env.production +.phpactor.json +.phpunit.result.cache +/.fleet +/.idea +/.nova +/.phpunit.cache +/.vscode +/.zed +/auth.json +/node_modules +/public/build +/public/hot +/public/storage +/storage/*.key +/storage/pail +/storage/app/* +!/storage/app/.gitignore +!/storage/app/private/ +/storage/app/private/* +!/storage/app/private/.gitignore +!/storage/app/private/regions/ +!/storage/app/private/regions/*.csv +!/storage/app/regions/ +!/storage/app/regions/*.csv +!/storage/app/public/ +/storage/app/public/* +!/storage/app/public/.gitignore +/storage/framework/cache/* +!/storage/framework/cache/.gitignore +!/storage/framework/cache/data/ +/storage/framework/cache/data/* +!/storage/framework/cache/data/.gitignore +/storage/framework/sessions/* +!/storage/framework/sessions/.gitignore +/storage/framework/testing/* +!/storage/framework/testing/.gitignore +/storage/framework/views/* +!/storage/framework/views/.gitignore +/storage/logs/* +!/storage/logs/.gitignore +/vendor +_ide_helper.php +Homestead.json +Homestead.yaml +Thumbs.db diff --git a/README.md b/README.md new file mode 100644 index 0000000..5ad1377 --- /dev/null +++ b/README.md @@ -0,0 +1,58 @@ +

Laravel Logo

+ +

+Build Status +Total Downloads +Latest Stable Version +License +

+ +## About Laravel + +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: + +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. + +## Learning Laravel + +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. + +In addition, [Laracasts](https://laracasts.com) contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. + +You can also watch bite-sized lessons with real-world projects on [Laravel Learn](https://laravel.com/learn), where you will be guided through building a Laravel application from scratch while learning PHP fundamentals. + +## Agentic Development + +Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install [Laravel Boost](https://laravel.com/docs/ai) to supercharge your AI workflow: + +```bash +composer require laravel/boost --dev + +php artisan boost:install +``` + +Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices. + +## Contributing + +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). + +## Code of Conduct + +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). + +## Security Vulnerabilities + +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/app/Console/Commands/GenerateStudentSelfServiceCodes.php b/app/Console/Commands/GenerateStudentSelfServiceCodes.php new file mode 100644 index 0000000..7d6e9e3 --- /dev/null +++ b/app/Console/Commands/GenerateStudentSelfServiceCodes.php @@ -0,0 +1,53 @@ +whereNull('deleted_at') + ->when(! $this->option('reset'), fn ($query) => $query->whereNull('self_service_access_code')) + ->get(); + + if ($students->isEmpty()) { + $this->info('Tidak ada siswa yang perlu dibuatkan kode akses.'); + return self::SUCCESS; + } + + $bar = $this->output->createProgressBar($students->count()); + $bar->start(); + + foreach ($students as $student) { + $student->forceFill([ + 'self_service_access_code' => $this->generateUniqueCode(), + 'self_service_code_generated_at' => now(), + ])->save(); + + $bar->advance(); + } + + $bar->finish(); + $this->newLine(2); + $this->info('Kode akses self-service berhasil digenerate.'); + + return self::SUCCESS; + } + + protected function generateUniqueCode(): string + { + do { + $code = strtoupper(Str::random(8)); + } while (Student::where('self_service_access_code', $code)->exists()); + + return $code; + } +} diff --git a/app/Console/Commands/ImportRegionsCommand.php b/app/Console/Commands/ImportRegionsCommand.php new file mode 100644 index 0000000..a16c094 --- /dev/null +++ b/app/Console/Commands/ImportRegionsCommand.php @@ -0,0 +1,134 @@ +option('download') || ! $this->datasetExists()) { + $this->downloadDatasets(); + } + + if (! $this->datasetExists()) { + $this->error('Dataset wilayah tidak ditemukan setelah proses download.'); + return self::FAILURE; + } + + if ($this->option('fresh')) { + $this->truncateTables(); + } + + $this->importCsv('provinces', ['id', 'name'], ['id']); + $this->importCsv('regencies', ['id', 'province_id', 'name'], ['id']); + $this->importCsv('districts', ['id', 'regency_id', 'name'], ['id']); + $this->importCsv('villages', ['id', 'district_id', 'name'], ['id']); + + $counts = [ + 'provinces' => DB::table('provinces')->count(), + 'regencies' => DB::table('regencies')->count(), + 'districts' => DB::table('districts')->count(), + 'villages' => DB::table('villages')->count(), + ]; + + $this->info('Import wilayah selesai.'); + foreach ($counts as $table => $count) { + $this->line(sprintf('- %s: %s', $table, number_format($count, 0, ',', '.'))); + } + + return self::SUCCESS; + } catch (\Throwable $e) { + $this->error('Import wilayah gagal: ' . $e->getMessage()); + return self::FAILURE; + } + } + + protected function datasetExists(): bool + { + foreach (['provinces.csv', 'regencies.csv', 'districts.csv', 'villages.csv'] as $file) { + if (! Storage::disk($this->disk)->exists($this->datasetDir . '/' . $file)) { + return false; + } + } + + return true; + } + + protected function downloadDatasets(): void + { + Storage::disk($this->disk)->makeDirectory($this->datasetDir); + + $http = Http::timeout(120)->retry(3, 1000); + + foreach (['provinces.csv', 'regencies.csv', 'districts.csv', 'villages.csv'] as $file) { + $this->line('Mengunduh ' . $file . ' ...'); + $content = $http->get($this->baseUrl . '/' . $file)->throw()->body(); + Storage::disk($this->disk)->put($this->datasetDir . '/' . $file, $content); + } + } + + protected function truncateTables(): void + { + DB::statement('SET FOREIGN_KEY_CHECKS=0'); + DB::table('villages')->truncate(); + DB::table('districts')->truncate(); + DB::table('regencies')->truncate(); + DB::table('provinces')->truncate(); + DB::statement('SET FOREIGN_KEY_CHECKS=1'); + } + + protected function importCsv(string $table, array $columns, array $uniqueBy): void + { + $path = Storage::disk($this->disk)->path($this->datasetDir . '/' . $table . '.csv'); + $handle = fopen($path, 'r'); + + if ($handle === false) { + throw new \RuntimeException('Tidak bisa membuka file dataset: ' . $path); + } + + $this->line('Import ' . $table . ' ...'); + + $rows = []; + while (($data = fgetcsv($handle)) !== false) { + if ($data === [null] || count($data) < count($columns)) { + continue; + } + + $row = []; + foreach ($columns as $index => $column) { + $row[$column] = isset($data[$index]) ? trim((string) $data[$index]) : null; + } + + if (($row['id'] ?? null) === null || $row['id'] === '') { + continue; + } + + $rows[$row['id']] = $row; + + if (count($rows) >= $this->chunkSize) { + DB::table($table)->upsert(array_values($rows), $uniqueBy, $columns); + $rows = []; + } + } + + fclose($handle); + + if ($rows !== []) { + DB::table($table)->upsert(array_values($rows), $uniqueBy, $columns); + } + } +} diff --git a/app/Http/Controllers/AcademicYearController.php b/app/Http/Controllers/AcademicYearController.php new file mode 100644 index 0000000..7fd8224 --- /dev/null +++ b/app/Http/Controllers/AcademicYearController.php @@ -0,0 +1,123 @@ +get('search')); + + $academicYears = AcademicYear::withCount(['classes', 'students']) + ->when($search !== '', function ($query) use ($search) { + $query->where('name', 'like', "%{$search}%") + ->orWhere('start_year', 'like', "%{$search}%") + ->orWhere('end_year', 'like', "%{$search}%"); + }) + ->latest() + ->paginate(10) + ->withQueryString(); + + return view('academic-years.index', compact('academicYears', 'search')); + } + + public function create(): View + { + return view('academic-years.create'); + } + + public function store(Request $request): RedirectResponse + { + $data = $request->validate([ + 'name' => ['required', 'string', 'max:50', 'unique:academic_years,name'], + 'start_year' => ['required', 'integer', 'digits:4'], + 'end_year' => ['required', 'integer', 'digits:4', 'gte:start_year'], + 'is_active' => ['nullable', 'boolean'], + ]); + + $data['is_active'] = $request->boolean('is_active'); + + if ($data['is_active']) { + AcademicYear::query()->update(['is_active' => false]); + } + + AcademicYear::create($data); + + return redirect()->route('academic-years.index')->with('success', 'Tahun angkatan berhasil ditambahkan.'); + } + + public function show(AcademicYear $academicYear): RedirectResponse + { + return redirect()->route('academic-years.edit', $academicYear); + } + + public function edit(AcademicYear $academicYear): View + { + return view('academic-years.edit', [ + 'academicYear' => $academicYear, + ]); + } + + public function update(Request $request, AcademicYear $academicYear): RedirectResponse + { + $data = $request->validate([ + 'name' => ['required', 'string', 'max:50', Rule::unique('academic_years', 'name')->ignore($academicYear->id)], + 'start_year' => ['required', 'integer', 'digits:4'], + 'end_year' => ['required', 'integer', 'digits:4', 'gte:start_year'], + 'is_active' => ['nullable', 'boolean'], + ]); + + $data['is_active'] = $request->boolean('is_active'); + + if ($data['is_active']) { + AcademicYear::whereKeyNot($academicYear->id)->update(['is_active' => false]); + } + + $academicYear->update($data); + + return redirect()->route('academic-years.index')->with('success', 'Tahun angkatan berhasil diperbarui.'); + } + + public function destroy(AcademicYear $academicYear): RedirectResponse + { + $academicYear->loadCount('students'); + $classesWithStudentsCount = $academicYear->classes()->withCount('students')->get()->where('students_count', '>', 0)->count(); + $emptyClassesCount = $academicYear->classes()->withCount('students')->get()->where('students_count', 0)->count(); + + if ($academicYear->students_count > 0 || $classesWithStudentsCount > 0) { + Alert::error('Tidak bisa dihapus', 'Tahun angkatan ini masih digunakan oleh data siswa aktif atau kelas yang masih berisi siswa.'); + + return redirect()->route('academic-years.index')->withErrors([ + 'delete' => 'Tahun angkatan tidak bisa dihapus karena masih digunakan oleh data siswa aktif atau kelas yang masih berisi siswa.', + ]); + } + + DB::transaction(function () use ($academicYear) { + $classIds = $academicYear->classes()->pluck('id'); + + StudentAcademicHistory::query() + ->whereIn('class_id', $classIds) + ->delete(); + + $academicYear->classes()->delete(); + $academicYear->delete(); + }); + + $message = $emptyClassesCount > 0 + ? "Tahun angkatan berhasil dihapus beserta {$emptyClassesCount} kelas kosong terkait." + : 'Tahun angkatan berhasil dihapus.'; + + Alert::success('Berhasil', $message); + + return redirect()->route('academic-years.index')->with('success', $message); + } +} diff --git a/app/Http/Controllers/Api/RegionController.php b/app/Http/Controllers/Api/RegionController.php new file mode 100644 index 0000000..d338a37 --- /dev/null +++ b/app/Http/Controllers/Api/RegionController.php @@ -0,0 +1,33 @@ +json( + Regency::where('province_id', $provinceId)->orderBy('name')->get(['id', 'name']) + ); + } + + public function districts(string $regencyId): JsonResponse + { + return response()->json( + District::where('regency_id', $regencyId)->orderBy('name')->get(['id', 'name']) + ); + } + + public function villages(string $districtId): JsonResponse + { + return response()->json( + Village::where('district_id', $districtId)->orderBy('name')->get(['id', 'name']) + ); + } +} diff --git a/app/Http/Controllers/Auth/AuthenticatedSessionController.php b/app/Http/Controllers/Auth/AuthenticatedSessionController.php new file mode 100644 index 0000000..613bcd9 --- /dev/null +++ b/app/Http/Controllers/Auth/AuthenticatedSessionController.php @@ -0,0 +1,47 @@ +authenticate(); + + $request->session()->regenerate(); + + return redirect()->intended(route('dashboard', absolute: false)); + } + + /** + * Destroy an authenticated session. + */ + public function destroy(Request $request): RedirectResponse + { + Auth::guard('web')->logout(); + + $request->session()->invalidate(); + + $request->session()->regenerateToken(); + + return redirect('/'); + } +} diff --git a/app/Http/Controllers/Auth/ConfirmablePasswordController.php b/app/Http/Controllers/Auth/ConfirmablePasswordController.php new file mode 100644 index 0000000..712394a --- /dev/null +++ b/app/Http/Controllers/Auth/ConfirmablePasswordController.php @@ -0,0 +1,40 @@ +validate([ + 'email' => $request->user()->email, + 'password' => $request->password, + ])) { + throw ValidationException::withMessages([ + 'password' => __('auth.password'), + ]); + } + + $request->session()->put('auth.password_confirmed_at', time()); + + return redirect()->intended(route('dashboard', absolute: false)); + } +} diff --git a/app/Http/Controllers/Auth/EmailVerificationNotificationController.php b/app/Http/Controllers/Auth/EmailVerificationNotificationController.php new file mode 100644 index 0000000..f64fa9b --- /dev/null +++ b/app/Http/Controllers/Auth/EmailVerificationNotificationController.php @@ -0,0 +1,24 @@ +user()->hasVerifiedEmail()) { + return redirect()->intended(route('dashboard', absolute: false)); + } + + $request->user()->sendEmailVerificationNotification(); + + return back()->with('status', 'verification-link-sent'); + } +} diff --git a/app/Http/Controllers/Auth/EmailVerificationPromptController.php b/app/Http/Controllers/Auth/EmailVerificationPromptController.php new file mode 100644 index 0000000..ee3cb6f --- /dev/null +++ b/app/Http/Controllers/Auth/EmailVerificationPromptController.php @@ -0,0 +1,21 @@ +user()->hasVerifiedEmail() + ? redirect()->intended(route('dashboard', absolute: false)) + : view('auth.verify-email'); + } +} diff --git a/app/Http/Controllers/Auth/NewPasswordController.php b/app/Http/Controllers/Auth/NewPasswordController.php new file mode 100644 index 0000000..fc16e14 --- /dev/null +++ b/app/Http/Controllers/Auth/NewPasswordController.php @@ -0,0 +1,63 @@ + $request]); + } + + /** + * Handle an incoming new password request. + * + * @throws ValidationException + */ + public function store(Request $request): RedirectResponse + { + $request->validate([ + 'token' => ['required'], + 'email' => ['required', 'email'], + 'password' => ['required', 'confirmed', Rules\Password::defaults()], + ]); + + // Here we will attempt to reset the user's password. If it is successful we + // will update the password on an actual user model and persist it to the + // database. Otherwise we will parse the error and return the response. + $status = Password::reset( + $request->only('email', 'password', 'password_confirmation', 'token'), + function (User $user) use ($request) { + $user->forceFill([ + 'password' => Hash::make($request->password), + 'remember_token' => Str::random(60), + ])->save(); + + event(new PasswordReset($user)); + } + ); + + // If the password was successfully reset, we will redirect the user back to + // the application's home authenticated view. If there is an error we can + // redirect them back to where they came from with their error message. + return $status == Password::PASSWORD_RESET + ? redirect()->route('login')->with('status', __($status)) + : back()->withInput($request->only('email')) + ->withErrors(['email' => __($status)]); + } +} diff --git a/app/Http/Controllers/Auth/PasswordController.php b/app/Http/Controllers/Auth/PasswordController.php new file mode 100644 index 0000000..6916409 --- /dev/null +++ b/app/Http/Controllers/Auth/PasswordController.php @@ -0,0 +1,29 @@ +validateWithBag('updatePassword', [ + 'current_password' => ['required', 'current_password'], + 'password' => ['required', Password::defaults(), 'confirmed'], + ]); + + $request->user()->update([ + 'password' => Hash::make($validated['password']), + ]); + + return back()->with('status', 'password-updated'); + } +} diff --git a/app/Http/Controllers/Auth/PasswordResetLinkController.php b/app/Http/Controllers/Auth/PasswordResetLinkController.php new file mode 100644 index 0000000..1bc9c11 --- /dev/null +++ b/app/Http/Controllers/Auth/PasswordResetLinkController.php @@ -0,0 +1,45 @@ +validate([ + 'email' => ['required', 'email'], + ]); + + // We will send the password reset link to this user. Once we have attempted + // to send the link, we will examine the response then see the message we + // need to show to the user. Finally, we'll send out a proper response. + $status = Password::sendResetLink( + $request->only('email') + ); + + return $status == Password::RESET_LINK_SENT + ? back()->with('status', __($status)) + : back()->withInput($request->only('email')) + ->withErrors(['email' => __($status)]); + } +} diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php new file mode 100644 index 0000000..44a3930 --- /dev/null +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -0,0 +1,51 @@ +validate([ + 'name' => ['required', 'string', 'max:255'], + 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:'.User::class], + 'password' => ['required', 'confirmed', Rules\Password::defaults()], + ]); + + $user = User::create([ + 'name' => $request->name, + 'email' => $request->email, + 'password' => Hash::make($request->password), + ]); + + event(new Registered($user)); + + Auth::login($user); + + return redirect(route('dashboard', absolute: false)); + } +} diff --git a/app/Http/Controllers/Auth/VerifyEmailController.php b/app/Http/Controllers/Auth/VerifyEmailController.php new file mode 100644 index 0000000..784765e --- /dev/null +++ b/app/Http/Controllers/Auth/VerifyEmailController.php @@ -0,0 +1,27 @@ +user()->hasVerifiedEmail()) { + return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); + } + + if ($request->user()->markEmailAsVerified()) { + event(new Verified($request->user())); + } + + return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); + } +} diff --git a/app/Http/Controllers/BrandingSettingController.php b/app/Http/Controllers/BrandingSettingController.php new file mode 100644 index 0000000..a8f789f --- /dev/null +++ b/app/Http/Controllers/BrandingSettingController.php @@ -0,0 +1,70 @@ + AppSetting::branding(), + ]); + } + + public function update(Request $request): RedirectResponse + { + $data = $request->validate([ + 'app_name' => ['required', 'string', 'max:255'], + 'app_short_name' => ['required', 'string', 'max:20'], + 'app_logo' => ['nullable', 'image', 'mimes:jpg,jpeg,png,webp,svg', 'max:2048'], + 'app_favicon' => ['nullable', 'image', 'mimes:jpg,jpeg,png,webp,svg,ico', 'max:1024'], + 'public_portal_logo' => ['nullable', 'image', 'mimes:jpg,jpeg,png,webp,svg', 'max:2048'], + 'remove_app_logo' => ['nullable', 'boolean'], + 'remove_app_favicon' => ['nullable', 'boolean'], + 'remove_public_portal_logo' => ['nullable', 'boolean'], + ]); + + AppSetting::setValue('app_name', $data['app_name']); + AppSetting::setValue('app_short_name', $data['app_short_name']); + + $this->handleAssetUpdate($request, 'app_logo', 'branding/app-logo', (bool) ($data['remove_app_logo'] ?? false)); + $this->handleAssetUpdate($request, 'app_favicon', 'branding/app-favicon', (bool) ($data['remove_app_favicon'] ?? false)); + $this->handleAssetUpdate($request, 'public_portal_logo', 'branding/public-portal-logo', (bool) ($data['remove_public_portal_logo'] ?? false)); + + Alert::success('Berhasil', 'Pengaturan branding aplikasi berhasil diperbarui.'); + + return redirect()->route('settings.branding.index')->with('success', 'Pengaturan branding aplikasi berhasil diperbarui.'); + } + + protected function handleAssetUpdate(Request $request, string $field, string $directory, bool $remove = false): void + { + $currentPath = AppSetting::getValue($field); + + if ($remove) { + if ($currentPath && Storage::disk('public')->exists($currentPath)) { + Storage::disk('public')->delete($currentPath); + } + + AppSetting::setValue($field, null); + return; + } + + if (! $request->hasFile($field)) { + return; + } + + if ($currentPath && Storage::disk('public')->exists($currentPath)) { + Storage::disk('public')->delete($currentPath); + } + + $path = $request->file($field)->store($directory, 'public'); + AppSetting::setValue($field, $path); + } +} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..8677cd5 --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,8 @@ +where('is_required', true) + ->pluck('id'); + + $students = Student::with('documents')->get(); + + $completion = $this->calculateCompletion($students, $requiredDocumentTypeIds); + + return view('dashboard', [ + 'stats' => [ + 'academicYears' => AcademicYear::count(), + 'departments' => Department::count(), + 'classes' => SchoolClass::count(), + 'documentTypes' => DocumentType::count(), + 'students' => Student::count(), + 'studentsDropped' => StudentExit::count(), + 'studentsTransferred' => StudentTransfer::count(), + 'studentsGraduated' => Student::where('status', 'graduated')->count(), + 'studentsCompleteDocuments' => $completion['complete'], + 'studentsIncompleteDocuments' => $completion['incomplete'], + 'studentsVerifiedDocuments' => $completion['verified_complete'], + 'studentsUnverifiedDocuments' => $completion['verified_incomplete'], + ], + ]); + } + + protected function calculateCompletion(Collection $students, Collection $requiredDocumentTypeIds): array + { + if ($requiredDocumentTypeIds->isEmpty()) { + return [ + 'complete' => $students->count(), + 'incomplete' => 0, + 'verified_complete' => $students->count(), + 'verified_incomplete' => 0, + ]; + } + + $complete = 0; + $verifiedComplete = 0; + + foreach ($students as $student) { + $requiredDocuments = $student->documents->whereIn('document_type_id', $requiredDocumentTypeIds); + + $uploadedRequired = $requiredDocuments + ->pluck('document_type_id') + ->unique() + ->count(); + + $verifiedRequired = $requiredDocuments + ->where('verification_status', 'valid') + ->pluck('document_type_id') + ->unique() + ->count(); + + if ($uploadedRequired >= $requiredDocumentTypeIds->count()) { + $complete++; + } + + if ($verifiedRequired >= $requiredDocumentTypeIds->count()) { + $verifiedComplete++; + } + } + + return [ + 'complete' => $complete, + 'incomplete' => max($students->count() - $complete, 0), + 'verified_complete' => $verifiedComplete, + 'verified_incomplete' => max($students->count() - $verifiedComplete, 0), + ]; + } +} diff --git a/app/Http/Controllers/DepartmentController.php b/app/Http/Controllers/DepartmentController.php new file mode 100644 index 0000000..e2e3011 --- /dev/null +++ b/app/Http/Controllers/DepartmentController.php @@ -0,0 +1,117 @@ +get('search')); + + $departments = Department::withCount(['classes', 'students']) + ->when($search !== '', function ($query) use ($search) { + $query->where('code', 'like', "%{$search}%") + ->orWhere('name', 'like', "%{$search}%") + ->orWhere('description', 'like', "%{$search}%"); + }) + ->latest() + ->paginate(10) + ->withQueryString(); + + return view('departments.index', compact('departments', 'search')); + } + + public function create(): View + { + return view('departments.create'); + } + + public function store(Request $request): RedirectResponse + { + $data = $request->validate([ + 'code' => ['required', 'string', 'max:20', 'unique:departments,code'], + 'name' => ['required', 'string', 'max:100'], + 'description' => ['nullable', 'string'], + 'is_active' => ['nullable', 'boolean'], + ]); + + $data['is_active'] = $request->boolean('is_active'); + $data['code'] = strtoupper($data['code']); + + Department::create($data); + + return redirect()->route('departments.index')->with('success', 'Program keahlian berhasil ditambahkan.'); + } + + public function show(Department $department): RedirectResponse + { + return redirect()->route('departments.edit', $department); + } + + public function edit(Department $department): View + { + return view('departments.edit', [ + 'department' => $department, + ]); + } + + public function update(Request $request, Department $department): RedirectResponse + { + $data = $request->validate([ + 'code' => ['required', 'string', 'max:20', Rule::unique('departments', 'code')->ignore($department->id)], + 'name' => ['required', 'string', 'max:100'], + 'description' => ['nullable', 'string'], + 'is_active' => ['nullable', 'boolean'], + ]); + + $data['is_active'] = $request->boolean('is_active'); + $data['code'] = strtoupper($data['code']); + + $department->update($data); + + return redirect()->route('departments.index')->with('success', 'Program keahlian berhasil diperbarui.'); + } + + public function destroy(Department $department): RedirectResponse + { + $department->loadCount('students'); + $classesWithStudentsCount = $department->classes()->withCount('students')->get()->where('students_count', '>', 0)->count(); + $emptyClassesCount = $department->classes()->withCount('students')->get()->where('students_count', 0)->count(); + + if ($department->students_count > 0 || $classesWithStudentsCount > 0) { + Alert::error('Tidak bisa dihapus', 'Program keahlian ini masih digunakan oleh data siswa aktif atau kelas yang masih berisi siswa.'); + + return redirect()->route('departments.index')->withErrors([ + 'delete' => 'Program keahlian tidak bisa dihapus karena masih digunakan oleh data siswa aktif atau kelas yang masih berisi siswa.', + ]); + } + + DB::transaction(function () use ($department) { + $classIds = $department->classes()->pluck('id'); + + StudentAcademicHistory::query() + ->whereIn('class_id', $classIds) + ->delete(); + + $department->classes()->delete(); + $department->delete(); + }); + + $message = $emptyClassesCount > 0 + ? "Program keahlian berhasil dihapus beserta {$emptyClassesCount} kelas kosong terkait." + : 'Program keahlian berhasil dihapus.'; + + Alert::success('Berhasil', $message); + + return redirect()->route('departments.index')->with('success', $message); + } +} diff --git a/app/Http/Controllers/DocumentTypeController.php b/app/Http/Controllers/DocumentTypeController.php new file mode 100644 index 0000000..a268e21 --- /dev/null +++ b/app/Http/Controllers/DocumentTypeController.php @@ -0,0 +1,136 @@ +get('search')); + + $documentTypes = DocumentType::withCount('studentDocuments') + ->when($search !== '', function ($query) use ($search) { + $query->where('code', 'like', "%{$search}%") + ->orWhere('name', 'like', "%{$search}%") + ->orWhere('description', 'like', "%{$search}%") + ->orWhere('allowed_extensions', 'like', "%{$search}%"); + }) + ->latest() + ->paginate(10) + ->withQueryString(); + + return view('document-types.index', compact('documentTypes', 'search')); + } + + public function create(): View + { + return view('document-types.create'); + } + + public function store(Request $request): RedirectResponse + { + $data = $request->validate([ + 'code' => ['required', 'string', 'max:50', 'unique:document_types,code'], + 'name' => ['required', 'string', 'max:100'], + 'description' => ['nullable', 'string'], + 'max_file_size_kb' => ['nullable', 'integer', 'min:1', 'max:10240'], + 'allowed_extensions' => ['nullable', 'string', 'max:255'], + 'is_required' => ['nullable', 'boolean'], + 'is_active' => ['nullable', 'boolean'], + ]); + + $data['code'] = strtoupper($data['code']); + $data['allowed_extensions'] = $this->normalizeExtensions($data['allowed_extensions'] ?? null); + $data['is_required'] = $request->boolean('is_required'); + $data['is_active'] = $request->boolean('is_active'); + + DocumentType::create($data); + + return redirect()->route('document-types.index')->with('success', 'Jenis dokumen berhasil ditambahkan.'); + } + + public function show(DocumentType $documentType): RedirectResponse + { + return redirect()->route('document-types.edit', $documentType); + } + + public function edit(DocumentType $documentType): View + { + return view('document-types.edit', [ + 'documentType' => $documentType, + ]); + } + + public function update(Request $request, DocumentType $documentType): RedirectResponse + { + $data = $request->validate([ + 'code' => ['required', 'string', 'max:50', Rule::unique('document_types', 'code')->ignore($documentType->id)], + 'name' => ['required', 'string', 'max:100'], + 'description' => ['nullable', 'string'], + 'max_file_size_kb' => ['nullable', 'integer', 'min:1', 'max:10240'], + 'allowed_extensions' => ['nullable', 'string', 'max:255'], + 'is_required' => ['nullable', 'boolean'], + 'is_active' => ['nullable', 'boolean'], + ]); + + $data['code'] = strtoupper($data['code']); + $data['allowed_extensions'] = $this->normalizeExtensions($data['allowed_extensions'] ?? null); + $data['is_required'] = $request->boolean('is_required'); + $data['is_active'] = $request->boolean('is_active'); + + $documentType->update($data); + + return redirect()->route('document-types.index')->with('success', 'Jenis dokumen berhasil diperbarui.'); + } + + public function destroy(DocumentType $documentType): RedirectResponse + { + $documentType->loadCount('studentDocuments'); + + if ($documentType->student_documents_count > 0) { + Alert::error('Tidak bisa dihapus', 'Jenis dokumen ini masih digunakan oleh data dokumen siswa.'); + + return redirect()->route('document-types.index')->withErrors([ + 'delete' => "Jenis dokumen '{$documentType->name}' tidak bisa dihapus karena masih digunakan oleh {$documentType->student_documents_count} dokumen siswa.", + ]); + } + + try { + $documentType->delete(); + } catch (QueryException $exception) { + Alert::error('Tidak bisa dihapus', 'Jenis dokumen ini masih direferensikan oleh data lain di sistem.'); + + return redirect()->route('document-types.index')->withErrors([ + 'delete' => "Jenis dokumen '{$documentType->name}' tidak bisa dihapus karena masih direferensikan oleh data lain di sistem. Untuk kasus ini, cek dokumen siswa yang masih memakai jenis dokumen tersebut terlebih dahulu.", + ]); + } + + Alert::success('Berhasil', 'Jenis dokumen berhasil dihapus.'); + + return redirect()->route('document-types.index')->with('success', 'Jenis dokumen berhasil dihapus.'); + } + + protected function normalizeExtensions(?string $extensions): ?string + { + if (! $extensions) { + return null; + } + + $normalized = collect(explode(',', $extensions)) + ->map(fn ($item) => strtolower(trim($item))) + ->filter() + ->map(fn ($item) => ltrim($item, '.')) + ->unique() + ->implode(','); + + return $normalized !== '' ? $normalized : null; + } +} diff --git a/app/Http/Controllers/MaintenanceController.php b/app/Http/Controllers/MaintenanceController.php new file mode 100644 index 0000000..6e8f6ee --- /dev/null +++ b/app/Http/Controllers/MaintenanceController.php @@ -0,0 +1,161 @@ + 'Tahun Angkatan', + 'departments' => 'Program Keahlian', + 'classes' => 'Kelas', + 'document_types' => 'Jenis Dokumen', + 'students' => 'Data Siswa', + 'student_parents' => 'Orang Tua / Wali', + 'student_documents' => 'Dokumen Siswa + file storage', + 'student_academic_histories' => 'Histori Akademik Siswa', + ]; + + public function index(): View + { + return view('maintenance.reset-data', [ + 'stats' => [ + 'academicYears' => AcademicYear::count(), + 'departments' => Department::count(), + 'classes' => SchoolClass::count(), + 'documentTypes' => DocumentType::count(), + 'students' => Student::withTrashed()->count(), + 'studentParents' => DB::table('student_parents')->count(), + 'studentDocuments' => StudentDocument::withTrashed()->count(), + 'studentAcademicHistories' => DB::table('student_academic_histories')->count(), + ], + 'targets' => $this->availableTargets, + ]); + } + + + + public function reset(Request $request): RedirectResponse + { + $data = $request->validate([ + 'targets' => ['required', 'array', 'min:1'], + 'targets.*' => ['string'], + 'admin_password' => ['required', 'string'], + ]); + + if (! Hash::check($data['admin_password'], (string) $request->user()->password)) { + return back()->withErrors([ + 'admin_password' => 'Password admin tidak valid.', + ])->withInput(); + } + + $targets = collect($data['targets']) + ->filter(fn ($target) => array_key_exists($target, $this->availableTargets)) + ->values(); + + if ($targets->isEmpty()) { + return back()->withErrors([ + 'targets' => 'Pilih minimal satu kelompok data yang ingin dikosongkan.', + ])->withInput(); + } + + $resolvedTargets = $this->resolveTargets($targets->all()); + + DB::transaction(function () use ($resolvedTargets) { + if (in_array('students', $resolvedTargets, true)) { + Student::withTrashed()->get()->each->forceDelete(); + } + + if (in_array('student_documents', $resolvedTargets, true)) { + StudentDocument::withTrashed()->get()->each(function (StudentDocument $document) { + if ($document->file_path && Storage::disk('public')->exists($document->file_path)) { + Storage::disk('public')->delete($document->file_path); + } + }); + DB::table('student_documents')->delete(); + } + + if (in_array('student_parents', $resolvedTargets, true)) { + DB::table('student_parents')->delete(); + } + + if (in_array('student_academic_histories', $resolvedTargets, true)) { + DB::table('student_academic_histories')->delete(); + } + + if (in_array('students', $resolvedTargets, true)) { + DB::table('students')->delete(); + } + + if (in_array('classes', $resolvedTargets, true)) { + DB::table('classes')->delete(); + } + + if (in_array('document_types', $resolvedTargets, true)) { + DB::table('document_types')->delete(); + } + + if (in_array('departments', $resolvedTargets, true)) { + DB::table('departments')->delete(); + } + + if (in_array('academic_years', $resolvedTargets, true)) { + DB::table('academic_years')->delete(); + } + }); + + if (in_array('student_documents', $resolvedTargets, true)) { + Storage::disk('public')->deleteDirectory('student-documents'); + } + + $labels = collect($resolvedTargets) + ->map(fn ($target) => $this->availableTargets[$target] ?? $target) + ->implode(', '); + + Alert::success('Berhasil', 'Data berhasil dikosongkan: ' . $labels . '.'); + + return redirect()->route('settings.reset-data.index')->with('success', 'Data berhasil dikosongkan: ' . $labels . '.'); + } + + protected function resolveTargets(array $targets): array + { + $resolved = collect($targets); + + if ($resolved->contains('students')) { + $resolved = $resolved->merge(['student_documents', 'student_parents', 'student_academic_histories']); + } + + if ($resolved->contains('classes')) { + $resolved = $resolved->merge(['students', 'student_academic_histories']); + } + + if ($resolved->contains('document_types')) { + $resolved = $resolved->merge(['student_documents']); + } + + if ($resolved->contains('departments')) { + $resolved = $resolved->merge(['classes', 'students', 'student_academic_histories']); + } + + if ($resolved->contains('academic_years')) { + $resolved = $resolved->merge(['classes', 'students', 'student_academic_histories']); + } + + return $resolved->unique()->values()->all(); + } + +} diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php new file mode 100644 index 0000000..2ea81bc --- /dev/null +++ b/app/Http/Controllers/ProfileController.php @@ -0,0 +1,39 @@ + $request->user(), + ]); + } + + /** + * Update the user's profile information. + */ + public function update(ProfileUpdateRequest $request): RedirectResponse + { + $request->user()->fill($request->validated()); + + if ($request->user()->isDirty('email')) { + $request->user()->email_verified_at = null; + } + + $request->user()->save(); + + return Redirect::route('profile.edit')->with('status', 'profile-updated'); + } + +} diff --git a/app/Http/Controllers/PublicStudentLookupController.php b/app/Http/Controllers/PublicStudentLookupController.php new file mode 100644 index 0000000..3085b0a --- /dev/null +++ b/app/Http/Controllers/PublicStudentLookupController.php @@ -0,0 +1,156 @@ +get('q')); + $students = collect(); + $selectedStudent = null; + $requiredDocumentSummary = null; + $matchedBy = null; + $selectedStudentId = $request->integer('student'); + + if ($query !== '') { + $students = Student::query() + ->with([ + 'academicYear', + 'department', + 'classRoom', + 'documents.documentType', + ]) + ->where(function ($builder) use ($query) { + $builder->where('student_number', 'like', "%{$query}%") + ->orWhere('nisn', 'like', "%{$query}%") + ->orWhere('full_name', 'like', "%{$query}%"); + }) + ->orderByRaw('CASE WHEN student_number = ? THEN 0 WHEN nisn = ? THEN 1 WHEN full_name = ? THEN 2 ELSE 3 END', [$query, $query, $query]) + ->orderBy('full_name') + ->limit(10) + ->get(); + + $selectedStudent = $students->firstWhere('id', $selectedStudentId) ?? $students->first(); + + if ($selectedStudent) { + $requiredDocumentSummary = $this->buildRequiredDocumentSummary($selectedStudent); + $matchedBy = $this->detectMatchedBy($selectedStudent, $query); + } + + $students->each(function (Student $student) { + $student->public_photo_url = $this->resolvePhotoUrl($student); + }); + } + + return view('public.student-lookup', [ + 'query' => $query, + 'students' => $students, + 'student' => $selectedStudent, + 'requiredDocumentSummary' => $requiredDocumentSummary, + 'matchedBy' => $matchedBy, + 'selectedStudentId' => $selectedStudent?->id, + ]); + } + + protected function detectMatchedBy(Student $student, string $query): ?string + { + if ($student->student_number && strcasecmp($student->student_number, $query) === 0) { + return 'NIS'; + } + + if ($student->nisn && strcasecmp($student->nisn, $query) === 0) { + return 'NISN'; + } + + return 'Nama'; + } + + protected function resolvePhotoUrl(Student $student): ?string + { + $photoDocument = $student->documents + ->filter(function ($document) { + $code = strtoupper((string) ($document->documentType?->code ?? '')); + $name = strtolower((string) ($document->documentType?->name ?? '')); + + return $code === 'PAS_FOTO' + || $code === 'PASFOTO' + || str_contains($name, 'pas foto') + || str_contains($name, 'pasfoto'); + }) + ->sortByDesc('created_at') + ->first(); + + if (! $photoDocument?->file_path) { + return null; + } + + return asset('storage/' . $photoDocument->file_path); + } + + protected function buildRequiredDocumentSummary(Student $student): array + { + $requiredTypes = DocumentType::query() + ->where('is_active', true) + ->where('is_required', true) + ->get(); + + if ($requiredTypes->isEmpty()) { + return [ + 'total' => 0, + 'uploaded' => 0, + 'verified' => 0, + 'missing' => 0, + 'unverified' => 0, + 'percentage' => 100, + 'verification_percentage' => 100, + 'missing_items' => collect(), + 'unverified_items' => collect(), + ]; + } + + $documents = $student->documents; + + $uploaded = 0; + $verified = 0; + $missingItems = collect(); + $unverifiedItems = collect(); + + foreach ($requiredTypes as $type) { + $matchingDocuments = $documents->where('document_type_id', $type->id); + $latestDocument = $matchingDocuments->sortByDesc('created_at')->first(); + + if (! $latestDocument) { + $missingItems->push($type->name); + continue; + } + + $uploaded++; + + if ($latestDocument->verification_status === 'valid') { + $verified++; + } else { + $unverifiedItems->push($type->name); + } + } + + $total = $requiredTypes->count(); + + return [ + 'total' => $total, + 'uploaded' => $uploaded, + 'verified' => $verified, + 'missing' => max($total - $uploaded, 0), + 'unverified' => max($total - $verified, 0), + 'percentage' => $total > 0 ? (int) round(($uploaded / $total) * 100) : 100, + 'verification_percentage' => $total > 0 ? (int) round(($verified / $total) * 100) : 100, + 'missing_items' => $missingItems, + 'unverified_items' => $unverifiedItems, + ]; + } +} diff --git a/app/Http/Controllers/PublicStudentSelfServiceController.php b/app/Http/Controllers/PublicStudentSelfServiceController.php new file mode 100644 index 0000000..5dbe1c7 --- /dev/null +++ b/app/Http/Controllers/PublicStudentSelfServiceController.php @@ -0,0 +1,249 @@ +validate([ + 'identity_number' => ['required', 'string', 'max:30'], + 'access_code' => ['required', 'string', 'max:20'], + ], [ + 'identity_number.required' => 'NIS atau NISN wajib diisi.', + 'access_code.required' => 'Kode akses wajib diisi.', + ]); + + $student = Student::query() + ->where('self_service_access_code', strtoupper(trim($data['access_code']))) + ->where(function ($query) use ($data) { + $query->where('student_number', $data['identity_number']) + ->orWhere('nisn', $data['identity_number']); + }) + ->first(); + + if (! $student) { + return back() + ->withInput() + ->withErrors([ + 'identity_number' => 'Data siswa tidak ditemukan atau kode akses tidak cocok.', + ]); + } + + $request->session()->put('student_self_service.student_id', $student->id); + $request->session()->put('student_self_service.verified_at', now()->toIso8601String()); + + $student->forceFill([ + 'self_service_last_access_at' => now(), + 'self_service_status' => $student->self_service_status === 'submitted' ? 'submitted' : 'draft', + ])->save(); + + return redirect()->route('public.student-self-service.edit'); + } + + public function edit(Request $request): View|RedirectResponse + { + $student = $this->resolveVerifiedStudent($request); + + if (! $student) { + return redirect()->route('public.student-self-service.index') + ->withErrors([ + 'identity_number' => 'Sesi pelengkapan data tidak valid atau sudah berakhir. Silakan verifikasi ulang.', + ]); + } + + $student->load(['parents', 'academicYear', 'department', 'classRoom']); + + return view('public.student-self-service.edit', [ + 'student' => $student, + 'genders' => [ + 'L' => 'Laki-laki', + 'P' => 'Perempuan', + ], + 'religions' => [ + 'Islam' => 'Islam', + 'Kristen' => 'Kristen', + 'Katolik' => 'Katolik', + 'Hindu' => 'Hindu', + 'Buddha' => 'Buddha', + 'Khonghucu' => 'Khonghucu', + 'Lainnya' => 'Lainnya', + ], + 'provinces' => Province::orderBy('name')->pluck('name', 'id'), + 'parentRelationLabels' => [ + 'father' => 'Ayah', + 'mother' => 'Ibu', + 'guardian' => 'Wali', + ], + 'educationOptions' => [ + 'Tidak Sekolah' => 'Tidak Sekolah', + 'Tidak Tamat SD' => 'Tidak Tamat SD', + 'SD' => 'SD', + 'SMP' => 'SMP', + 'SLTA' => 'SLTA', + 'D1' => 'D1', + 'D2' => 'D2', + 'D3' => 'D3', + 'D4' => 'D4', + 'S1' => 'S1', + 'S2' => 'S2', + 'S3' => 'S3', + 'Lainnya' => 'Lainnya', + ], + ]); + } + + public function update(Request $request): RedirectResponse + { + $student = $this->resolveVerifiedStudent($request); + + if (! $student) { + return redirect()->route('public.student-self-service.index') + ->withErrors([ + 'identity_number' => 'Sesi pelengkapan data tidak valid atau sudah berakhir. Silakan verifikasi ulang.', + ]); + } + + $data = $request->validate([ + 'full_name' => ['required', 'string', 'max:150'], + 'gender' => ['required', Rule::in(['L', 'P'])], + 'place_of_birth' => ['nullable', 'string', 'max:100'], + 'date_of_birth' => ['nullable', 'date'], + 'religion' => ['nullable', 'string', 'max:50'], + 'nationality' => ['nullable', 'string', 'max:50'], + 'family_card_number' => ['nullable', 'string', 'max:30'], + 'child_order' => ['nullable', 'integer', 'min:1', 'max:50'], + 'number_of_siblings' => ['nullable', 'integer', 'min:0', 'max:50'], + 'phone_number' => ['nullable', 'string', 'max:30'], + 'email' => ['nullable', 'email', 'max:100'], + 'address' => ['nullable', 'string'], + 'province_id' => ['nullable', 'exists:provinces,id'], + 'regency_id' => ['nullable', 'exists:regencies,id'], + 'district_id' => ['nullable', 'exists:districts,id'], + 'village_id' => ['nullable', 'exists:villages,id'], + 'postal_code' => ['nullable', 'string', 'max:10'], + 'parents.father.name' => ['nullable', 'string', 'max:150'], + 'parents.father.nik' => ['nullable', 'string', 'max:30'], + 'parents.father.birth_year' => ['nullable', 'integer', 'min:1900', 'max:' . now()->year], + 'parents.father.education' => ['nullable', Rule::in(['Tidak Sekolah', 'Tidak Tamat SD', 'SD', 'SMP', 'SLTA', 'D1', 'D2', 'D3', 'D4', 'S1', 'S2', 'S3', 'Lainnya'])], + 'parents.father.occupation' => ['nullable', 'string', 'max:100'], + 'parents.father.phone_number' => ['nullable', 'string', 'max:30'], + 'parents.father.address' => ['nullable', 'string'], + 'parents.father.is_alive' => ['nullable', 'boolean'], + 'parents.mother.name' => ['nullable', 'string', 'max:150'], + 'parents.mother.nik' => ['nullable', 'string', 'max:30'], + 'parents.mother.birth_year' => ['nullable', 'integer', 'min:1900', 'max:' . now()->year], + 'parents.mother.education' => ['nullable', Rule::in(['Tidak Sekolah', 'Tidak Tamat SD', 'SD', 'SMP', 'SLTA', 'D1', 'D2', 'D3', 'D4', 'S1', 'S2', 'S3', 'Lainnya'])], + 'parents.mother.occupation' => ['nullable', 'string', 'max:100'], + 'parents.mother.phone_number' => ['nullable', 'string', 'max:30'], + 'parents.mother.address' => ['nullable', 'string'], + 'parents.mother.is_alive' => ['nullable', 'boolean'], + 'parents.guardian.name' => ['nullable', 'string', 'max:150'], + 'parents.guardian.nik' => ['nullable', 'string', 'max:30'], + 'parents.guardian.birth_year' => ['nullable', 'integer', 'min:1900', 'max:' . now()->year], + 'parents.guardian.education' => ['nullable', Rule::in(['Tidak Sekolah', 'Tidak Tamat SD', 'SD', 'SMP', 'SLTA', 'D1', 'D2', 'D3', 'D4', 'S1', 'S2', 'S3', 'Lainnya'])], + 'parents.guardian.occupation' => ['nullable', 'string', 'max:100'], + 'parents.guardian.phone_number' => ['nullable', 'string', 'max:30'], + 'parents.guardian.address' => ['nullable', 'string'], + 'parents.guardian.is_alive' => ['nullable', 'boolean'], + 'submit_action' => ['required', Rule::in(['draft', 'submit'])], + ]); + + DB::transaction(function () use ($student, $data) { + $student->fill([ + 'full_name' => $data['full_name'], + 'gender' => $data['gender'], + 'place_of_birth' => $data['place_of_birth'] ?? null, + 'date_of_birth' => $data['date_of_birth'] ?? null, + 'religion' => $data['religion'] ?? null, + 'nationality' => $data['nationality'] ?? 'Indonesia', + 'family_card_number' => $data['family_card_number'] ?? null, + 'child_order' => $data['child_order'] ?? null, + 'number_of_siblings' => $data['number_of_siblings'] ?? null, + 'phone_number' => $data['phone_number'] ?? null, + 'email' => $data['email'] ?? null, + 'address' => $data['address'] ?? null, + 'province_id' => $data['province_id'] ?? null, + 'regency_id' => $data['regency_id'] ?? null, + 'district_id' => $data['district_id'] ?? null, + 'village_id' => $data['village_id'] ?? null, + 'postal_code' => $data['postal_code'] ?? null, + 'province' => ! empty($data['province_id']) ? DB::table('provinces')->where('id', $data['province_id'])->value('name') : null, + 'city' => ! empty($data['regency_id']) ? DB::table('regencies')->where('id', $data['regency_id'])->value('name') : null, + 'district' => ! empty($data['district_id']) ? DB::table('districts')->where('id', $data['district_id'])->value('name') : null, + 'village' => ! empty($data['village_id']) ? DB::table('villages')->where('id', $data['village_id'])->value('name') : null, + 'self_service_status' => $data['submit_action'] === 'submit' ? 'submitted' : 'draft', + 'self_service_last_access_at' => now(), + 'self_service_submitted_at' => $data['submit_action'] === 'submit' ? now() : null, + ])->save(); + + foreach (['father', 'mother', 'guardian'] as $relationType) { + $parentData = $data['parents'][$relationType] ?? []; + $hasMeaningfulValue = collect($parentData) + ->except('is_alive') + ->filter(fn ($value) => filled($value)) + ->isNotEmpty(); + + $existingParent = $student->parents()->where('relation_type', $relationType)->first(); + + if (! $hasMeaningfulValue) { + if ($existingParent) { + $existingParent->delete(); + } + + continue; + } + + $payload = [ + 'name' => $parentData['name'] ?? '-', + 'nik' => $parentData['nik'] ?? null, + 'birth_year' => $parentData['birth_year'] ?? null, + 'education' => $parentData['education'] ?? null, + 'occupation' => $parentData['occupation'] ?? null, + 'phone_number' => $parentData['phone_number'] ?? null, + 'address' => $parentData['address'] ?? null, + 'is_alive' => (bool) ($parentData['is_alive'] ?? false), + ]; + + if ($existingParent) { + $existingParent->update($payload); + } else { + $student->parents()->create([ + 'relation_type' => $relationType, + ...$payload, + ]); + } + } + }); + + return redirect()->route('public.student-self-service.edit') + ->with('success', $data['submit_action'] === 'submit' + ? 'Data berhasil dikirim. Silakan tunggu pemeriksaan admin sekolah.' + : 'Draft berhasil disimpan. Anda bisa melanjutkan lagi nanti selama sesi masih aktif.'); + } + + protected function resolveVerifiedStudent(Request $request): ?Student + { + $studentId = $request->session()->get('student_self_service.student_id'); + + if (! $studentId) { + return null; + } + + return Student::find($studentId); + } +} diff --git a/app/Http/Controllers/SchoolClassController.php b/app/Http/Controllers/SchoolClassController.php new file mode 100644 index 0000000..8c90fb7 --- /dev/null +++ b/app/Http/Controllers/SchoolClassController.php @@ -0,0 +1,230 @@ +get('search')); + + $classes = SchoolClass::with(['academicYear', 'department']) + ->withCount(['students', 'academicHistories']) + ->when($search !== '', function ($query) use ($search) { + $query->where('name', 'like', "%{$search}%") + ->orWhere('level', 'like', "%{$search}%") + ->orWhere('homeroom_teacher', 'like', "%{$search}%"); + }) + ->latest() + ->paginate(10) + ->withQueryString(); + + return view('classes.index', [ + 'classes' => $classes, + 'search' => $search, + 'academicYears' => AcademicYear::orderByDesc('start_year')->orderByDesc('end_year')->get(), + ]); + } + + public function create(): View + { + return view('classes.create', [ + 'academicYears' => AcademicYear::where('is_active', true)->orderBy('name')->pluck('name', 'id'), + 'departments' => Department::where('is_active', true)->orderBy('name')->pluck('name', 'id'), + ]); + } + + public function store(Request $request): RedirectResponse + { + $data = $request->validate([ + 'academic_year_id' => ['required', Rule::exists('academic_years', 'id')->where(fn ($query) => $query->where('is_active', true))], + 'department_id' => ['required', Rule::exists('departments', 'id')->where(fn ($query) => $query->where('is_active', true))], + 'name' => ['required', 'string', 'max:100', Rule::unique('classes', 'name')->where(fn ($query) => $query->where('academic_year_id', $request->academic_year_id))], + 'level' => ['required', 'string', 'max:10'], + 'homeroom_teacher' => ['nullable', 'string', 'max:100'], + 'capacity' => ['nullable', 'integer', 'min:1'], + 'is_active' => ['nullable', 'boolean'], + ]); + + $data['is_active'] = $request->boolean('is_active'); + + SchoolClass::create($data); + + return redirect()->route('classes.index')->with('success', 'Kelas berhasil ditambahkan.'); + } + + public function generate(Request $request): RedirectResponse + { + $data = $request->validate([ + 'source_academic_year_id' => ['required', 'exists:academic_years,id', 'different:target_academic_year_id'], + 'target_academic_year_id' => ['required', 'exists:academic_years,id'], + 'generation_mode' => ['required', Rule::in(['same_level', 'promote_level'])], + ]); + + $sourceClasses = SchoolClass::query() + ->where('academic_year_id', $data['source_academic_year_id']) + ->orderBy('department_id') + ->orderBy('level') + ->orderBy('name') + ->get(); + + if ($sourceClasses->isEmpty()) { + Alert::error('Gagal', 'Tidak ada kelas pada tahun ajaran sumber yang bisa digenerate.'); + + return redirect()->route('classes.index')->withErrors([ + 'generate' => 'Tidak ada kelas pada tahun ajaran sumber yang bisa digenerate.', + ]); + } + + $created = 0; + $skipped = 0; + + DB::transaction(function () use ($sourceClasses, $data, &$created, &$skipped) { + foreach ($sourceClasses as $sourceClass) { + $targetLevel = $data['generation_mode'] === 'promote_level' + ? $this->nextLevel($sourceClass->level) + : $sourceClass->level; + + if ($targetLevel === null) { + $skipped++; + continue; + } + + $targetName = $this->transformClassName($sourceClass->name, $sourceClass->level, $targetLevel); + + $exists = SchoolClass::query() + ->where('academic_year_id', $data['target_academic_year_id']) + ->where('name', $targetName) + ->exists(); + + if ($exists) { + $skipped++; + continue; + } + + SchoolClass::create([ + 'academic_year_id' => $data['target_academic_year_id'], + 'department_id' => $sourceClass->department_id, + 'name' => $targetName, + 'level' => $targetLevel, + 'homeroom_teacher' => $sourceClass->homeroom_teacher, + 'capacity' => $sourceClass->capacity, + 'is_active' => true, + ]); + + $created++; + } + }); + + Alert::success('Berhasil', "Generate kelas selesai. {$created} kelas dibuat, {$skipped} dilewati."); + + return redirect()->route('classes.index')->with('success', "Generate kelas selesai. {$created} kelas dibuat, {$skipped} dilewati."); + } + + public function show(SchoolClass $class): RedirectResponse + { + return redirect()->route('classes.edit', $class); + } + + public function edit(SchoolClass $class): View + { + $class->loadMissing(['academicYear', 'department']); + + $academicYears = AcademicYear::query() + ->where(function ($query) use ($class) { + $query->where('is_active', true) + ->orWhere('id', $class->academic_year_id); + }) + ->orderBy('name') + ->pluck('name', 'id'); + + $departments = Department::query() + ->where(function ($query) use ($class) { + $query->where('is_active', true) + ->orWhere('id', $class->department_id); + }) + ->orderBy('name') + ->pluck('name', 'id'); + + return view('classes.edit', [ + 'class' => $class, + 'academicYears' => $academicYears, + 'departments' => $departments, + ]); + } + + public function update(Request $request, SchoolClass $class): RedirectResponse + { + $data = $request->validate([ + 'academic_year_id' => ['required', Rule::exists('academic_years', 'id')->where(fn ($query) => $query->where('is_active', true)->orWhere('id', $class->academic_year_id))], + 'department_id' => ['required', Rule::exists('departments', 'id')->where(fn ($query) => $query->where('is_active', true)->orWhere('id', $class->department_id))], + 'name' => ['required', 'string', 'max:100', Rule::unique('classes', 'name')->ignore($class->id)->where(fn ($query) => $query->where('academic_year_id', $request->academic_year_id))], + 'level' => ['required', 'string', 'max:10'], + 'homeroom_teacher' => ['nullable', 'string', 'max:100'], + 'capacity' => ['nullable', 'integer', 'min:1'], + 'is_active' => ['nullable', 'boolean'], + ]); + + $data['is_active'] = $request->boolean('is_active'); + + $class->update($data); + + return redirect()->route('classes.index')->with('success', 'Kelas berhasil diperbarui.'); + } + + public function destroy(SchoolClass $class): RedirectResponse + { + $class->loadCount(['students', 'academicHistories']); + + if ($class->students_count > 0) { + Alert::error('Tidak bisa dihapus', 'Kelas ini masih digunakan oleh data siswa aktif.'); + + return redirect()->route('classes.index')->withErrors([ + 'delete' => 'Kelas tidak bisa dihapus karena masih digunakan oleh data siswa aktif.', + ]); + } + + if ($class->academic_histories_count > 0) { + Alert::error('Tidak bisa dihapus', 'Kelas ini masih tercatat pada histori akademik siswa.'); + + return redirect()->route('classes.index')->withErrors([ + 'delete' => 'Kelas tidak bisa dihapus karena masih tercatat pada histori akademik siswa. Hapus atau ubah histori terkait terlebih dahulu.', + ]); + } + + Alert::success('Berhasil', 'Kelas berhasil dihapus.'); + + $class->delete(); + + return redirect()->route('classes.index')->with('success', 'Kelas berhasil dihapus.'); + } + + protected function nextLevel(?string $level): ?string + { + return match (strtoupper((string) $level)) { + 'X' => 'XI', + 'XI' => 'XII', + 'XII' => null, + default => $level, + }; + } + + protected function transformClassName(string $name, ?string $fromLevel, ?string $toLevel): string + { + if (! $fromLevel || ! $toLevel || strtoupper($fromLevel) === strtoupper($toLevel)) { + return $name; + } + + return preg_replace('/^' . preg_quote($fromLevel, '/') . '\b/i', $toLevel, $name) ?: $name; + } +} diff --git a/app/Http/Controllers/StudentController.php b/app/Http/Controllers/StudentController.php new file mode 100644 index 0000000..19cb453 --- /dev/null +++ b/app/Http/Controllers/StudentController.php @@ -0,0 +1,1124 @@ +get('search')); + $academicYearId = $request->get('academic_year_id'); + $departmentId = $request->get('department_id'); + $classId = $request->get('class_id'); + $statusFilter = $request->get('status'); + $viewMode = (string) $request->get('view', 'all'); + + $viewConfig = $this->resolveStudentViewConfig($viewMode, null); + $status = $viewConfig['status']; + $sort = (string) $request->get('sort', 'created_at'); + + $direction = strtolower((string) $request->get('direction', 'desc')) === 'asc' ? 'asc' : 'desc'; + + $allowedSorts = [ + 'full_name' => 'students.full_name', + 'student_number' => 'students.student_number', + 'academic_year' => 'academic_years.name', + 'department' => 'departments.name', + 'class' => 'classes.name', + 'phone_number' => 'students.phone_number', + 'status' => 'students.status', + 'created_at' => 'students.created_at', + ]; + + if (! array_key_exists($sort, $allowedSorts)) { + $sort = 'created_at'; + } + + $requiredDocumentTypeIds = DocumentType::where('is_active', true)->where('is_required', true)->pluck('id'); + + $students = Student::query() + ->select('students.*') + ->with(['academicYear', 'department', 'classRoom', 'documents.documentType']) + ->leftJoin('academic_years', 'academic_years.id', '=', 'students.academic_year_id') + ->leftJoin('departments', 'departments.id', '=', 'students.department_id') + ->leftJoin('classes', 'classes.id', '=', 'students.class_id') + ->when($search !== '', function ($query) use ($search) { + $query->where(function ($subQuery) use ($search) { + $subQuery->where('students.full_name', 'like', "%{$search}%") + ->orWhere('students.student_number', 'like', "%{$search}%") + ->orWhere('students.nisn', 'like', "%{$search}%") + ->orWhere('students.phone_number', 'like', "%{$search}%"); + }); + }) + ->when($academicYearId, fn ($query) => $query->where('students.academic_year_id', $academicYearId)) + ->when($departmentId, fn ($query) => $query->where('students.department_id', $departmentId)) + ->when($classId, fn ($query) => $query->where('students.class_id', $classId)) + ->when($viewConfig['view'] === 'all' && blank($statusFilter), fn ($query) => $query->whereNotIn('students.status', ['dropped', 'transferred'])) + ->when($viewConfig['view'] === 'all' && $statusFilter === 'active', fn ($query) => $query->where('students.status', 'active')) + ->when($viewConfig['view'] === 'all' && $statusFilter === 'non_active', fn ($query) => $query->whereIn('students.status', ['inactive', 'graduated', 'dropped', 'transferred'])) + ->when($viewConfig['view'] !== 'all' && $status, fn ($query) => $query->where('students.status', $status)) + ->orderBy($allowedSorts[$sort], $direction) + ->orderBy('students.id', $direction) + ->paginate(10) + ->withQueryString(); + + $students->getCollection()->transform(function ($student) use ($requiredDocumentTypeIds) { + $requiredDocuments = $student->documents->whereIn('document_type_id', $requiredDocumentTypeIds); + + $photoDocument = $student->documents + ->filter(function ($document) { + $code = strtoupper((string) ($document->documentType?->code ?? '')); + $name = strtolower((string) ($document->documentType?->name ?? '')); + + return $code === 'PAS_FOTO' + || str_contains($name, 'pas foto') + || str_contains($name, 'pasfoto'); + }) + ->sortByDesc('created_at') + ->first(); + + $presentRequired = $requiredDocuments + ->pluck('document_type_id') + ->unique() + ->count(); + + $verifiedRequired = $requiredDocuments + ->where('verification_status', 'valid') + ->pluck('document_type_id') + ->unique() + ->count(); + + $student->required_documents_total = $requiredDocumentTypeIds->count(); + $student->required_documents_present = $presentRequired; + $student->required_documents_verified = $verifiedRequired; + $student->required_documents_missing = max($student->required_documents_total - $presentRequired, 0); + $student->required_documents_unverified = max($student->required_documents_present - $student->required_documents_verified, 0); + $student->document_completion_percentage = $student->required_documents_total > 0 + ? (int) round(($presentRequired / $student->required_documents_total) * 100) + : 100; + $student->document_verification_percentage = $student->required_documents_total > 0 + ? (int) round(($verifiedRequired / $student->required_documents_total) * 100) + : 100; + $student->hover_photo_url = $photoDocument?->file_path ? asset('storage/' . $photoDocument->file_path) : null; + + return $student; + }); + + return view('students.index', [ + 'students' => $students, + 'search' => $search, + 'filters' => [ + 'academic_year_id' => $academicYearId, + 'department_id' => $departmentId, + 'class_id' => $classId, + 'status' => $statusFilter, + ], + 'academicYears' => AcademicYear::orderBy('name')->pluck('name', 'id'), + 'departments' => Department::where('is_active', true)->orderBy('name')->pluck('name', 'id'), + 'classes' => SchoolClass::orderBy('name')->pluck('name', 'id'), + 'statuses' => [ + 'active' => 'Aktif', + 'non_active' => 'Non Aktif', + ], + 'studentStatusLabels' => $this->statusOptions(), + 'sort' => $sort, + 'direction' => $direction, + 'pageTitle' => $viewConfig['title'], + 'pageDescription' => $viewConfig['description'], + 'viewMode' => $viewConfig['view'], + ]); + } + + public function create(): View + { + return view('students.create', $this->formData()); + } + + public function store(Request $request): RedirectResponse + { + $data = $this->validateStudent($request); + + $student = Student::create($data); + $this->syncAcademicHistory($student, $data); + $this->syncExitRecord($student, $data); + $this->syncTransferRecord($student, $data); + + Alert::success('Berhasil', 'Data siswa berhasil ditambahkan.'); + + return redirect()->route('students.index')->with('success', 'Data siswa berhasil ditambahkan.'); + } + + public function show(Student $student): View + { + $student->load(['academicYear', 'department', 'classRoom', 'parents', 'documents.documentType', 'academicHistories.academicYear', 'academicHistories.department', 'academicHistories.classRoom']); + + $requiredDocumentTypes = DocumentType::where('is_active', true) + ->where('is_required', true) + ->orderBy('name') + ->get(); + + $requiredDocuments = $student->documents->whereIn('document_type_id', $requiredDocumentTypes->pluck('id')); + + $uploadedRequiredDocumentTypeIds = $requiredDocuments + ->pluck('document_type_id') + ->unique(); + + $verifiedRequiredDocumentTypeIds = $requiredDocuments + ->where('verification_status', 'valid') + ->pluck('document_type_id') + ->unique(); + + $requiredDocumentSummary = [ + 'total' => $requiredDocumentTypes->count(), + 'uploaded' => $uploadedRequiredDocumentTypeIds->count(), + 'verified' => $verifiedRequiredDocumentTypeIds->count(), + 'missing' => max($requiredDocumentTypes->count() - $uploadedRequiredDocumentTypeIds->count(), 0), + 'unverified' => max($uploadedRequiredDocumentTypeIds->count() - $verifiedRequiredDocumentTypeIds->count(), 0), + 'percentage' => $requiredDocumentTypes->count() > 0 + ? (int) round(($uploadedRequiredDocumentTypeIds->count() / $requiredDocumentTypes->count()) * 100) + : 100, + 'verification_percentage' => $requiredDocumentTypes->count() > 0 + ? (int) round(($verifiedRequiredDocumentTypeIds->count() / $requiredDocumentTypes->count()) * 100) + : 100, + 'missing_items' => $requiredDocumentTypes + ->whereNotIn('id', $uploadedRequiredDocumentTypeIds) + ->pluck('name'), + 'unverified_items' => $requiredDocumentTypes + ->whereIn('id', $uploadedRequiredDocumentTypeIds) + ->whereNotIn('id', $verifiedRequiredDocumentTypeIds) + ->pluck('name'), + ]; + + return view('students.show', [ + 'student' => $student, + 'relationLabels' => [ + 'father' => 'Ayah', + 'mother' => 'Ibu', + 'guardian' => 'Wali', + ], + 'requiredDocumentSummary' => $requiredDocumentSummary, + ]); + } + + public function edit(Student $student): View + { + return view('students.edit', array_merge($this->formData(), [ + 'student' => $student, + ])); + } + + public function update(Request $request, Student $student): RedirectResponse + { + $data = $this->validateStudent($request, $student); + + $student->update($data); + $this->syncAcademicHistory($student, $data); + $this->syncExitRecord($student, $data); + $this->syncTransferRecord($student, $data); + + Alert::success('Berhasil', 'Data siswa berhasil diperbarui.'); + + return redirect()->route('students.index')->with('success', 'Data siswa berhasil diperbarui.'); + } + + public function destroy(Student $student): RedirectResponse + { + $this->ensureAdmin(); + + $student->delete(); + + Alert::success('Berhasil', 'Data siswa berhasil dihapus.'); + + return redirect()->route('students.index')->with('success', 'Data siswa berhasil dihapus.'); + } + + public function bulkDestroy(Request $request): RedirectResponse + { + $this->ensureAdmin(); + + $validated = $request->validate([ + 'student_ids' => ['required', 'array', 'min:1'], + 'student_ids.*' => ['integer', 'exists:students,id'], + ], [ + 'student_ids.required' => 'Pilih minimal satu siswa untuk dihapus.', + ]); + + $students = Student::whereIn('id', $validated['student_ids'])->get(); + $deletedCount = 0; + + foreach ($students as $student) { + $student->delete(); + $deletedCount++; + } + + Alert::success('Berhasil', $deletedCount . ' data siswa berhasil dihapus.'); + + return redirect()->route('students.index')->with('success', $deletedCount . ' data siswa berhasil dihapus.'); + } + + public function importForm(Request $request): View + { + $this->ensureAdmin(); + + return view('students.import', array_merge($this->importReferenceData(), [ + 'preview' => $request->session()->get('student_import_preview'), + ])); + } + + public function previewImport(Request $request): RedirectResponse + { + $this->ensureAdmin(); + + $validated = $request->validate([ + 'import_file' => ['required', 'file', 'mimes:xlsx,csv,txt'], + ], [ + 'import_file.mimes' => 'File import harus berformat Excel (.xlsx) atau CSV.', + ]); + + $rows = $this->parseImportFile($validated['import_file']->getRealPath(), $validated['import_file']->getClientOriginalName()); + + if (count($rows) === 0) { + throw ValidationException::withMessages([ + 'import_file' => 'File tidak berisi data siswa yang bisa diproses.', + ]); + } + + $preview = $this->buildImportPreview($rows); + + if ($preview['summary']['valid_rows'] === 0) { + throw ValidationException::withMessages([ + 'import_file' => array_merge(['Tidak ada baris valid yang bisa dipreview.'], array_slice($preview['errors'], 0, 10)), + ]); + } + + $request->session()->put('student_import_preview', $preview); + + return redirect()->route('students.import.form'); + } + + public function import(Request $request): RedirectResponse + { + $this->ensureAdmin(); + + $request->validate([ + 'preview_token' => ['required', 'string'], + ]); + + $preview = $request->session()->get('student_import_preview'); + + if (! $preview || ($preview['token'] ?? null) !== $request->string('preview_token')->value()) { + throw ValidationException::withMessages([ + 'preview_token' => 'Preview import sudah tidak valid. Silakan upload ulang file import.', + ]); + } + + $inserted = 0; + $updated = 0; + + DB::transaction(function () use ($preview, &$inserted, &$updated) { + foreach ($preview['valid_rows'] as $row) { + $payload = Arr::only($row['normalized'], [ + 'student_number', + 'nisn', + 'full_name', + 'gender', + 'academic_year_id', + 'department_id', + 'class_id', + 'entry_date', + 'status', + 'phone_number', + ]); + + $lookup = null; + + if (! empty($payload['student_number'])) { + $lookup = Student::withTrashed()->where('student_number', $payload['student_number'])->first(); + } + + if (! $lookup && ! empty($payload['nisn'])) { + $lookup = Student::withTrashed()->where('nisn', $payload['nisn'])->first(); + } + + if ($lookup) { + if (method_exists($lookup, 'trashed') && $lookup->trashed()) { + $lookup->restore(); + } + + $lookup->update($payload); + $this->syncAcademicHistory($lookup, $payload); + $updated++; + continue; + } + + $student = Student::create($payload); + $this->syncAcademicHistory($student, $payload); + $inserted++; + } + }); + + $request->session()->forget('student_import_preview'); + + Alert::success('Berhasil', "Import data siswa selesai. {$inserted} data baru ditambahkan, {$updated} data diperbarui."); + + return redirect() + ->route('students.index') + ->with('success', "Import data siswa selesai. {$inserted} data baru ditambahkan, {$updated} data diperbarui."); + } + + public function downloadImportTemplate(): Response + { + $this->ensureAdmin(); + + $spreadsheet = new Spreadsheet(); + $sheet = $spreadsheet->getActiveSheet(); + $sheet->setTitle('Import Siswa'); + + $headers = [ + 'NIS', + 'NISN', + 'Nama Lengkap', + 'Jenis Kelamin (L/P)', + 'Tahun Ajaran', + 'Program Keahlian', + 'Kelas', + 'Tanggal Masuk (YYYY-MM-DD)', + 'Status', + 'Nomor HP', + ]; + + $sheet->fromArray($headers, null, 'A1'); + $sheet->fromArray([ + '2026-001', + '9988776655', + 'Contoh Nama Siswa', + 'L', + AcademicYear::orderBy('name')->value('name') ?? '2026/2027', + Department::orderBy('name')->value('name') ?? 'DKV', + SchoolClass::orderBy('name')->value('name') ?? 'X DKV 1', + '2026-07-15', + 'active', + '081234567890', + ], null, 'A2'); + + foreach (range('A', 'J') as $column) { + $sheet->getColumnDimension($column)->setAutoSize(true); + } + + $referenceSheet = $spreadsheet->createSheet(); + $referenceSheet->setTitle('Referensi'); + $referenceSheet->fromArray(['Tahun Ajaran'], null, 'A1'); + $referenceSheet->fromArray(AcademicYear::orderBy('name')->pluck('name')->all(), null, 'A2'); + $referenceSheet->fromArray(['Program Keahlian'], null, 'C1'); + $referenceSheet->fromArray(Department::orderBy('name')->pluck('name')->all(), null, 'C2'); + $referenceSheet->fromArray(['Kelas'], null, 'E1'); + $referenceSheet->fromArray( + SchoolClass::with(['academicYear', 'department'])->orderBy('name')->get()->map(function ($classRoom) { + return [$classRoom->name, $classRoom->academicYear?->name, $classRoom->department?->name]; + })->all(), + null, + 'E2' + ); + $referenceSheet->fromArray(['Nama Kelas', 'Tahun Ajaran', 'Program Keahlian'], null, 'E1'); + + $guideSheet = $spreadsheet->createSheet(); + $guideSheet->setTitle('Panduan'); + $guideSheet->fromArray([ + ['Kolom', 'Keterangan'], + ['NIS', 'Boleh kosong, tapi idealnya diisi untuk identitas lokal sekolah.'], + ['NISN', 'Boleh kosong jika belum ada.'], + ['Nama Lengkap', 'Wajib diisi.'], + ['Jenis Kelamin (L/P)', 'Isi L atau P.'], + ['Tahun Ajaran', 'Isi dengan nama tahun ajaran persis seperti sheet Referensi.'], + ['Program Keahlian', 'Isi dengan nama jurusan persis seperti sheet Referensi.'], + ['Kelas', 'Isi dengan nama kelas persis seperti sheet Referensi.'], + ['Tanggal Masuk (YYYY-MM-DD)', 'Format contoh: 2026-07-15.'], + ['Status', 'Gunakan: active, inactive, transferred, graduated, dropped.'], + ['Nomor HP', 'Opsional.'], + ], null, 'A1'); + foreach (range('A', 'B') as $column) { + $guideSheet->getColumnDimension($column)->setAutoSize(true); + } + + $writer = new Xlsx($spreadsheet); + ob_start(); + $writer->save('php://output'); + $content = ob_get_clean(); + + return response($content, 200, [ + 'Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'Content-Disposition' => 'attachment; filename="template-import-siswa.xlsx"', + ]); + } + + protected function validateStudent(Request $request, ?Student $student = null): array + { + $data = $request->validate([ + 'student_number' => ['nullable', 'string', 'max:30', Rule::unique('students', 'student_number')->ignore($student?->id)], + 'nisn' => ['nullable', 'string', 'max:30', Rule::unique('students', 'nisn')->ignore($student?->id)], + 'full_name' => ['required', 'string', 'max:150'], + 'gender' => ['required', Rule::in(['L', 'P'])], + 'place_of_birth' => ['nullable', 'string', 'max:100'], + 'date_of_birth' => ['nullable', 'date'], + 'religion' => ['nullable', 'string', 'max:50'], + 'nationality' => ['nullable', 'string', 'max:50'], + 'family_card_number' => ['nullable', 'string', 'max:30'], + 'child_order' => ['nullable', 'integer', 'min:1'], + 'number_of_siblings' => ['nullable', 'integer', 'min:0'], + 'phone_number' => ['nullable', 'string', 'max:30'], + 'email' => ['nullable', 'email', 'max:100'], + 'address' => ['nullable', 'string'], + 'province_id' => ['nullable', 'string', 'exists:provinces,id'], + 'regency_id' => ['nullable', 'string', 'exists:regencies,id'], + 'district_id' => ['nullable', 'string', 'exists:districts,id'], + 'village_id' => ['nullable', 'string', 'exists:villages,id'], + 'village' => ['nullable', 'string', 'max:100'], + 'district' => ['nullable', 'string', 'max:100'], + 'city' => ['nullable', 'string', 'max:100'], + 'province' => ['nullable', 'string', 'max:100'], + 'postal_code' => ['nullable', 'string', 'max:10'], + 'academic_year_id' => ['required', Rule::exists('academic_years', 'id')->where(fn ($query) => $student ? $query->where('is_active', true)->orWhere('id', $student->academic_year_id) : $query->where('is_active', true))], + 'department_id' => ['required', Rule::exists('departments', 'id')->where(fn ($query) => $student ? $query->where('is_active', true)->orWhere('id', $student->department_id) : $query->where('is_active', true))], + 'class_id' => [ + 'required', + Rule::exists('classes', 'id')->where(fn ($query) => $student ? $query->where(function ($subQuery) use ($student) { + $subQuery->where('is_active', true) + ->orWhere('id', $student->class_id); + }) : $query->where('is_active', true)), + ], + 'entry_date' => ['nullable', 'date'], + 'status' => ['required', Rule::in(array_keys($this->statusOptions()))], + 'notes' => ['nullable', 'string'], + 'exit_letter' => ['nullable', 'file', 'mimes:pdf,jpg,jpeg,png,webp', 'max:5120'], + 'transfer_letter' => ['nullable', 'file', 'mimes:pdf,jpg,jpeg,png,webp', 'max:5120'], + ]); + + $classRoom = SchoolClass::query() + ->select(['id', 'academic_year_id', 'department_id']) + ->find($data['class_id']); + + if (! $classRoom) { + throw ValidationException::withMessages([ + 'class_id' => 'Kelas yang dipilih tidak ditemukan.', + ]); + } + + if ((int) $classRoom->academic_year_id !== (int) $data['academic_year_id']) { + throw ValidationException::withMessages([ + 'class_id' => 'Kelas tidak sesuai dengan Tahun Angkatan yang dipilih.', + ]); + } + + if ((int) $classRoom->department_id !== (int) $data['department_id']) { + throw ValidationException::withMessages([ + 'class_id' => 'Kelas tidak sesuai dengan Program Keahlian yang dipilih.', + ]); + } + + $data['province'] = !empty($data['province_id']) ? Province::where('id', $data['province_id'])->value('name') : null; + $data['city'] = !empty($data['regency_id']) ? Regency::where('id', $data['regency_id'])->value('name') : null; + $data['district'] = !empty($data['district_id']) ? District::where('id', $data['district_id'])->value('name') : null; + $data['village'] = !empty($data['village_id']) ? Village::where('id', $data['village_id'])->value('name') : null; + + return $data; + } + + protected function formData(): array + { + return [ + 'academicYears' => AcademicYear::where('is_active', true)->orderBy('name')->pluck('name', 'id'), + 'departments' => Department::where('is_active', true)->orderBy('name')->pluck('name', 'id'), + 'classes' => SchoolClass::where('is_active', true)->orderBy('name')->pluck('name', 'id'), + 'provinces' => Province::orderBy('name')->pluck('name', 'id'), + 'classOptions' => SchoolClass::query() + ->where('is_active', true) + ->orderBy('name') + ->get(['id', 'name', 'department_id', 'academic_year_id']) + ->map(fn ($classRoom) => [ + 'id' => $classRoom->id, + 'name' => $classRoom->name, + 'department_id' => $classRoom->department_id, + 'academic_year_id' => $classRoom->academic_year_id, + ]) + ->values(), + 'statuses' => $this->statusOptions(), + 'religions' => [ + 'Islam' => 'Islam', + 'Kristen' => 'Kristen', + 'Katolik' => 'Katolik', + 'Hindu' => 'Hindu', + 'Buddha' => 'Buddha', + 'Konghucu' => 'Konghucu', + ], + 'genders' => [ + 'L' => 'Laki-laki', + 'P' => 'Perempuan', + ], + ]; + } + + protected function importReferenceData(): array + { + return [ + 'academicYears' => AcademicYear::where('is_active', true)->orderBy('name')->pluck('name', 'id'), + 'departments' => Department::where('is_active', true)->orderBy('name')->pluck('name', 'id'), + 'classes' => SchoolClass::with(['academicYear', 'department'])->where('is_active', true)->orderBy('name')->get(), + 'statuses' => $this->statusOptions(), + ]; + } + + protected function statusOptions(): array + { + return [ + 'active' => 'Aktif', + 'graduated' => 'Lulus', + 'transferred' => 'Pindah', + 'dropped' => 'Keluar', + 'inactive' => 'Nonaktif', + ]; + } + + protected function syncAcademicHistory(Student $student, array $data): void + { + $currentHistory = StudentAcademicHistory::query() + ->where('student_id', $student->id) + ->where('is_current', true) + ->first(); + + $samePlacement = $currentHistory + && (int) $currentHistory->academic_year_id === (int) $data['academic_year_id'] + && (int) $currentHistory->department_id === (int) $data['department_id'] + && (int) $currentHistory->class_id === (int) $data['class_id'] + && $currentHistory->status === $data['status']; + + if ($samePlacement) { + $currentHistory->update([ + 'start_date' => $data['entry_date'] ?? $currentHistory->start_date, + ]); + + return; + } + + StudentAcademicHistory::query() + ->where('student_id', $student->id) + ->where('is_current', true) + ->update([ + 'is_current' => false, + 'end_date' => now()->toDateString(), + ]); + + StudentAcademicHistory::updateOrCreate( + [ + 'student_id' => $student->id, + 'academic_year_id' => $data['academic_year_id'], + ], + [ + 'department_id' => $data['department_id'], + 'class_id' => $data['class_id'], + 'status' => $data['status'], + 'start_date' => $data['entry_date'] ?? null, + 'end_date' => null, + 'notes' => null, + 'is_current' => true, + ] + ); + } + + protected function syncExitRecord(Student $student, array $data): void + { + if (($data['status'] ?? null) === 'dropped') { + $exitRecord = StudentExit::firstOrNew(['student_id' => $student->id]); + + $exitRecord->fill([ + 'student_number' => $student->student_number, + 'nisn' => $student->nisn, + 'full_name' => $student->full_name, + 'academic_year_id' => $student->academic_year_id, + 'department_id' => $student->department_id, + 'class_id' => $student->class_id, + 'entry_date' => $student->entry_date, + 'exit_date' => $exitRecord->exit_date ?? now()->toDateString(), + 'exit_reason' => $student->notes, + 'status' => 'dropped', + ]); + + if (request()->hasFile('exit_letter')) { + if ($exitRecord->exit_letter_file_path && Storage::disk('public')->exists($exitRecord->exit_letter_file_path)) { + Storage::disk('public')->delete($exitRecord->exit_letter_file_path); + } + + $file = request()->file('exit_letter'); + $path = $file->store("student-exit-letters/{$student->id}", 'public'); + + $exitRecord->exit_letter_file_name = $file->getClientOriginalName(); + $exitRecord->exit_letter_file_path = $path; + $exitRecord->exit_letter_mime_type = $file->getMimeType(); + $exitRecord->exit_letter_file_size = $file->getSize(); + } + + $exitRecord->save(); + + return; + } + + StudentExit::query()->where('student_id', $student->id)->delete(); + } + + protected function syncTransferRecord(Student $student, array $data): void + { + if (($data['status'] ?? null) === 'transferred') { + $transferRecord = StudentTransfer::firstOrNew(['student_id' => $student->id]); + + $transferRecord->fill([ + 'student_number' => $student->student_number, + 'nisn' => $student->nisn, + 'full_name' => $student->full_name, + 'academic_year_id' => $student->academic_year_id, + 'department_id' => $student->department_id, + 'class_id' => $student->class_id, + 'entry_date' => $student->entry_date, + 'transfer_date' => $transferRecord->transfer_date ?? now()->toDateString(), + 'transfer_reason' => $student->notes, + 'status' => 'transferred', + ]); + + if (request()->hasFile('transfer_letter')) { + if ($transferRecord->transfer_letter_file_path && Storage::disk('public')->exists($transferRecord->transfer_letter_file_path)) { + Storage::disk('public')->delete($transferRecord->transfer_letter_file_path); + } + + $file = request()->file('transfer_letter'); + $path = $file->store("student-transfer-letters/{$student->id}", 'public'); + + $transferRecord->transfer_letter_file_name = $file->getClientOriginalName(); + $transferRecord->transfer_letter_file_path = $path; + $transferRecord->transfer_letter_mime_type = $file->getMimeType(); + $transferRecord->transfer_letter_file_size = $file->getSize(); + } + + $transferRecord->save(); + + return; + } + + StudentTransfer::query()->where('student_id', $student->id)->delete(); + } + + protected function importRules(): array + { + return [ + 'student_number' => ['nullable', 'string', 'max:30'], + 'nisn' => ['nullable', 'string', 'max:30'], + 'full_name' => ['required', 'string', 'max:150'], + 'gender' => ['required', Rule::in(['L', 'P'])], + 'academic_year_id' => ['required', 'integer', Rule::exists('academic_years', 'id')->where(fn ($query) => $query->where('is_active', true))], + 'department_id' => ['required', 'integer', Rule::exists('departments', 'id')->where(fn ($query) => $query->where('is_active', true))], + 'class_id' => ['required', 'integer', Rule::exists('classes', 'id')->where(fn ($query) => $query->where('is_active', true))], + 'entry_date' => ['nullable', 'date'], + 'status' => ['required', Rule::in(array_keys($this->statusOptions()))], + 'phone_number' => ['nullable', 'string', 'max:30'], + ]; + } + + protected function importAttributes(): array + { + return [ + 'student_number' => 'NIS', + 'nisn' => 'NISN', + 'full_name' => 'nama lengkap', + 'gender' => 'jenis kelamin', + 'academic_year_id' => 'tahun ajaran', + 'department_id' => 'program keahlian', + 'class_id' => 'kelas', + 'entry_date' => 'tanggal masuk', + 'status' => 'status', + 'phone_number' => 'nomor HP', + ]; + } + + protected function buildImportPreview(array $rows): array + { + $previewRows = []; + $errors = []; + $validRows = []; + + foreach ($rows as $rowNumber => $row) { + $normalized = $this->normalizeImportRow($row); + + if ($this->isImportRowEmpty($normalized)) { + continue; + } + + $validator = Validator::make($normalized, $this->importRules(), [], $this->importAttributes()); + + $validator->after(function ($validator) use ($normalized) { + $class = SchoolClass::query()->find($normalized['class_id']); + + if (! $class) { + return; + } + + if ((int) $class->academic_year_id !== (int) $normalized['academic_year_id']) { + $validator->errors()->add('class_id', 'Kelas harus berasal dari tahun ajaran yang dipilih.'); + } + + if ((int) $class->department_id !== (int) $normalized['department_id']) { + $validator->errors()->add('class_id', 'Kelas harus berasal dari program keahlian yang dipilih.'); + } + }); + + $errorMessages = []; + $action = 'insert'; + + if ($validator->fails()) { + $errorMessages = $validator->errors()->all(); + $errors[] = 'Baris ' . $rowNumber . ': ' . implode(' ', $errorMessages); + } else { + $lookup = null; + $payload = $validator->validated(); + + if (! empty($payload['student_number'])) { + $lookup = Student::withTrashed()->where('student_number', $payload['student_number'])->first(); + } + + if (! $lookup && ! empty($payload['nisn'])) { + $lookup = Student::withTrashed()->where('nisn', $payload['nisn'])->first(); + } + + if ($lookup) { + $action = 'update'; + } + + $validRows[] = [ + 'row_number' => $rowNumber, + 'normalized' => $payload, + 'action' => $action, + ]; + } + + $previewRows[] = [ + 'row_number' => $rowNumber, + 'data' => $normalized, + 'errors' => $errorMessages, + 'is_valid' => empty($errorMessages), + 'action' => $action, + ]; + } + + return [ + 'token' => Str::uuid()->toString(), + 'rows' => $previewRows, + 'valid_rows' => $validRows, + 'errors' => $errors, + 'summary' => [ + 'total_rows' => count($previewRows), + 'valid_rows' => count($validRows), + 'invalid_rows' => count(array_filter($previewRows, fn ($row) => ! $row['is_valid'])), + 'insert_rows' => count(array_filter($previewRows, fn ($row) => $row['is_valid'] && $row['action'] === 'insert')), + 'update_rows' => count(array_filter($previewRows, fn ($row) => $row['is_valid'] && $row['action'] === 'update')), + ], + ]; + } + + protected function normalizeImportRow(array $row): array + { + $normalized = []; + + foreach ($row as $key => $value) { + $normalizedKey = Str::of((string) $key) + ->trim() + ->lower() + ->replaceMatches('/[^a-z0-9]+/u', '_') + ->trim('_') + ->value(); + + $normalized[$normalizedKey] = is_string($value) + ? trim($value) + : $value; + } + + $studentNumber = $this->nullIfBlank($normalized['student_number'] ?? ($normalized['nis'] ?? null)); + $nisn = $this->nullIfBlank($normalized['nisn'] ?? null); + $fullName = $this->nullIfBlank($normalized['full_name'] ?? ($normalized['nama_lengkap'] ?? null)); + $gender = strtoupper((string) $this->nullIfBlank($normalized['gender'] ?? ($normalized['jenis_kelamin_l_p'] ?? null))); + $status = strtolower((string) ($this->nullIfBlank($normalized['status'] ?? null) ?? 'active')); + $entryDate = $this->nullIfBlank($normalized['entry_date'] ?? ($normalized['tanggal_masuk_yyyy_mm_dd'] ?? null)); + $phoneNumber = $this->nullIfBlank($normalized['phone_number'] ?? ($normalized['nomor_hp'] ?? null)); + $academicYearSource = $this->nullIfBlank($normalized['academic_year_id'] ?? ($normalized['tahun_ajaran'] ?? null)); + $departmentSource = $this->nullIfBlank($normalized['department_id'] ?? ($normalized['program_keahlian'] ?? null)); + $classSource = $this->nullIfBlank($normalized['class_id'] ?? ($normalized['kelas'] ?? null)); + + $academicYearId = $this->resolveAcademicYearId($academicYearSource); + $departmentId = $this->resolveDepartmentId($departmentSource); + $classId = $this->resolveClassId($classSource, $academicYearId, $departmentId); + + return [ + 'student_number' => $studentNumber, + 'nisn' => $nisn, + 'full_name' => $fullName, + 'gender' => $gender, + 'academic_year_id' => $academicYearId, + 'department_id' => $departmentId, + 'class_id' => $classId, + 'entry_date' => $entryDate, + 'status' => $status, + 'phone_number' => $phoneNumber, + ]; + } + + protected function resolveAcademicYearId(mixed $value): mixed + { + if ($value === null || $value === '') { + return null; + } + + if (is_numeric($value)) { + return $value; + } + + return AcademicYear::where('name', trim((string) $value))->value('id'); + } + + protected function resolveDepartmentId(mixed $value): mixed + { + if ($value === null || $value === '') { + return null; + } + + if (is_numeric($value)) { + return $value; + } + + return Department::where('name', trim((string) $value))->value('id'); + } + + protected function resolveClassId(mixed $value, mixed $academicYearId = null, mixed $departmentId = null): mixed + { + if ($value === null || $value === '') { + return null; + } + + if (is_numeric($value)) { + return $value; + } + + return SchoolClass::query() + ->when($academicYearId, fn ($query) => $query->where('academic_year_id', $academicYearId)) + ->when($departmentId, fn ($query) => $query->where('department_id', $departmentId)) + ->where('name', trim((string) $value)) + ->value('id'); + } + + protected function parseImportFile(string $path, string $originalName): array + { + $extension = strtolower(pathinfo($originalName, PATHINFO_EXTENSION)); + + return match ($extension) { + 'xlsx' => $this->parseXlsxRows($path), + default => $this->parseCsvRows($path), + }; + } + + protected function parseCsvRows(string $path): array + { + $handle = fopen($path, 'r'); + + if (! $handle) { + return []; + } + + $rows = []; + $headers = null; + $rowNumber = 1; + + while (($data = fgetcsv($handle, 0, ',')) !== false) { + $rowNumber++; + + if ($headers === null) { + $headers = array_map(fn ($header) => trim((string) $header), $data); + continue; + } + + if (count(array_filter($data, fn ($value) => trim((string) $value) !== '')) === 0) { + continue; + } + + $rows[$rowNumber] = array_combine($headers, array_pad($data, count($headers), null)); + } + + fclose($handle); + + return $rows; + } + + protected function parseXlsxRows(string $path): array + { + $zip = new \ZipArchive(); + + if ($zip->open($path) !== true) { + throw ValidationException::withMessages([ + 'import_file' => 'File Excel tidak bisa dibuka.', + ]); + } + + $sharedStrings = []; + $sharedStringsXml = $zip->getFromName('xl/sharedStrings.xml'); + if ($sharedStringsXml) { + $xml = simplexml_load_string($sharedStringsXml); + if ($xml && isset($xml->si)) { + foreach ($xml->si as $item) { + $text = ''; + if (isset($item->t)) { + $text = (string) $item->t; + } elseif (isset($item->r)) { + foreach ($item->r as $run) { + $text .= (string) $run->t; + } + } + $sharedStrings[] = $text; + } + } + } + + $sheetXml = $zip->getFromName('xl/worksheets/sheet1.xml'); + $zip->close(); + + if (! $sheetXml) { + throw ValidationException::withMessages([ + 'import_file' => 'Worksheet pertama pada file Excel tidak ditemukan.', + ]); + } + + $xml = simplexml_load_string($sheetXml); + $xml->registerXPathNamespace('main', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); + $rows = []; + $headers = null; + + foreach ($xml->xpath('//main:sheetData/main:row') as $rowIndex => $row) { + $values = []; + + foreach ($row->c as $cell) { + $reference = (string) $cell['r']; + $column = preg_replace('/\d+/', '', $reference); + $index = $this->columnLetterToIndex($column); + $type = (string) $cell['t']; + $value = ''; + + if ($type === 'inlineStr' && isset($cell->is->t)) { + $value = (string) $cell->is->t; + } elseif ($type === 's') { + $sharedIndex = (int) ($cell->v ?? 0); + $value = $sharedStrings[$sharedIndex] ?? ''; + } else { + $value = (string) ($cell->v ?? ''); + } + + $values[$index] = $value; + } + + if (empty($values)) { + continue; + } + + ksort($values); + $ordered = array_values($values); + + if ($headers === null) { + $headers = array_map(fn ($header) => trim((string) $header), $ordered); + continue; + } + + $rows[$rowIndex + 1] = array_combine($headers, array_pad($ordered, count($headers), null)); + } + + return $rows; + } + + protected function columnLetterToIndex(string $letters): int + { + $letters = strtoupper($letters); + $index = 0; + + for ($i = 0; $i < strlen($letters); $i++) { + $index = ($index * 26) + (ord($letters[$i]) - 64); + } + + return $index - 1; + } + + protected function isImportRowEmpty(array $row): bool + { + return count(array_filter($row, fn ($value) => ! is_null($value) && $value !== '')) === 0; + } + + protected function nullIfBlank(mixed $value): mixed + { + if (is_string($value) && trim($value) === '') { + return null; + } + + return $value; + } + + protected function ensureAdmin(): void + { + abort_unless(auth()->user()?->isAdmin(), 403, 'Aksi ini hanya boleh dilakukan administrator.'); + } + + protected function resolveStudentViewConfig(string $viewMode, mixed $requestedStatus): array + { + return match ($viewMode) { + 'graduated' => [ + 'view' => 'graduated', + 'status' => 'graduated', + 'title' => 'Data Siswa Lulus', + 'description' => 'Daftar siswa yang sudah berstatus lulus.', + ], + 'transferred' => [ + 'view' => 'transferred', + 'status' => 'transferred', + 'title' => 'Data Siswa Mutasi', + 'description' => 'Daftar siswa yang berstatus mutasi atau pindah sekolah.', + ], + 'dropped' => [ + 'view' => 'dropped', + 'status' => 'dropped', + 'title' => 'Data Siswa Keluar', + 'description' => 'Daftar siswa yang berstatus keluar dari sekolah.', + ], + default => [ + 'view' => 'all', + 'status' => $requestedStatus, + 'title' => 'Data Siswa', + 'description' => 'Kelola data siswa lengkap berdasarkan master akademik yang tersedia.', + ], + }; + } +} diff --git a/app/Http/Controllers/StudentDocumentController.php b/app/Http/Controllers/StudentDocumentController.php new file mode 100644 index 0000000..2e2dca9 --- /dev/null +++ b/app/Http/Controllers/StudentDocumentController.php @@ -0,0 +1,241 @@ + $student, + 'documentTypes' => DocumentType::where('is_active', true)->orderBy('name')->get(), + 'verificationStatuses' => $this->verificationStatuses(), + 'defaultMaxFileSizeKb' => 5120, + ]); + } + + public function store(Request $request, Student $student): RedirectResponse + { + $data = $this->validateDocument($request); + $uploadedFile = $request->file('document_file'); + $path = $uploadedFile->store("student-documents/{$student->id}", 'public'); + + StudentDocument::create([ + 'student_id' => $student->id, + 'document_type_id' => $data['document_type_id'], + 'file_name' => $uploadedFile->getClientOriginalName(), + 'file_path' => $path, + 'file_extension' => $uploadedFile->getClientOriginalExtension(), + 'mime_type' => $uploadedFile->getMimeType(), + 'file_size' => $uploadedFile->getSize(), + 'document_number' => $data['document_number'] ?? null, + 'issued_date' => $data['issued_date'] ?? null, + 'expired_date' => $data['expired_date'] ?? null, + 'description' => $data['description'] ?? null, + 'verification_status' => $data['verification_status'], + 'verification_note' => $data['verification_note'] ?? null, + 'uploaded_by' => auth()->id(), + 'verified_by' => in_array($data['verification_status'], ['valid', 'invalid', 'revision']) ? auth()->id() : null, + 'verified_at' => in_array($data['verification_status'], ['valid', 'invalid', 'revision']) ? now() : null, + ]); + + Alert::success('Berhasil', 'Dokumen siswa berhasil diunggah.'); + + return redirect()->route('students.show', $student)->with('success', 'Dokumen siswa berhasil diunggah.'); + } + + public function edit(Student $student, StudentDocument $document): View + { + abort_unless($document->student_id === $student->id, 404); + + return view('student-documents.edit', [ + 'student' => $student, + 'document' => $document, + 'documentTypes' => DocumentType::where('is_active', true)->orderBy('name')->get(), + 'verificationStatuses' => $this->verificationStatuses(), + 'defaultMaxFileSizeKb' => 5120, + ]); + } + + public function update(Request $request, Student $student, StudentDocument $document): RedirectResponse + { + abort_unless($document->student_id === $student->id, 404); + + $data = $this->validateDocument($request, false); + + if ($request->hasFile('document_file')) { + if ($document->file_path && Storage::disk('public')->exists($document->file_path)) { + Storage::disk('public')->delete($document->file_path); + } + + $uploadedFile = $request->file('document_file'); + $path = $uploadedFile->store("student-documents/{$student->id}", 'public'); + + $document->file_name = $uploadedFile->getClientOriginalName(); + $document->file_path = $path; + $document->file_extension = $uploadedFile->getClientOriginalExtension(); + $document->mime_type = $uploadedFile->getMimeType(); + $document->file_size = $uploadedFile->getSize(); + } + + $document->fill([ + 'document_type_id' => $data['document_type_id'], + 'document_number' => $data['document_number'] ?? null, + 'issued_date' => $data['issued_date'] ?? null, + 'expired_date' => $data['expired_date'] ?? null, + 'description' => $data['description'] ?? null, + 'verification_status' => $data['verification_status'], + 'verification_note' => $data['verification_note'] ?? null, + ]); + + if (in_array($data['verification_status'], ['valid', 'invalid', 'revision'])) { + $document->verified_by = auth()->id(); + $document->verified_at = now(); + } else { + $document->verified_by = null; + $document->verified_at = null; + } + + $document->save(); + + Alert::success('Berhasil', 'Dokumen siswa berhasil diperbarui.'); + + return redirect()->route('students.show', $student)->with('success', 'Dokumen siswa berhasil diperbarui.'); + } + + public function destroy(Student $student, StudentDocument $document): RedirectResponse + { + $this->ensureAdmin(); + abort_unless($document->student_id === $student->id, 404); + + if ($document->file_path && Storage::disk('public')->exists($document->file_path)) { + Storage::disk('public')->delete($document->file_path); + } + + $document->delete(); + + Alert::success('Berhasil', 'Dokumen siswa berhasil dihapus.'); + + return redirect()->route('students.show', $student)->with('success', 'Dokumen siswa berhasil dihapus.'); + } + + public function preview(StudentDocument $document): Response|View + { + abort_unless($document->file_path && Storage::disk('public')->exists($document->file_path), 404); + + $mimeType = $document->mime_type ?: Storage::disk('public')->mimeType($document->file_path); + $url = asset('storage/' . $document->file_path); + $isImage = str_starts_with((string) $mimeType, 'image/'); + $isPdf = $mimeType === 'application/pdf'; + + return view('student-documents.preview', [ + 'document' => $document, + 'fileUrl' => $url, + 'mimeType' => $mimeType, + 'isImage' => $isImage, + 'isPdf' => $isPdf, + ]); + } + + public function quickVerify(Request $request, Student $student, StudentDocument $document): RedirectResponse + { + $this->ensureAdmin(); + abort_unless($document->student_id === $student->id, 404); + + $data = $request->validate([ + 'verification_status' => ['required', Rule::in(['valid', 'revision', 'invalid'])], + 'verification_note' => ['nullable', 'string', 'max:1000'], + ]); + + $document->update([ + 'verification_status' => $data['verification_status'], + 'verification_note' => $data['verification_note'] ?? null, + 'verified_by' => auth()->id(), + 'verified_at' => now(), + ]); + + Alert::success('Berhasil', 'Status verifikasi dokumen berhasil diperbarui.'); + + return redirect()->route('students.show', $student)->with('success', 'Status verifikasi dokumen berhasil diperbarui.'); + } + + public function download(StudentDocument $document): StreamedResponse + { + abort_unless($document->file_path && Storage::disk('public')->exists($document->file_path), 404); + + return Storage::disk('public')->download($document->file_path, $document->file_name); + } + + public function publicPreview(StudentDocument $document): Response|View + { + abort_unless($document->file_path && Storage::disk('public')->exists($document->file_path), 404); + + $mimeType = $document->mime_type ?: Storage::disk('public')->mimeType($document->file_path); + $url = asset('storage/' . $document->file_path); + $isImage = str_starts_with((string) $mimeType, 'image/'); + $isPdf = $mimeType === 'application/pdf'; + + return view('public.document-preview', [ + 'document' => $document, + 'fileUrl' => $url, + 'mimeType' => $mimeType, + 'isImage' => $isImage, + 'isPdf' => $isPdf, + ]); + } + + public function publicDownload(StudentDocument $document): StreamedResponse + { + return $this->download($document); + } + + protected function validateDocument(Request $request, bool $fileRequired = true): array + { + $documentType = DocumentType::findOrFail($request->input('document_type_id')); + $maxFileSizeKb = $documentType->max_file_size_kb ?: 5120; + $allowedExtensions = $documentType->allowed_extensions + ? collect(explode(',', $documentType->allowed_extensions))->map(fn ($item) => trim($item))->filter()->implode(',') + : 'jpg,jpeg,png,pdf,webp'; + + return $request->validate([ + 'document_type_id' => ['required', 'exists:document_types,id'], + 'document_number' => ['nullable', 'string', 'max:100'], + 'issued_date' => ['nullable', 'date'], + 'expired_date' => ['nullable', 'date', 'after_or_equal:issued_date'], + 'description' => ['nullable', 'string'], + 'verification_status' => ['required', Rule::in(array_keys($this->verificationStatuses()))], + 'verification_note' => ['nullable', 'string', 'max:1000'], + 'document_file' => [$fileRequired ? 'required' : 'nullable', 'file', 'mimes:' . $allowedExtensions, 'max:' . $maxFileSizeKb], + ], [ + 'document_file.max' => 'Ukuran file melebihi batas maksimal untuk jenis dokumen ini (' . number_format($maxFileSizeKb / 1024, 2) . ' MB).', + 'document_file.mimes' => 'Format file tidak sesuai. Format yang diizinkan untuk jenis dokumen ini: ' . strtoupper(str_replace(',', ', ', $allowedExtensions)) . '.', + ]); + } + + protected function verificationStatuses(): array + { + return [ + 'pending' => 'Pending', + 'valid' => 'Valid', + 'invalid' => 'Invalid', + 'revision' => 'Perlu Revisi', + ]; + } + + protected function ensureAdmin(): void + { + abort_unless(auth()->user()?->isAdmin(), 403, 'Aksi ini hanya boleh dilakukan administrator.'); + } +} diff --git a/app/Http/Controllers/StudentExitController.php b/app/Http/Controllers/StudentExitController.php new file mode 100644 index 0000000..086069d --- /dev/null +++ b/app/Http/Controllers/StudentExitController.php @@ -0,0 +1,116 @@ +get('search')); + $academicYearId = $request->get('academic_year_id'); + $departmentId = $request->get('department_id'); + $classId = $request->get('class_id'); + + $studentExits = StudentExit::query() + ->with(['academicYear', 'department', 'classRoom']) + ->when($search !== '', function ($query) use ($search) { + $query->where(function ($subQuery) use ($search) { + $subQuery->where('full_name', 'like', "%{$search}%") + ->orWhere('student_number', 'like', "%{$search}%") + ->orWhere('nisn', 'like', "%{$search}%"); + }); + }) + ->when($academicYearId, fn ($query) => $query->where('academic_year_id', $academicYearId)) + ->when($departmentId, fn ($query) => $query->where('department_id', $departmentId)) + ->when($classId, fn ($query) => $query->where('class_id', $classId)) + ->latest('exit_date') + ->latest('id') + ->paginate(10) + ->withQueryString(); + + return view('student-exits.index', [ + 'studentExits' => $studentExits, + 'search' => $search, + 'filters' => [ + 'academic_year_id' => $academicYearId, + 'department_id' => $departmentId, + 'class_id' => $classId, + ], + 'academicYears' => AcademicYear::orderBy('name')->pluck('name', 'id'), + 'departments' => Department::orderBy('name')->pluck('name', 'id'), + 'classes' => SchoolClass::orderBy('name')->pluck('name', 'id'), + ]); + } + + public function show(StudentExit $studentExit): View + { + $studentExit->load(['academicYear', 'department', 'classRoom']); + + return view('student-exits.show', [ + 'studentExit' => $studentExit, + ]); + } + + public function update(Request $request, StudentExit $studentExit): RedirectResponse + { + $validated = $request->validate([ + 'exit_date' => ['nullable', 'date'], + 'exit_reason' => ['nullable', 'string'], + 'exit_letter' => ['nullable', 'file', 'mimes:pdf,jpg,jpeg,png', 'max:2048'], + ], [ + 'exit_letter.mimes' => 'Surat keluar harus berupa file PDF, JPG, JPEG, atau PNG.', + 'exit_letter.max' => 'Ukuran surat keluar maksimal 2 MB.', + ]); + + $studentExit->exit_date = $validated['exit_date'] ?? $studentExit->exit_date; + $studentExit->exit_reason = $validated['exit_reason'] ?? $studentExit->exit_reason; + + if ($request->hasFile('exit_letter')) { + if ($studentExit->exit_letter_file_path && Storage::disk('public')->exists($studentExit->exit_letter_file_path)) { + Storage::disk('public')->delete($studentExit->exit_letter_file_path); + } + + $file = $request->file('exit_letter'); + $path = $file->store("student-exit-letters/{$studentExit->student_id}", 'public'); + + $studentExit->exit_letter_file_name = $file->getClientOriginalName(); + $studentExit->exit_letter_file_path = $path; + $studentExit->exit_letter_mime_type = $file->getMimeType(); + $studentExit->exit_letter_file_size = $file->getSize(); + } + + $studentExit->save(); + + Alert::success('Berhasil', 'Arsip siswa keluar berhasil diperbarui.'); + + return redirect()->route('student-exits.show', $studentExit)->with('success', 'Arsip siswa keluar berhasil diperbarui.'); + } + + public function previewLetter(StudentExit $studentExit): View + { + abort_unless($studentExit->exit_letter_file_path && Storage::disk('public')->exists($studentExit->exit_letter_file_path), 404); + + $mimeType = $studentExit->exit_letter_mime_type ?: Storage::disk('public')->mimeType($studentExit->exit_letter_file_path); + $fileUrl = asset('storage/' . $studentExit->exit_letter_file_path); + $isImage = str_starts_with((string) $mimeType, 'image/'); + $isPdf = $mimeType === 'application/pdf'; + + return view('student-exits.preview-letter', [ + 'studentExit' => $studentExit, + 'fileUrl' => $fileUrl, + 'mimeType' => $mimeType, + 'isImage' => $isImage, + 'isPdf' => $isPdf, + ]); + } +} diff --git a/app/Http/Controllers/StudentParentController.php b/app/Http/Controllers/StudentParentController.php new file mode 100644 index 0000000..19b0782 --- /dev/null +++ b/app/Http/Controllers/StudentParentController.php @@ -0,0 +1,119 @@ + $student, + 'relations' => $this->relationOptions(), + 'educationOptions' => $this->educationOptions(), + ]); + } + + public function store(Request $request, Student $student): RedirectResponse + { + $data = $this->validateParent($request, $student); + $data['student_id'] = $student->id; + + StudentParent::create($data); + + Alert::success('Berhasil', 'Data orang tua/wali berhasil ditambahkan.'); + + return redirect()->route('students.show', $student)->with('success', 'Data orang tua/wali berhasil ditambahkan.'); + } + + public function edit(Student $student, StudentParent $parent): View + { + abort_unless($parent->student_id === $student->id, 404); + + return view('student-parents.edit', [ + 'student' => $student, + 'parent' => $parent, + 'relations' => $this->relationOptions(), + 'educationOptions' => $this->educationOptions(), + ]); + } + + public function update(Request $request, Student $student, StudentParent $parent): RedirectResponse + { + abort_unless($parent->student_id === $student->id, 404); + + $data = $this->validateParent($request, $student, $parent); + $parent->update($data); + + Alert::success('Berhasil', 'Data orang tua/wali berhasil diperbarui.'); + + return redirect()->route('students.show', $student)->with('success', 'Data orang tua/wali berhasil diperbarui.'); + } + + public function destroy(Student $student, StudentParent $parent): RedirectResponse + { + $this->ensureAdmin(); + abort_unless($parent->student_id === $student->id, 404); + + $parent->delete(); + + Alert::success('Berhasil', 'Data orang tua/wali berhasil dihapus.'); + + return redirect()->route('students.show', $student)->with('success', 'Data orang tua/wali berhasil dihapus.'); + } + + protected function validateParent(Request $request, Student $student, ?StudentParent $parent = null): array + { + return $request->validate([ + 'relation_type' => ['required', Rule::in(array_keys($this->relationOptions())), Rule::unique('student_parents', 'relation_type')->ignore($parent?->id)->where(fn ($query) => $query->where('student_id', $student->id))], + 'name' => ['required', 'string', 'max:150'], + 'nik' => ['nullable', 'string', 'max:30'], + 'birth_year' => ['nullable', 'integer', 'digits:4'], + 'education' => ['nullable', Rule::in(array_keys($this->educationOptions()))], + 'occupation' => ['nullable', 'string', 'max:100'], + 'phone_number' => ['nullable', 'string', 'max:30'], + 'address' => ['nullable', 'string'], + 'is_alive' => ['nullable', 'boolean'], + ]); + } + + protected function relationOptions(): array + { + return [ + 'father' => 'Ayah', + 'mother' => 'Ibu', + 'guardian' => 'Wali', + ]; + } + + protected function educationOptions(): array + { + return [ + 'Tidak Sekolah' => 'Tidak Sekolah', + 'Tidak Tamat SD' => 'Tidak Tamat SD', + 'SD' => 'SD', + 'SMP' => 'SMP', + 'SLTA' => 'SLTA', + 'D1' => 'D1', + 'D2' => 'D2', + 'D3' => 'D3', + 'D4' => 'D4', + 'S1' => 'S1', + 'S2' => 'S2', + 'S3' => 'S3', + 'Lainnya' => 'Lainnya', + ]; + } + + protected function ensureAdmin(): void + { + abort_unless(auth()->user()?->isAdmin(), 403, 'Aksi ini hanya boleh dilakukan administrator.'); + } +} diff --git a/app/Http/Controllers/StudentPromotionController.php b/app/Http/Controllers/StudentPromotionController.php new file mode 100644 index 0000000..e953223 --- /dev/null +++ b/app/Http/Controllers/StudentPromotionController.php @@ -0,0 +1,392 @@ +integer('from_academic_year_id') ?: AcademicYear::where('is_active', true)->value('id'); + $toAcademicYearId = $request->integer('to_academic_year_id'); + + $academicYears = AcademicYear::orderByDesc('start_year')->orderByDesc('end_year')->get(); + + $students = collect(); + + if ($fromAcademicYearId) { + $students = Student::query() + ->with(['academicYear', 'department', 'classRoom']) + ->where('academic_year_id', $fromAcademicYearId) + ->where('status', 'active') + ->orderBy('full_name') + ->get() + ->map(function (Student $student) use ($toAcademicYearId) { + $student->promotion_recommendation = $this->buildPromotionRecommendation($student, $toAcademicYearId); + + return $student; + }); + } + + return view('student-promotions.index', [ + 'academicYears' => $academicYears, + 'students' => $students, + 'filters' => [ + 'from_academic_year_id' => $fromAcademicYearId, + 'to_academic_year_id' => $toAcademicYearId, + ], + ]); + } + + public function store(Request $request): RedirectResponse + { + $data = $request->validate([ + 'from_academic_year_id' => ['required', 'exists:academic_years,id'], + 'to_academic_year_id' => ['required', 'exists:academic_years,id', 'different:from_academic_year_id'], + 'promotions' => ['required', 'array', 'min:1'], + 'promotions.*.student_id' => ['required', 'exists:students,id'], + 'promotions.*.target_class_id' => ['nullable', 'exists:classes,id'], + 'promotions.*.action' => ['required', 'in:promote,repeat,graduate,skip'], + 'promotions.*.notes' => ['nullable', 'string'], + ]); + + $students = Student::query() + ->with(['classRoom']) + ->whereIn('id', collect($data['promotions'])->pluck('student_id')->all()) + ->get() + ->keyBy('id'); + + $targetClassIds = collect($data['promotions']) + ->pluck('target_class_id') + ->filter() + ->unique() + ->values(); + + $targetClasses = SchoolClass::query() + ->whereIn('id', $targetClassIds) + ->get() + ->keyBy('id'); + + $plannedClassAssignments = collect($data['promotions']) + ->filter(fn (array $promotion) => in_array($promotion['action'] ?? 'skip', ['promote', 'repeat'], true) && ! empty($promotion['target_class_id'])) + ->countBy('target_class_id'); + + foreach ($data['promotions'] as $index => $promotion) { + if (in_array($promotion['action'], ['promote', 'repeat'], true) && empty($promotion['target_class_id'])) { + return back() + ->withErrors(["promotions.$index.target_class_id" => 'Kelas tujuan wajib dipilih untuk aksi naik kelas atau tinggal kelas.']) + ->withInput(); + } + + $student = $students->get($promotion['student_id']); + + if (! $student) { + return back() + ->withErrors(["promotions.$index.student_id" => 'Data siswa tidak ditemukan.']) + ->withInput(); + } + + if ((int) $student->academic_year_id !== (int) $data['from_academic_year_id']) { + return back() + ->withErrors(["promotions.$index.student_id" => "Siswa {$student->full_name} tidak berasal dari tahun ajaran asal yang dipilih."]) + ->withInput(); + } + + if ($student->status !== 'active') { + return back() + ->withErrors(["promotions.$index.student_id" => "Siswa {$student->full_name} tidak berstatus aktif sehingga tidak bisa diproses promosi."]) + ->withInput(); + } + + if (($promotion['action'] ?? 'skip') === 'graduate') { + if (strtoupper((string) $student->classRoom?->level) !== 'XII') { + return back() + ->withErrors(["promotions.$index.action" => "Siswa {$student->full_name} hanya bisa diluluskan jika berada di kelas XII."]) + ->withInput(); + } + + continue; + } + + if (($promotion['action'] ?? 'skip') === 'skip') { + continue; + } + + $targetClass = $targetClasses->get($promotion['target_class_id']); + + if (! $targetClass) { + return back() + ->withErrors(["promotions.$index.target_class_id" => "Kelas tujuan untuk {$student->full_name} tidak ditemukan."]) + ->withInput(); + } + + if ((int) $targetClass->academic_year_id !== (int) $data['to_academic_year_id']) { + return back() + ->withErrors(["promotions.$index.target_class_id" => "Kelas tujuan {$student->full_name} harus berasal dari tahun ajaran tujuan yang dipilih."]) + ->withInput(); + } + + if (! $targetClass->is_active) { + return back() + ->withErrors(["promotions.$index.target_class_id" => "Kelas tujuan {$student->full_name} tidak aktif."]) + ->withInput(); + } + + if ((int) $student->department_id !== (int) $targetClass->department_id) { + return back() + ->withErrors(["promotions.$index.target_class_id" => "Jurusan kelas tujuan {$student->full_name} harus sama dengan jurusan siswa saat ini."]) + ->withInput(); + } + + if (! $this->isTargetClassValidForAction($student, $targetClass, $promotion['action'])) { + return back() + ->withErrors(["promotions.$index.target_class_id" => "Level kelas tujuan {$student->full_name} tidak sesuai dengan aksi yang dipilih."]) + ->withInput(); + } + + $hasHistoryInTargetYear = StudentAcademicHistory::query() + ->where('student_id', $student->id) + ->where('academic_year_id', $data['to_academic_year_id']) + ->exists(); + + if ($hasHistoryInTargetYear) { + return back() + ->withErrors(["promotions.$index.student_id" => "Siswa {$student->full_name} sudah memiliki histori akademik pada tahun ajaran tujuan."]) + ->withInput(); + } + } + + $capacityErrors = $this->validateTargetClassCapacities($plannedClassAssignments, $targetClasses); + + if ($capacityErrors->isNotEmpty()) { + return back() + ->withErrors($capacityErrors->all()) + ->withInput(); + } + + $processed = 0; + + DB::transaction(function () use ($data, &$processed) { + foreach ($data['promotions'] as $promotion) { + if (($promotion['action'] ?? 'skip') === 'skip') { + continue; + } + + $student = Student::query()->findOrFail($promotion['student_id']); + $action = $promotion['action']; + + if ($action === 'graduate') { + $student->update([ + 'status' => 'graduated', + ]); + + StudentAcademicHistory::query() + ->where('student_id', $student->id) + ->where('is_current', true) + ->update([ + 'status' => 'graduated', + 'is_current' => false, + 'end_date' => now()->toDateString(), + 'notes' => $promotion['notes'] ?? 'Diproses melalui modul promosi siswa.', + ]); + + $processed++; + continue; + } + + $targetClass = SchoolClass::query()->findOrFail($promotion['target_class_id']); + + StudentAcademicHistory::query() + ->where('student_id', $student->id) + ->where('is_current', true) + ->update([ + 'is_current' => false, + 'end_date' => now()->toDateString(), + 'status' => $action === 'repeat' ? 'repeated' : 'promoted', + 'notes' => $promotion['notes'] ?? 'Diproses melalui modul promosi siswa.', + ]); + + $student->update([ + 'academic_year_id' => $data['to_academic_year_id'], + 'department_id' => $targetClass->department_id, + 'class_id' => $targetClass->id, + 'status' => 'active', + ]); + + StudentAcademicHistory::create([ + 'student_id' => $student->id, + 'academic_year_id' => $data['to_academic_year_id'], + 'department_id' => $targetClass->department_id, + 'class_id' => $targetClass->id, + 'status' => 'active', + 'start_date' => now()->toDateString(), + 'end_date' => null, + 'notes' => $promotion['notes'] ?? 'Hasil proses promosi siswa.', + 'is_current' => true, + ]); + + $processed++; + } + }); + + Alert::success('Berhasil', $processed . ' siswa berhasil diproses melalui modul promosi.'); + + return redirect() + ->route('student-promotions.index', [ + 'from_academic_year_id' => $data['from_academic_year_id'], + 'to_academic_year_id' => $data['to_academic_year_id'], + ]) + ->with('success', $processed . ' siswa berhasil diproses melalui modul promosi.'); + } + + protected function buildPromotionRecommendation(Student $student, ?int $toAcademicYearId): array + { + $currentLevel = strtoupper((string) ($student->classRoom?->level ?? '')); + $nextLevel = match ($currentLevel) { + 'X' => 'XI', + 'XI' => 'XII', + default => null, + }; + + if ($currentLevel === 'XII') { + return [ + 'action' => 'graduate', + 'label' => 'Lulus', + 'target_class_id' => null, + 'target_class_name' => 'Siswa kelas XII direkomendasikan lulus.', + 'available_classes' => [ + 'promote' => collect(), + 'repeat' => collect(), + ], + ]; + } + + $promoteClasses = $toAcademicYearId && $nextLevel + ? $this->findClassesForLevel($student, $toAcademicYearId, $nextLevel) + : collect(); + + $repeatClasses = $toAcademicYearId && $currentLevel + ? $this->findClassesForLevel($student, $toAcademicYearId, $currentLevel) + : collect(); + + $recommendedPromoteClass = $this->pickRecommendedClass($promoteClasses, $student); + $recommendedRepeatClass = $this->pickRecommendedClass($repeatClasses, $student); + + $defaultAction = $recommendedPromoteClass ? 'promote' : ($recommendedRepeatClass ? 'repeat' : 'repeat'); + $defaultClass = $defaultAction === 'promote' ? $recommendedPromoteClass : $recommendedRepeatClass; + + return [ + 'action' => $defaultAction, + 'label' => $defaultAction === 'promote' ? 'Naik Kelas' : 'Tinggal Kelas', + 'target_class_id' => $defaultClass?->id, + 'target_class_name' => $defaultClass?->name, + 'available_classes' => [ + 'promote' => $this->transformClassOptions($promoteClasses), + 'repeat' => $this->transformClassOptions($repeatClasses), + ], + ]; + } + + protected function findClassesForLevel(Student $student, int $academicYearId, string $level) + { + return SchoolClass::query() + ->where('academic_year_id', $academicYearId) + ->where('level', $level) + ->where('is_active', true) + ->orderByRaw('CASE WHEN department_id = ? THEN 0 ELSE 1 END', [$student->department_id]) + ->orderBy('name') + ->get() + ->values(); + } + + protected function pickRecommendedClass($classes, Student $student): ?SchoolClass + { + $sameDepartmentClasses = $classes->where('department_id', $student->department_id)->values(); + + return $sameDepartmentClasses->first(function (SchoolClass $classRoom) use ($student) { + return str_contains(strtolower($classRoom->name), strtolower((string) $student->classRoom?->name)); + }) + ?? $sameDepartmentClasses->first() + ?? $classes->first(); + } + + protected function transformClassOptions(Collection $classes): Collection + { + return $classes->map(function (SchoolClass $classRoom) { + $currentOccupancy = Student::query() + ->where('academic_year_id', $classRoom->academic_year_id) + ->where('class_id', $classRoom->id) + ->where('status', 'active') + ->count(); + + $capacity = $classRoom->capacity; + $remainingCapacity = filled($capacity) ? max((int) $capacity - $currentOccupancy, 0) : null; + $capacityLabel = filled($capacity) + ? "Kuota {$currentOccupancy}/{$capacity} • sisa {$remainingCapacity}" + : 'Kuota belum diatur'; + + return (object) [ + 'id' => $classRoom->id, + 'name' => $classRoom->name, + 'department_id' => $classRoom->department_id, + 'capacity' => $capacity, + 'current_occupancy' => $currentOccupancy, + 'remaining_capacity' => $remainingCapacity, + 'capacity_label' => $capacityLabel, + 'option_label' => "{$classRoom->name} ({$capacityLabel})", + ]; + })->values(); + } + + protected function isTargetClassValidForAction(Student $student, SchoolClass $targetClass, string $action): bool + { + $currentLevel = strtoupper((string) $student->classRoom?->level); + $targetLevel = strtoupper((string) $targetClass->level); + + return match ($action) { + 'promote' => $targetLevel === match ($currentLevel) { + 'X' => 'XI', + 'XI' => 'XII', + default => null, + }, + 'repeat' => $targetLevel === $currentLevel, + default => true, + }; + } + + protected function validateTargetClassCapacities(Collection $plannedClassAssignments, Collection $targetClasses): Collection + { + return $plannedClassAssignments->map(function (int $plannedCount, int|string $classId) use ($targetClasses) { + /** @var SchoolClass|null $targetClass */ + $targetClass = $targetClasses->get($classId); + + if (! $targetClass || blank($targetClass->capacity)) { + return null; + } + + $currentOccupancy = Student::query() + ->where('academic_year_id', $targetClass->academic_year_id) + ->where('class_id', $targetClass->id) + ->where('status', 'active') + ->count(); + + $remainingCapacity = (int) $targetClass->capacity - $currentOccupancy; + + if ($plannedCount > $remainingCapacity) { + return "Kelas {$targetClass->name} melebihi kapasitas. Sisa kuota {$remainingCapacity}, tetapi alokasi promosi/repeat yang dipilih {$plannedCount}."; + } + + return null; + })->filter()->values(); + } +} diff --git a/app/Http/Controllers/StudentSelfServiceController.php b/app/Http/Controllers/StudentSelfServiceController.php new file mode 100644 index 0000000..6e1631b --- /dev/null +++ b/app/Http/Controllers/StudentSelfServiceController.php @@ -0,0 +1,61 @@ +get('search')); + $academicYearId = $request->get('academic_year_id'); + $classId = $request->get('class_id'); + $status = $request->get('status'); + + $students = Student::query() + ->with(['academicYear', 'classRoom', 'department']) + ->when($search !== '', function ($query) use ($search) { + $query->where(function ($subQuery) use ($search) { + $subQuery->where('full_name', 'like', "%{$search}%") + ->orWhere('student_number', 'like', "%{$search}%") + ->orWhere('nisn', 'like', "%{$search}%"); + }); + }) + ->when($academicYearId, fn ($query) => $query->where('academic_year_id', $academicYearId)) + ->when($classId, fn ($query) => $query->where('class_id', $classId)) + ->when($status, fn ($query) => $query->where('self_service_status', $status)) + ->latest() + ->paginate(15) + ->withQueryString(); + + $summaryBaseQuery = Student::query(); + + return view('student-self-service.index', [ + 'students' => $students, + 'search' => $search, + 'filters' => [ + 'academic_year_id' => $academicYearId, + 'class_id' => $classId, + 'status' => $status, + ], + 'academicYears' => AcademicYear::orderBy('name')->pluck('name', 'id'), + 'classes' => SchoolClass::orderBy('name')->pluck('name', 'id'), + 'statuses' => [ + 'not_started' => 'Belum Mulai', + 'draft' => 'Draft', + 'submitted' => 'Sudah Dikirim', + ], + 'summary' => [ + 'total' => (clone $summaryBaseQuery)->count(), + 'not_started' => (clone $summaryBaseQuery)->where('self_service_status', 'not_started')->count(), + 'draft' => (clone $summaryBaseQuery)->where('self_service_status', 'draft')->count(), + 'submitted' => (clone $summaryBaseQuery)->where('self_service_status', 'submitted')->count(), + ], + ]); + } +} diff --git a/app/Http/Controllers/StudentTransferController.php b/app/Http/Controllers/StudentTransferController.php new file mode 100644 index 0000000..7482fbc --- /dev/null +++ b/app/Http/Controllers/StudentTransferController.php @@ -0,0 +1,116 @@ +get('search')); + $academicYearId = $request->get('academic_year_id'); + $departmentId = $request->get('department_id'); + $classId = $request->get('class_id'); + + $studentTransfers = StudentTransfer::query() + ->with(['academicYear', 'department', 'classRoom']) + ->when($search !== '', function ($query) use ($search) { + $query->where(function ($subQuery) use ($search) { + $subQuery->where('full_name', 'like', "%{$search}%") + ->orWhere('student_number', 'like', "%{$search}%") + ->orWhere('nisn', 'like', "%{$search}%"); + }); + }) + ->when($academicYearId, fn ($query) => $query->where('academic_year_id', $academicYearId)) + ->when($departmentId, fn ($query) => $query->where('department_id', $departmentId)) + ->when($classId, fn ($query) => $query->where('class_id', $classId)) + ->latest('transfer_date') + ->latest('id') + ->paginate(10) + ->withQueryString(); + + return view('student-transfers.index', [ + 'studentTransfers' => $studentTransfers, + 'search' => $search, + 'filters' => [ + 'academic_year_id' => $academicYearId, + 'department_id' => $departmentId, + 'class_id' => $classId, + ], + 'academicYears' => AcademicYear::orderBy('name')->pluck('name', 'id'), + 'departments' => Department::orderBy('name')->pluck('name', 'id'), + 'classes' => SchoolClass::orderBy('name')->pluck('name', 'id'), + ]); + } + + public function show(StudentTransfer $studentTransfer): View + { + $studentTransfer->load(['academicYear', 'department', 'classRoom']); + + return view('student-transfers.show', [ + 'studentTransfer' => $studentTransfer, + ]); + } + + public function update(Request $request, StudentTransfer $studentTransfer): RedirectResponse + { + $validated = $request->validate([ + 'transfer_date' => ['nullable', 'date'], + 'transfer_reason' => ['nullable', 'string'], + 'transfer_letter' => ['nullable', 'file', 'mimes:pdf,jpg,jpeg,png', 'max:2048'], + ], [ + 'transfer_letter.mimes' => 'Surat pindah harus berupa file PDF, JPG, JPEG, atau PNG.', + 'transfer_letter.max' => 'Ukuran surat pindah maksimal 2 MB.', + ]); + + $studentTransfer->transfer_date = $validated['transfer_date'] ?? $studentTransfer->transfer_date; + $studentTransfer->transfer_reason = $validated['transfer_reason'] ?? $studentTransfer->transfer_reason; + + if ($request->hasFile('transfer_letter')) { + if ($studentTransfer->transfer_letter_file_path && Storage::disk('public')->exists($studentTransfer->transfer_letter_file_path)) { + Storage::disk('public')->delete($studentTransfer->transfer_letter_file_path); + } + + $file = $request->file('transfer_letter'); + $path = $file->store("student-transfer-letters/{$studentTransfer->student_id}", 'public'); + + $studentTransfer->transfer_letter_file_name = $file->getClientOriginalName(); + $studentTransfer->transfer_letter_file_path = $path; + $studentTransfer->transfer_letter_mime_type = $file->getMimeType(); + $studentTransfer->transfer_letter_file_size = $file->getSize(); + } + + $studentTransfer->save(); + + Alert::success('Berhasil', 'Arsip siswa mutasi berhasil diperbarui.'); + + return redirect()->route('student-transfers.show', $studentTransfer)->with('success', 'Arsip siswa mutasi berhasil diperbarui.'); + } + + public function previewLetter(StudentTransfer $studentTransfer): View + { + abort_unless($studentTransfer->transfer_letter_file_path && Storage::disk('public')->exists($studentTransfer->transfer_letter_file_path), 404); + + $mimeType = $studentTransfer->transfer_letter_mime_type ?: Storage::disk('public')->mimeType($studentTransfer->transfer_letter_file_path); + $fileUrl = asset('storage/' . $studentTransfer->transfer_letter_file_path); + $isImage = str_starts_with((string) $mimeType, 'image/'); + $isPdf = $mimeType === 'application/pdf'; + + return view('student-transfers.preview-letter', [ + 'studentTransfer' => $studentTransfer, + 'fileUrl' => $fileUrl, + 'mimeType' => $mimeType, + 'isImage' => $isImage, + 'isPdf' => $isPdf, + ]); + } +} diff --git a/app/Http/Controllers/UserManagementController.php b/app/Http/Controllers/UserManagementController.php new file mode 100644 index 0000000..f6bcebc --- /dev/null +++ b/app/Http/Controllers/UserManagementController.php @@ -0,0 +1,115 @@ +string('search')); + + $users = User::query() + ->when($search !== '', function ($query) use ($search) { + $query->where(function ($subQuery) use ($search) { + $subQuery->where('name', 'like', "%{$search}%") + ->orWhere('email', 'like', "%{$search}%"); + }); + }) + ->orderBy('name') + ->paginate(10) + ->withQueryString(); + + return view('users.index', [ + 'users' => $users, + 'search' => $search, + 'roleOptions' => $this->roleOptions(), + ]); + } + + public function create(): View + { + return view('users.create', [ + 'roleOptions' => $this->roleOptions(), + ]); + } + + public function store(Request $request): RedirectResponse + { + $data = $this->validateUser($request); + + User::create($data); + + Alert::success('Berhasil', 'Akun pengguna berhasil ditambahkan.'); + + return redirect()->route('settings.users.index')->with('success', 'Akun pengguna berhasil ditambahkan.'); + } + + public function edit(User $user): View + { + return view('users.edit', [ + 'user' => $user, + 'roleOptions' => $this->roleOptions(), + ]); + } + + public function update(Request $request, User $user): RedirectResponse + { + $data = $this->validateUser($request, $user); + + if (blank($data['password'] ?? null)) { + unset($data['password']); + } + + $user->update($data); + + Alert::success('Berhasil', 'Akun pengguna berhasil diperbarui.'); + + return redirect()->route('settings.users.index')->with('success', 'Akun pengguna berhasil diperbarui.'); + } + + public function destroy(Request $request, User $user): RedirectResponse + { + if ((int) $request->user()->id === (int) $user->id) { + return back()->withErrors(['user' => 'Akun yang sedang dipakai login tidak bisa dihapus.']); + } + + if (User::query()->where('role', 'admin')->count() <= 1 && $user->role === 'admin') { + return back()->withErrors(['user' => 'Minimal harus ada satu akun admin aktif di sistem.']); + } + + $user->delete(); + + Alert::success('Berhasil', 'Akun pengguna berhasil dihapus.'); + + return redirect()->route('settings.users.index')->with('success', 'Akun pengguna berhasil dihapus.'); + } + + protected function validateUser(Request $request, ?User $user = null): array + { + $passwordRules = $user + ? ['nullable', 'string', 'min:8', 'confirmed'] + : ['required', 'string', 'min:8', 'confirmed']; + + return $request->validate([ + 'name' => ['required', 'string', 'max:100'], + 'email' => ['required', 'email', 'max:150', Rule::unique('users', 'email')->ignore($user?->id)], + 'role' => ['required', Rule::in(array_keys($this->roleOptions()))], + 'password' => $passwordRules, + ]); + } + + protected function roleOptions(): array + { + return [ + 'admin' => 'Administrator', + 'staff' => 'Staff', + ]; + } +} diff --git a/app/Http/Middleware/EnsureUserHasRole.php b/app/Http/Middleware/EnsureUserHasRole.php new file mode 100644 index 0000000..c9a9a2d --- /dev/null +++ b/app/Http/Middleware/EnsureUserHasRole.php @@ -0,0 +1,21 @@ +user(); + + if (! $user || ! in_array($user->role, $roles, true)) { + abort(403, 'Anda tidak memiliki akses ke halaman ini.'); + } + + return $next($request); + } +} diff --git a/app/Http/Requests/Auth/LoginRequest.php b/app/Http/Requests/Auth/LoginRequest.php new file mode 100644 index 0000000..711e0a1 --- /dev/null +++ b/app/Http/Requests/Auth/LoginRequest.php @@ -0,0 +1,86 @@ +|string> + */ + public function rules(): array + { + return [ + 'email' => ['required', 'string', 'email'], + 'password' => ['required', 'string'], + ]; + } + + /** + * Attempt to authenticate the request's credentials. + * + * @throws ValidationException + */ + public function authenticate(): void + { + $this->ensureIsNotRateLimited(); + + if (! Auth::attempt($this->only('email', 'password'), $this->boolean('remember'))) { + RateLimiter::hit($this->throttleKey()); + + throw ValidationException::withMessages([ + 'email' => trans('auth.failed'), + ]); + } + + RateLimiter::clear($this->throttleKey()); + } + + /** + * Ensure the login request is not rate limited. + * + * @throws ValidationException + */ + public function ensureIsNotRateLimited(): void + { + if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { + return; + } + + event(new Lockout($this)); + + $seconds = RateLimiter::availableIn($this->throttleKey()); + + throw ValidationException::withMessages([ + 'email' => trans('auth.throttle', [ + 'seconds' => $seconds, + 'minutes' => ceil($seconds / 60), + ]), + ]); + } + + /** + * Get the rate limiting throttle key for the request. + */ + public function throttleKey(): string + { + return Str::transliterate(Str::lower($this->string('email')).'|'.$this->ip()); + } +} diff --git a/app/Http/Requests/ProfileUpdateRequest.php b/app/Http/Requests/ProfileUpdateRequest.php new file mode 100644 index 0000000..e2202dd --- /dev/null +++ b/app/Http/Requests/ProfileUpdateRequest.php @@ -0,0 +1,31 @@ +|string> + */ + public function rules(): array + { + return [ + 'name' => ['required', 'string', 'max:255'], + 'email' => [ + 'required', + 'string', + 'lowercase', + 'email', + 'max:255', + Rule::unique(User::class)->ignore($this->user()->id), + ], + ]; + } +} diff --git a/app/Models/AcademicYear.php b/app/Models/AcademicYear.php new file mode 100644 index 0000000..89e00d4 --- /dev/null +++ b/app/Models/AcademicYear.php @@ -0,0 +1,36 @@ + 'boolean', + ]; + } + + public function classes(): HasMany + { + return $this->hasMany(SchoolClass::class); + } + + public function students(): HasMany + { + return $this->hasMany(Student::class); + } +} diff --git a/app/Models/AppSetting.php b/app/Models/AppSetting.php new file mode 100644 index 0000000..1f1b6af --- /dev/null +++ b/app/Models/AppSetting.php @@ -0,0 +1,51 @@ +where('key', $key)->value('value') ?? $default; + } + + public static function setValue(string $key, mixed $value): void + { + static::query()->updateOrCreate( + ['key' => $key], + ['value' => $value] + ); + } + + public static function brandingDefaults(): array + { + return [ + 'app_name' => 'Database Kesiswaan', + 'app_short_name' => 'DK', + 'app_logo' => null, + 'app_favicon' => null, + 'public_portal_logo' => null, + ]; + } + + public static function branding(): array + { + $defaults = static::brandingDefaults(); + + foreach (array_keys($defaults) as $key) { + $defaults[$key] = static::getValue($key, $defaults[$key]); + } + + return $defaults; + } +} diff --git a/app/Models/Department.php b/app/Models/Department.php new file mode 100644 index 0000000..0b4b0aa --- /dev/null +++ b/app/Models/Department.php @@ -0,0 +1,36 @@ + 'boolean', + ]; + } + + public function classes(): HasMany + { + return $this->hasMany(SchoolClass::class); + } + + public function students(): HasMany + { + return $this->hasMany(Student::class); + } +} diff --git a/app/Models/District.php b/app/Models/District.php new file mode 100644 index 0000000..31c9e9e --- /dev/null +++ b/app/Models/District.php @@ -0,0 +1,25 @@ +belongsTo(Regency::class); + } + + public function villages(): HasMany + { + return $this->hasMany(Village::class); + } +} diff --git a/app/Models/DocumentType.php b/app/Models/DocumentType.php new file mode 100644 index 0000000..2c5ab36 --- /dev/null +++ b/app/Models/DocumentType.php @@ -0,0 +1,36 @@ + 'integer', + 'is_required' => 'boolean', + 'is_active' => 'boolean', + ]; + } + + public function studentDocuments(): HasMany + { + return $this->hasMany(StudentDocument::class); + } +} diff --git a/app/Models/Province.php b/app/Models/Province.php new file mode 100644 index 0000000..e7a8364 --- /dev/null +++ b/app/Models/Province.php @@ -0,0 +1,19 @@ +hasMany(Regency::class); + } +} diff --git a/app/Models/Regency.php b/app/Models/Regency.php new file mode 100644 index 0000000..5588351 --- /dev/null +++ b/app/Models/Regency.php @@ -0,0 +1,25 @@ +belongsTo(Province::class); + } + + public function districts(): HasMany + { + return $this->hasMany(District::class); + } +} diff --git a/app/Models/SchoolClass.php b/app/Models/SchoolClass.php new file mode 100644 index 0000000..56c1da7 --- /dev/null +++ b/app/Models/SchoolClass.php @@ -0,0 +1,53 @@ + 'integer', + 'is_active' => 'boolean', + ]; + } + + public function academicYear(): BelongsTo + { + return $this->belongsTo(AcademicYear::class); + } + + public function department(): BelongsTo + { + return $this->belongsTo(Department::class); + } + + public function students(): HasMany + { + return $this->hasMany(Student::class, 'class_id'); + } + + public function academicHistories(): HasMany + { + return $this->hasMany(StudentAcademicHistory::class, 'class_id'); + } +} diff --git a/app/Models/Student.php b/app/Models/Student.php new file mode 100644 index 0000000..ac9cc81 --- /dev/null +++ b/app/Models/Student.php @@ -0,0 +1,147 @@ +isForceDeleting()) { + $student->documents()->withTrashed()->get()->each->forceDelete(); + $student->parents()->delete(); + $student->academicHistories()->delete(); + + return; + } + + $student->documents()->get()->each->delete(); + $student->parents()->delete(); + }); + + static::restoring(function (Student $student) { + $student->documents()->onlyTrashed()->restore(); + }); + } + + protected $fillable = [ + 'student_number', + 'nisn', + 'full_name', + 'gender', + 'place_of_birth', + 'date_of_birth', + 'religion', + 'nationality', + 'family_card_number', + 'child_order', + 'number_of_siblings', + 'phone_number', + 'email', + 'address', + 'province_id', + 'regency_id', + 'district_id', + 'village_id', + 'village', + 'district', + 'city', + 'province', + 'postal_code', + 'academic_year_id', + 'department_id', + 'class_id', + 'entry_date', + 'status', + 'self_service_status', + 'self_service_last_access_at', + 'self_service_submitted_at', + 'self_service_access_code', + 'self_service_code_generated_at', + 'photo_path', + 'notes', + ]; + + protected function casts(): array + { + return [ + 'date_of_birth' => 'date', + 'entry_date' => 'date', + 'self_service_last_access_at' => 'datetime', + 'self_service_submitted_at' => 'datetime', + 'self_service_code_generated_at' => 'datetime', + 'child_order' => 'integer', + 'number_of_siblings' => 'integer', + ]; + } + + public function academicYear(): BelongsTo + { + return $this->belongsTo(AcademicYear::class); + } + + public function department(): BelongsTo + { + return $this->belongsTo(Department::class); + } + + public function classRoom(): BelongsTo + { + return $this->belongsTo(SchoolClass::class, 'class_id'); + } + + public function provinceRef(): BelongsTo + { + return $this->belongsTo(Province::class, 'province_id'); + } + + public function regencyRef(): BelongsTo + { + return $this->belongsTo(Regency::class, 'regency_id'); + } + + public function districtRef(): BelongsTo + { + return $this->belongsTo(District::class, 'district_id'); + } + + public function villageRef(): BelongsTo + { + return $this->belongsTo(Village::class, 'village_id'); + } + + public function parents(): HasMany + { + return $this->hasMany(StudentParent::class); + } + + public function documents(): HasMany + { + return $this->hasMany(StudentDocument::class); + } + + public function academicHistories(): HasMany + { + return $this->hasMany(StudentAcademicHistory::class)->latest('academic_year_id'); + } + + public function exitRecord(): HasOne + { + return $this->hasOne(StudentExit::class); + } + + public function transferRecord(): HasOne + { + return $this->hasOne(StudentTransfer::class); + } +} diff --git a/app/Models/StudentAcademicHistory.php b/app/Models/StudentAcademicHistory.php new file mode 100644 index 0000000..27fbc84 --- /dev/null +++ b/app/Models/StudentAcademicHistory.php @@ -0,0 +1,53 @@ + 'date', + 'end_date' => 'date', + 'is_current' => 'boolean', + ]; + } + + public function student(): BelongsTo + { + return $this->belongsTo(Student::class); + } + + public function academicYear(): BelongsTo + { + return $this->belongsTo(AcademicYear::class); + } + + public function department(): BelongsTo + { + return $this->belongsTo(Department::class); + } + + public function classRoom(): BelongsTo + { + return $this->belongsTo(SchoolClass::class, 'class_id'); + } +} diff --git a/app/Models/StudentDocument.php b/app/Models/StudentDocument.php new file mode 100644 index 0000000..eec2102 --- /dev/null +++ b/app/Models/StudentDocument.php @@ -0,0 +1,63 @@ + 'integer', + 'issued_date' => 'date', + 'expired_date' => 'date', + 'verified_at' => 'datetime', + ]; + } + + public function student(): BelongsTo + { + return $this->belongsTo(Student::class); + } + + public function documentType(): BelongsTo + { + return $this->belongsTo(DocumentType::class); + } + + public function uploadedBy(): BelongsTo + { + return $this->belongsTo(User::class, 'uploaded_by'); + } + + public function verifiedBy(): BelongsTo + { + return $this->belongsTo(User::class, 'verified_by'); + } +} diff --git a/app/Models/StudentExit.php b/app/Models/StudentExit.php new file mode 100644 index 0000000..0dea40f --- /dev/null +++ b/app/Models/StudentExit.php @@ -0,0 +1,58 @@ + 'date', + 'exit_date' => 'date', + ]; + } + + public function student(): BelongsTo + { + return $this->belongsTo(Student::class); + } + + public function academicYear(): BelongsTo + { + return $this->belongsTo(AcademicYear::class); + } + + public function department(): BelongsTo + { + return $this->belongsTo(Department::class); + } + + public function classRoom(): BelongsTo + { + return $this->belongsTo(SchoolClass::class, 'class_id'); + } +} diff --git a/app/Models/StudentParent.php b/app/Models/StudentParent.php new file mode 100644 index 0000000..a54e2b7 --- /dev/null +++ b/app/Models/StudentParent.php @@ -0,0 +1,38 @@ + 'integer', + 'is_alive' => 'boolean', + ]; + } + + public function student(): BelongsTo + { + return $this->belongsTo(Student::class); + } +} diff --git a/app/Models/StudentTransfer.php b/app/Models/StudentTransfer.php new file mode 100644 index 0000000..9429df8 --- /dev/null +++ b/app/Models/StudentTransfer.php @@ -0,0 +1,58 @@ + 'date', + 'transfer_date' => 'date', + ]; + } + + public function student(): BelongsTo + { + return $this->belongsTo(Student::class); + } + + public function academicYear(): BelongsTo + { + return $this->belongsTo(AcademicYear::class); + } + + public function department(): BelongsTo + { + return $this->belongsTo(Department::class); + } + + public function classRoom(): BelongsTo + { + return $this->belongsTo(SchoolClass::class, 'class_id'); + } +} diff --git a/app/Models/User.php b/app/Models/User.php new file mode 100644 index 0000000..9cec010 --- /dev/null +++ b/app/Models/User.php @@ -0,0 +1,37 @@ + */ + use HasFactory, Notifiable; + + public function isAdmin(): bool + { + return $this->role === 'admin'; + } + + /** + * Get the attributes that should be cast. + * + * @return array + */ + protected function casts(): array + { + return [ + 'email_verified_at' => 'datetime', + 'password' => 'hashed', + ]; + } +} diff --git a/app/Models/Village.php b/app/Models/Village.php new file mode 100644 index 0000000..380fb92 --- /dev/null +++ b/app/Models/Village.php @@ -0,0 +1,19 @@ +belongsTo(District::class); + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..452e6b6 --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,24 @@ +handleCommand(new ArgvInput); + +exit($status); diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..6d297f5 --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,20 @@ +withRouting( + web: __DIR__.'/../routes/web.php', + commands: __DIR__.'/../routes/console.php', + health: '/up', + ) + ->withMiddleware(function (Middleware $middleware): void { + $middleware->alias([ + 'role' => \App\Http\Middleware\EnsureUserHasRole::class, + ]); + }) + ->withExceptions(function (Exceptions $exceptions): void { + // + })->create(); diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/bootstrap/providers.php b/bootstrap/providers.php new file mode 100644 index 0000000..fc94ae6 --- /dev/null +++ b/bootstrap/providers.php @@ -0,0 +1,7 @@ +=5.0.0" + }, + "require-dev": { + "doctrine/dbal": "^4.0.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2024-02-09T16:56:22+00:00" + }, + { + "name": "composer/pcre", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<1.11.10" + }, + "require-dev": { + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", + "phpunit/phpunit": "^8 || ^9" + }, + "type": "library", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.3.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-11-12T16:29:46+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" + }, + "time": "2024-07-08T12:26:09+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^12.0 || ^13.0", + "phpstan/phpstan": "^1.12 || ^2.0", + "phpstan/phpstan-phpunit": "^1.4 || ^2.0", + "phpstan/phpstan-strict-rules": "^1.6 || ^2.0", + "phpunit/phpunit": "^8.5 || ^12.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.1.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2025-08-10T19:31:58+00:00" + }, + { + "name": "doctrine/lexer", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "doctrine/coding-standard": "^12", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/3.0.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2024-02-05T11:56:58+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/d61a8a9604ec1f8c3d150d09db6ce98b32675013", + "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013", + "shasum": "" + }, + "require": { + "php": "^8.2|^8.3|^8.4|^8.5" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.32|^2.1.31", + "phpunit/phpunit": "^8.5.48|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2025-10-31T18:51:33+00:00" + }, + { + "name": "egulias/email-validator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa", + "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^2.0 || ^3.0", + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.26" + }, + "require-dev": { + "phpunit/phpunit": "^10.2", + "vimeo/psalm": "^5.12" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2025-03-06T22:45:56+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "shasum": "" + }, + "require": { + "php": "^8.1", + "symfony/http-foundation": "^5.4|^6.4|^7.3|^8" + }, + "require-dev": { + "phpstan/phpstan": "^2", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.4.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2025-12-03T09:33:47+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.4", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/e01f4a821471308ba86aa202fed6698b6b695e3b", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:43:20+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^2.3", + "guzzlehttp/psr7": "^2.8", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-curl": "*", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2025-08-23T22:36:01+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "481557b130ef3790cf82b713667b43030dc9c957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957", + "reference": "481557b130ef3790cf82b713667b43030dc9c957", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:34:08+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.9.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/7d0ed42f28e42d61352a7a79de682e5e67fec884", + "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "0.9.0", + "jshttp/mime-db": "1.54.0.1", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.9.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2026-03-10T16:41:02+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.5", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:27:06+00:00" + }, + { + "name": "laravel/framework", + "version": "v13.4.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "912de244f88a69742b76e8a2807f6765947776da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/912de244f88a69742b76e8a2807f6765947776da", + "reference": "912de244f88a69742b76e8a2807f6765947776da", + "shasum": "" + }, + "require": { + "brick/math": "^0.14.2 || ^0.15 || ^0.16 || ^0.17", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.4", + "egulias/email-validator": "^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.3", + "guzzlehttp/guzzle": "^7.8.2", + "guzzlehttp/promises": "^2.0.3", + "guzzlehttp/uri-template": "^1.0", + "laravel/prompts": "^0.3.0", + "laravel/serializable-closure": "^2.0.10", + "league/commonmark": "^2.8.1", + "league/flysystem": "^3.25.1", + "league/flysystem-local": "^3.25.1", + "league/uri": "^7.5.1", + "monolog/monolog": "^3.0", + "nesbot/carbon": "^3.8.4", + "nunomaduro/termwind": "^2.0", + "php": "^8.3", + "psr/container": "^1.1.1 || ^2.0.1", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^7.4.0 || ^8.0.0", + "symfony/error-handler": "^7.4.0 || ^8.0.0", + "symfony/finder": "^7.4.0 || ^8.0.0", + "symfony/http-foundation": "^7.4.0 || ^8.0.0", + "symfony/http-kernel": "^7.4.0 || ^8.0.0", + "symfony/mailer": "^7.4.0 || ^8.0.0", + "symfony/mime": "^7.4.0 || ^8.0.0", + "symfony/polyfill-php84": "^1.33", + "symfony/polyfill-php85": "^1.33", + "symfony/process": "^7.4.5 || ^8.0.5", + "symfony/routing": "^7.4.0 || ^8.0.0", + "symfony/uid": "^7.4.0 || ^8.0.0", + "symfony/var-dumper": "^7.4.0 || ^8.0.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.6.1", + "voku/portable-ascii": "^2.0.2" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1 || 2.0", + "psr/log-implementation": "1.0 || 2.0 || 3.0", + "psr/simple-cache-implementation": "1.0 || 2.0 || 3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/concurrency": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/json-schema": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/process": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/reflection": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version", + "spatie/once": "*" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.322.9", + "ext-gmp": "*", + "fakerphp/faker": "^1.24", + "guzzlehttp/psr7": "^2.4", + "laravel/pint": "^1.18", + "league/flysystem-aws-s3-v3": "^3.25.1", + "league/flysystem-ftp": "^3.25.1", + "league/flysystem-path-prefixing": "^3.25.1", + "league/flysystem-read-only": "^3.25.1", + "league/flysystem-sftp-v3": "^3.25.1", + "mockery/mockery": "^1.6.10", + "opis/json-schema": "^2.4.1", + "orchestra/testbench-core": "^11.0.0", + "pda/pheanstalk": "^7.0.0 || ^8.0.0", + "php-http/discovery": "^1.15", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^11.5.50 || ^12.5.8 || ^13.0.3", + "predis/predis": "^2.3 || ^3.0", + "rector/rector": "^2.3", + "resend/resend-php": "^1.0", + "symfony/cache": "^7.4.0 || ^8.0.0", + "symfony/http-client": "^7.4.0 || ^8.0.0", + "symfony/psr-http-message-bridge": "^7.4.0 || ^8.0.0", + "symfony/translation": "^7.4.0 || ^8.0.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.322.9).", + "brianium/paratest": "Required to run tests in parallel (^7.0 || ^8.0).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", + "ext-pdo": "Required to use all database features.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0 || ^5.0 || ^6.0).", + "fakerphp/faker": "Required to generate fake data using the fake() helper (^1.23).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.25.1).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.25.1).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.25.1).", + "league/flysystem-read-only": "Required to use read-only disks (^3.25.1)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.25.1).", + "mockery/mockery": "Required to use mocking (^1.6).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^7.0 || ^8.0).", + "php-http/discovery": "Required to use PSR-7 bridging features (^1.15).", + "phpunit/phpunit": "Required to use assertions and run tests (^11.5.50 || ^12.5.8 || ^13.0.3).", + "predis/predis": "Required to use the predis connector (^2.3 || ^3.0).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0 || ^7.0).", + "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0 || ^1.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^7.4 || ^8.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.4 || ^8.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.4 || ^8.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.4 || ^8.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.4 || ^8.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.4 || ^8.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "13.0.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/functions.php", + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Filesystem/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Log/functions.php", + "src/Illuminate/Reflection/helpers.php", + "src/Illuminate/Support/functions.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/", + "src/Illuminate/Reflection/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2026-04-07T13:38:26+00:00" + }, + { + "name": "laravel/prompts", + "version": "v0.3.16", + "source": { + "type": "git", + "url": "https://github.com/laravel/prompts.git", + "reference": "11e7d5f93803a2190b00e145142cb00a33d17ad2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/prompts/zipball/11e7d5f93803a2190b00e145142cb00a33d17ad2", + "reference": "11e7d5f93803a2190b00e145142cb00a33d17ad2", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.2", + "ext-mbstring": "*", + "php": "^8.1", + "symfony/console": "^6.2|^7.0|^8.0" + }, + "conflict": { + "illuminate/console": ">=10.17.0 <10.25.0", + "laravel/framework": ">=10.17.0 <10.25.0" + }, + "require-dev": { + "illuminate/collections": "^10.0|^11.0|^12.0|^13.0", + "mockery/mockery": "^1.5", + "pestphp/pest": "^2.3|^3.4|^4.0", + "phpstan/phpstan": "^1.12.28", + "phpstan/phpstan-mockery": "^1.1.3" + }, + "suggest": { + "ext-pcntl": "Required for the spinner to be animated." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Laravel\\Prompts\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Add beautiful and user-friendly forms to your command-line applications.", + "support": { + "issues": "https://github.com/laravel/prompts/issues", + "source": "https://github.com/laravel/prompts/tree/v0.3.16" + }, + "time": "2026-03-23T14:35:33+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v2.0.11", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "d1af40ac4a6ccc12bd062a7184f63c9995a63bdd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/d1af40ac4a6ccc12bd062a7184f63c9995a63bdd", + "reference": "d1af40ac4a6ccc12bd062a7184f63c9995a63bdd", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "illuminate/support": "^10.0|^11.0|^12.0|^13.0", + "nesbot/carbon": "^2.67|^3.0", + "pestphp/pest": "^2.36|^3.0|^4.0", + "phpstan/phpstan": "^2.0", + "symfony/var-dumper": "^6.2.0|^7.0.0|^8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2026-04-07T13:32:18+00:00" + }, + { + "name": "laravel/tinker", + "version": "v3.0.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "cc74081282ba2e3dae1f0068ccb330370d24634e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/cc74081282ba2e3dae1f0068ccb330370d24634e", + "reference": "cc74081282ba2e3dae1f0068ccb330370d24634e", + "shasum": "" + }, + "require": { + "illuminate/console": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "php": "^8.1", + "psy/psysh": "^0.12.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0|^8.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5|^11.5" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^8.0|^9.0|^10.0|^11.0|^12.0|^13.0)." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v3.0.0" + }, + "time": "2026-03-17T14:53:17+00:00" + }, + { + "name": "league/commonmark", + "version": "2.8.2", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "59fb075d2101740c337c7216e3f32b36c204218b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/59fb075d2101740c337c7216e3f32b36c204218b", + "reference": "59fb075d2101740c337c7216e3f32b36c204218b", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.31.1", + "commonmark/commonmark.js": "0.31.1", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0 | ^7.0 || ^8.0", + "symfony/process": "^5.4 | ^6.0 | ^7.0 || ^8.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0 || ^8.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0 || ^6.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.9-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2026-03-19T13:16:38+00:00" + }, + { + "name": "league/config", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00" + }, + { + "name": "league/flysystem", + "version": "3.33.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "570b8871e0ce693764434b29154c54b434905350" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/570b8871e0ce693764434b29154c54b434905350", + "reference": "570b8871e0ce693764434b29154c54b434905350", + "shasum": "" + }, + "require": { + "league/flysystem-local": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "async-aws/core": "<1.19.0", + "async-aws/s3": "<1.14.0", + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5 || ^2.0", + "async-aws/simple-s3": "^1.1 || ^2.0", + "aws/aws-sdk-php": "^3.295.10", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-mongodb": "^1.3|^2", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "guzzlehttp/psr7": "^2.6", + "microsoft/azure-storage-blob": "^1.1", + "mongodb/mongodb": "^1.2|^2", + "phpseclib/phpseclib": "^3.0.36", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.11|^10.0", + "sabre/dav": "^4.6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.33.0" + }, + "time": "2026-03-25T07:59:30+00:00" + }, + { + "name": "league/flysystem-local", + "version": "3.31.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-local.git", + "reference": "2f669db18a4c20c755c2bb7d3a7b0b2340488079" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/2f669db18a4c20c755c2bb7d3a7b0b2340488079", + "reference": "2f669db18a4c20c755c2bb7d3a7b0b2340488079", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/flysystem": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Local\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Local filesystem adapter for Flysystem.", + "keywords": [ + "Flysystem", + "file", + "files", + "filesystem", + "local" + ], + "support": { + "source": "https://github.com/thephpleague/flysystem-local/tree/3.31.0" + }, + "time": "2026-01-23T15:30:45+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.16.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/2d6702ff215bf922936ccc1ad31007edc76451b9", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.16.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2024-09-21T08:32:55+00:00" + }, + { + "name": "league/uri", + "version": "7.8.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri.git", + "reference": "08cf38e3924d4f56238125547b5720496fac8fd4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/08cf38e3924d4f56238125547b5720496fac8fd4", + "reference": "08cf38e3924d4f56238125547b5720496fac8fd4", + "shasum": "" + }, + "require": { + "league/uri-interfaces": "^7.8.1", + "php": "^8.1", + "psr/http-factory": "^1" + }, + "conflict": { + "league/uri-schemes": "^1.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-dom": "to convert the URI into an HTML anchor tag", + "ext-fileinfo": "to create Data URI from file contennts", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "ext-uri": "to use the PHP native URI class", + "jeremykendall/php-domain-parser": "to further parse the URI host and resolve its Public Suffix and Top Level Domain", + "league/uri-components": "to provide additional tools to manipulate URI objects components", + "league/uri-polyfill": "to backport the PHP URI extension for older versions of PHP", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "URI manipulation library", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "URN", + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "middleware", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc2141", + "rfc3986", + "rfc3987", + "rfc6570", + "rfc8141", + "uri", + "uri-template", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri/tree/7.8.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2026-03-15T20:22:25+00:00" + }, + { + "name": "league/uri-interfaces", + "version": "7.8.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri-interfaces.git", + "reference": "85d5c77c5d6d3af6c54db4a78246364908f3c928" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/85d5c77c5d6d3af6c54db4a78246364908f3c928", + "reference": "85d5c77c5d6d3af6c54db4a78246364908f3c928", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^8.1", + "psr/http-message": "^1.1 || ^2.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "Common tools for parsing and resolving RFC3987/RFC3986 URI", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.8.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2026-03-08T20:05:35+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "682f1098a8fddbaf43edac2306a691c7ad508ec5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/682f1098a8fddbaf43edac2306a691c7ad508ec5", + "reference": "682f1098a8fddbaf43edac2306a691c7ad508ec5", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "ext-zlib": "*", + "php-64bit": "^8.3" + }, + "require-dev": { + "brianium/paratest": "^7.7", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.86", + "guzzlehttp/guzzle": "^7.5", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.5", + "phpunit/phpunit": "^12.0", + "vimeo/psalm": "^6.0" + }, + "suggest": { + "guzzlehttp/psr7": "^2.4", + "psr/http-message": "^2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/3.2.1" + }, + "funding": [ + { + "url": "https://github.com/maennchen", + "type": "github" + } + ], + "time": "2025-12-10T09:58:31+00:00" + }, + { + "name": "markbaker/complex", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPComplex.git", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Complex\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@lange.demon.co.uk" + } + ], + "description": "PHP Class for working with complex numbers", + "homepage": "https://github.com/MarkBaker/PHPComplex", + "keywords": [ + "complex", + "mathematics" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/3.0.2" + }, + "time": "2022-12-06T16:21:08+00:00" + }, + { + "name": "markbaker/matrix", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPMatrix.git", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/728434227fe21be27ff6d86621a1b13107a2562c", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpdocumentor/phpdocumentor": "2.*", + "phploc/phploc": "^4.0", + "phpmd/phpmd": "2.*", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "sebastian/phpcpd": "^4.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Matrix\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@demon-angel.eu" + } + ], + "description": "PHP Class for working with matrices", + "homepage": "https://github.com/MarkBaker/PHPMatrix", + "keywords": [ + "mathematics", + "matrix", + "vector" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/3.0.1" + }, + "time": "2022-12-02T22:17:43+00:00" + }, + { + "name": "monolog/monolog", + "version": "3.10.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/b321dd6749f0bf7189444158a3ce785cc16d69b0", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8 || ^2.0", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "php-console/php-console": "^3.1.8", + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^10.5.17 || ^11.0.7", + "predis/predis": "^1.1 || ^2", + "rollbar/rollbar": "^4.0", + "ruflin/elastica": "^7 || ^8", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/3.10.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2026-01-02T08:56:05+00:00" + }, + { + "name": "nesbot/carbon", + "version": "3.11.4", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon.git", + "reference": "e890471a3494740f7d9326d72ce6a8c559ffee60" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/e890471a3494740f7d9326d72ce6a8c559ffee60", + "reference": "e890471a3494740f7d9326d72ce6a8c559ffee60", + "shasum": "" + }, + "require": { + "carbonphp/carbon-doctrine-types": "<100.0", + "ext-json": "*", + "php": "^8.1", + "psr/clock": "^1.0", + "symfony/clock": "^6.3.12 || ^7.0 || ^8.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0 || ^8.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^3.6.3 || ^4.0", + "doctrine/orm": "^2.15.2 || ^3.0", + "friendsofphp/php-cs-fixer": "^v3.87.1", + "kylekatarnls/multi-tester": "^2.5.3", + "phpmd/phpmd": "^2.15.0", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.1.22", + "phpunit/phpunit": "^10.5.53", + "squizlabs/php_codesniffer": "^3.13.4 || ^4.0.0" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev", + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbonphp.github.io/carbon/", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbonphp.github.io/carbon/guide/getting-started/introduction.html", + "issues": "https://github.com/CarbonPHP/carbon/issues", + "source": "https://github.com/CarbonPHP/carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2026-04-07T09:57:54+00:00" + }, + { + "name": "nette/schema", + "version": "v1.3.5", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/f0ab1a3cda782dbc5da270d28545236aa80c4002", + "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0", + "php": "8.1 - 8.5" + }, + "require-dev": { + "nette/phpstan-rules": "^1.0", + "nette/tester": "^2.6", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.1.39@stable", + "tracy/tracy": "^2.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.3.5" + }, + "time": "2026-02-23T03:47:12+00:00" + }, + { + "name": "nette/utils", + "version": "v4.1.3", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "bb3ea637e3d131d72acc033cfc2746ee893349fe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/bb3ea637e3d131d72acc033cfc2746ee893349fe", + "reference": "bb3ea637e3d131d72acc033cfc2746ee893349fe", + "shasum": "" + }, + "require": { + "php": "8.2 - 8.5" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "^1.2", + "nette/phpstan-rules": "^1.0", + "nette/tester": "^2.5", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.1@stable", + "tracy/tracy": "^2.9" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.1-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v4.1.3" + }, + "time": "2026-02-13T03:05:33+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.7.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0" + }, + "time": "2025-12-06T11:56:16+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "712a31b768f5daea284c2169a7d227031001b9a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/712a31b768f5daea284c2169a7d227031001b9a8", + "reference": "712a31b768f5daea284c2169a7d227031001b9a8", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.2", + "symfony/console": "^7.4.4 || ^8.0.4" + }, + "require-dev": { + "illuminate/console": "^11.47.0", + "laravel/pint": "^1.27.1", + "mockery/mockery": "^1.6.12", + "pestphp/pest": "^2.36.0 || ^3.8.4 || ^4.3.2", + "phpstan/phpstan": "^1.12.32", + "phpstan/phpstan-strict-rules": "^1.6.2", + "symfony/var-dumper": "^7.3.5 || ^8.0.4", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "It's like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v2.4.0" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2026-02-16T23:10:27+00:00" + }, + { + "name": "phpoffice/phpspreadsheet", + "version": "2.4.4", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PhpSpreadsheet.git", + "reference": "78bf6f0b4945ab31f1935741324ef3f0bf59a6fe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/78bf6f0b4945ab31f1935741324ef3f0bf59a6fe", + "reference": "78bf6f0b4945ab31f1935741324ef3f0bf59a6fe", + "shasum": "" + }, + "require": { + "composer/pcre": "^1 || ^2 || ^3", + "ext-ctype": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-gd": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "ext-xmlreader": "*", + "ext-xmlwriter": "*", + "ext-zip": "*", + "ext-zlib": "*", + "maennchen/zipstream-php": "^2.1 || ^3.0", + "markbaker/complex": "^3.0", + "markbaker/matrix": "^3.0", + "php": ">=8.1.0 <8.6.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-main", + "dompdf/dompdf": "^2.0 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.2", + "mitoteam/jpgraph": "^10.5", + "mpdf/mpdf": "^8.1.1", + "phpcompatibility/php-compatibility": "^9.3", + "phpstan/phpstan": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^9.6 || ^10.5", + "squizlabs/php_codesniffer": "^3.7", + "tecnickcom/tcpdf": "^6.5" + }, + "suggest": { + "dompdf/dompdf": "Option for rendering PDF with PDF Writer", + "ext-intl": "PHP Internationalization Functions, required for NumberFormatter Wizard", + "mitoteam/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers", + "mpdf/mpdf": "Option for rendering PDF with PDF Writer", + "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer" + }, + "type": "library", + "autoload": { + "psr-4": { + "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "https://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker", + "homepage": "https://markbakeruk.net" + }, + { + "name": "Franck Lefevre", + "homepage": "https://rootslabs.net" + }, + { + "name": "Erik Tilt" + }, + { + "name": "Adrien Crivelli" + }, + { + "name": "Owen Leibman" + } + ], + "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "https://github.com/PHPOffice/PhpSpreadsheet", + "keywords": [ + "OpenXML", + "excel", + "gnumeric", + "ods", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/2.4.4" + }, + "time": "2026-04-10T03:20:38+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.5", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/75365b91986c2405cf5e1e012c5595cd487a98be", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25 || ^10.5.53 || ^11.5.34" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:41:33+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.12.22", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "3be75d5b9244936dd4ac62ade2bfb004d13acf0f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/3be75d5b9244936dd4ac62ade2bfb004d13acf0f", + "reference": "3be75d5b9244936dd4ac62ade2bfb004d13acf0f", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2", + "composer/class-map-generator": "^1.6" + }, + "suggest": { + "composer/class-map-generator": "Improved tab completion performance with better class discovery.", + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": false, + "forward-command": false + }, + "branch-alias": { + "dev-main": "0.12.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "https://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.12.22" + }, + "time": "2026-03-22T23:03:24+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/344572933ad0181accbf4ba763e85a0306a8c5e2", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.45", + "fakerphp/faker": "^1.24", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^2.1", + "mockery/mockery": "^1.6", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpspec/prophecy-phpunit": "^2.3", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^10.5", + "ramsey/coding-standard": "^2.3", + "ramsey/conventional-commits": "^1.6", + "roave/security-advisories": "dev-latest" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.1.1" + }, + "time": "2025-03-22T05:38:12+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.9.2", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "8429c78ca35a09f27565311b98101e2826affde0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/8429c78ca35a09f27565311b98101e2826affde0", + "reference": "8429c78ca35a09f27565311b98101e2826affde0", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.16 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.25", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "ergebnis/composer-normalize": "^2.47", + "mockery/mockery": "^1.6", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.6", + "php-mock/php-mock-mockery": "^1.5", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpbench/phpbench": "^1.2.14", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6", + "slevomat/coding-standard": "^8.18", + "squizlabs/php_codesniffer": "^3.13" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.9.2" + }, + "time": "2025-12-14T04:43:48+00:00" + }, + { + "name": "realrashid/sweet-alert", + "version": "v7.3.2", + "source": { + "type": "git", + "url": "https://github.com/realrashid/sweet-alert.git", + "reference": "72754d27de400e5b177c4e066aca8484b9f8bbbe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/realrashid/sweet-alert/zipball/72754d27de400e5b177c4e066aca8484b9f8bbbe", + "reference": "72754d27de400e5b177c4e066aca8484b9f8bbbe", + "shasum": "" + }, + "require": { + "laravel/framework": "^5.6|^6.0|^7.0|^8.0|^9.0|^9.11|9.14.*|^10.0|^11.0|^12.0|^13.0", + "php": "^7.2|^8.0|^8.1|^8.2|^8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5", + "symfony/thanks": "^1.0" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Alert": "RealRashid\\SweetAlert\\Facades\\Alert" + }, + "providers": [ + "RealRashid\\SweetAlert\\SweetAlertServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "RealRashid\\SweetAlert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Rashid Ali", + "email": "realrashid05@gmail.com", + "homepage": "https://realrashid.com", + "role": "Developer" + } + ], + "description": "Laravel Sweet Alert Is A Package For Laravel Provides An Easy Way To Display Alert Messages Using The SweetAlert2 Library.", + "homepage": "https://github.com/realrashid/sweet-alert", + "keywords": [ + "alert", + "laravel", + "laravel-package", + "notifier", + "noty", + "sweet-alert", + "sweet-alert2", + "toast" + ], + "support": { + "docs": "https://realrashid.github.io/sweet-alert/", + "email": "realrashid05@gmail.com", + "issues": "https://github.com/realrashid/sweet-alert/issues", + "source": "https://github.com/realrashid/sweet-alert" + }, + "funding": [ + { + "url": "https://ko-fi.com/realrashid", + "type": "custom" + }, + { + "url": "https://www.buymeacoffee.com/realrashid", + "type": "custom" + }, + { + "url": "https://issuehunt.io/r/realrashid", + "type": "issuehunt" + }, + { + "url": "https://tidelift.com/funding/github/packagist/realrashid/sweet-alert", + "type": "tidelift" + } + ], + "time": "2026-03-29T14:20:34+00:00" + }, + { + "name": "symfony/clock", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/clock.git", + "reference": "674fa3b98e21531dd040e613479f5f6fa8f32111" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/clock/zipball/674fa3b98e21531dd040e613479f5f6fa8f32111", + "reference": "674fa3b98e21531dd040e613479f5f6fa8f32111", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/clock": "^1.0", + "symfony/polyfill-php83": "^1.28" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/now.php" + ], + "psr-4": { + "Symfony\\Component\\Clock\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Decouples applications from the system clock", + "homepage": "https://symfony.com", + "keywords": [ + "clock", + "psr20", + "time" + ], + "support": { + "source": "https://github.com/symfony/clock/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/console", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "1e92e39c51f95b88e3d66fa2d9f06d1fb45dd707" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/1e92e39c51f95b88e3d66fa2d9f06d1fb45dd707", + "reference": "1e92e39c51f95b88e3d66fa2d9f06d1fb45dd707", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^7.2|^8.0" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/dotenv": "<6.4", + "symfony/event-dispatcher": "<6.4", + "symfony/lock": "<6.4", + "symfony/process": "<6.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/event-dispatcher": "^6.4|^7.0|^8.0", + "symfony/http-foundation": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/lock": "^6.4|^7.0|^8.0", + "symfony/messenger": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/stopwatch": "^6.4|^7.0|^8.0", + "symfony/var-dumper": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command-line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T13:54:39+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "b055f228a4178a1d6774909903905e3475f3eac8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/b055f228a4178a1d6774909903905e3475f3eac8", + "reference": "b055f228a4178a1d6774909903905e3475f3eac8", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "8dd79d8af777ee6cba2fd4d98da6ffb839f3c0fa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/8dd79d8af777ee6cba2fd4d98da6ffb839f3c0fa", + "reference": "8dd79d8af777ee6cba2fd4d98da6ffb839f3c0fa", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/polyfill-php85": "^1.32", + "symfony/var-dumper": "^6.4|^7.0|^8.0" + }, + "conflict": { + "symfony/deprecation-contracts": "<2.5", + "symfony/http-kernel": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/serializer": "^6.4|^7.0|^8.0", + "symfony/webpack-encore-bundle": "^1.0|^2.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "f57b899fa736fd71121168ef268f23c206083f0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f57b899fa736fd71121168ef268f23c206083f0a", + "reference": "f57b899fa736fd71121168ef268f23c206083f0a", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/event-dispatcher-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/error-handler": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/framework-bundle": "^6.4|^7.0|^8.0", + "symfony/http-foundation": "^6.4|^7.0|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T13:54:39+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "59eb412e93815df44f05f342958efa9f46b1e586" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586", + "reference": "59eb412e93815df44f05f342958efa9f46b1e586", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/event-dispatcher": "^1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/finder", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "e0be088d22278583a82da281886e8c3592fbf149" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/e0be088d22278583a82da281886e8c3592fbf149", + "reference": "e0be088d22278583a82da281886e8c3592fbf149", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "symfony/filesystem": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "9381209597ec66c25be154cbf2289076e64d1eab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/9381209597ec66c25be154cbf2289076e64d1eab", + "reference": "9381209597ec66c25be154cbf2289076e64d1eab", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "^1.1" + }, + "conflict": { + "doctrine/dbal": "<3.6", + "symfony/cache": "<6.4.12|>=7.0,<7.1.5" + }, + "require-dev": { + "doctrine/dbal": "^3.6|^4", + "predis/predis": "^1.1|^2.0", + "symfony/cache": "^6.4.12|^7.1.5|^8.0", + "symfony/clock": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/mime": "^6.4|^7.0|^8.0", + "symfony/rate-limiter": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "017e76ad089bac281553389269e259e155935e1a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/017e76ad089bac281553389269e259e155935e1a", + "reference": "017e76ad089bac281553389269e259e155935e1a", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/error-handler": "^6.4|^7.0|^8.0", + "symfony/event-dispatcher": "^7.3|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/browser-kit": "<6.4", + "symfony/cache": "<6.4", + "symfony/config": "<6.4", + "symfony/console": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/doctrine-bridge": "<6.4", + "symfony/flex": "<2.10", + "symfony/form": "<6.4", + "symfony/http-client": "<6.4", + "symfony/http-client-contracts": "<2.5", + "symfony/mailer": "<6.4", + "symfony/messenger": "<6.4", + "symfony/translation": "<6.4", + "symfony/translation-contracts": "<2.5", + "symfony/twig-bridge": "<6.4", + "symfony/validator": "<6.4", + "symfony/var-dumper": "<6.4", + "twig/twig": "<3.12" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^6.4|^7.0|^8.0", + "symfony/clock": "^6.4|^7.0|^8.0", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/css-selector": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4.1|^7.0.1|^8.0", + "symfony/dom-crawler": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/finder": "^6.4|^7.0|^8.0", + "symfony/http-client-contracts": "^2.5|^3", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/property-access": "^7.1|^8.0", + "symfony/routing": "^6.4|^7.0|^8.0", + "symfony/serializer": "^7.1|^8.0", + "symfony/stopwatch": "^6.4|^7.0|^8.0", + "symfony/translation": "^6.4|^7.0|^8.0", + "symfony/translation-contracts": "^2.5|^3", + "symfony/uid": "^6.4|^7.0|^8.0", + "symfony/validator": "^6.4|^7.0|^8.0", + "symfony/var-dumper": "^6.4|^7.0|^8.0", + "symfony/var-exporter": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-31T20:57:01+00:00" + }, + { + "name": "symfony/mailer", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "f6ea532250b476bfc1b56699b388a1bdbf168f62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/f6ea532250b476bfc1b56699b388a1bdbf168f62", + "reference": "f6ea532250b476bfc1b56699b388a1bdbf168f62", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.2", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^6.4|^7.0|^8.0", + "symfony/mime": "^7.2|^8.0", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/messenger": "<6.4", + "symfony/mime": "<6.4", + "symfony/twig-bridge": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-client": "^6.4|^7.0|^8.0", + "symfony/messenger": "^6.4|^7.0|^8.0", + "symfony/twig-bridge": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/mime", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "6df02f99998081032da3407a8d6c4e1dcb5d4379" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/6df02f99998081032da3407a8d6c4e1dcb5d4379", + "reference": "6df02f99998081032da3407a8d6c4e1dcb5d4379", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<5.2|>=7", + "phpdocumentor/type-resolver": "<1.5.1", + "symfony/mailer": "<6.4", + "symfony/serializer": "<6.4.3|>7.0,<7.0.3" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1|^4", + "league/html-to-markdown": "^5.0", + "phpdocumentor/reflection-docblock": "^5.2|^6.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/property-access": "^6.4|^7.0|^8.0", + "symfony/property-info": "^6.4|^7.0|^8.0", + "symfony/serializer": "^6.4.3|^7.0.3|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T14:11:46+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-27T09:58:17+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "symfony/polyfill-intl-normalizer": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-10T14:38:51+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "3833d7255cc303546435cb650316bff708a1c75c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-23T08:48:59+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-02T08:10:11+00:00" + }, + { + "name": "symfony/polyfill-php83", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php83.git", + "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/17f6f9a6b1735c0f163024d959f700cfbc5155e5", + "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php83\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php83/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-07-08T02:45:35+00:00" + }, + { + "name": "symfony/polyfill-php84", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "d8ced4d875142b6a7426000426b8abc631d6b191" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191", + "reference": "d8ced4d875142b6a7426000426b8abc631d6b191", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php84\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-24T13:30:11+00:00" + }, + { + "name": "symfony/polyfill-php85", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php85.git", + "reference": "d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91", + "reference": "d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php85\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php85/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-23T16:12:55+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/process", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "60f19cd3badc8de688421e21e4305eba50f8089a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/60f19cd3badc8de688421e21e4305eba50f8089a", + "reference": "60f19cd3badc8de688421e21e4305eba50f8089a", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/routing", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "9608de9873ec86e754fb6c0a0fa7e5f1a960eb6b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/9608de9873ec86e754fb6c0a0fa7e5f1a960eb6b", + "reference": "9608de9873ec86e754fb6c0a0fa7e5f1a960eb6b", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/config": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/yaml": "<6.4" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/http-foundation": "^6.4|^7.0|^8.0", + "symfony/yaml": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.6.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43", + "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.6.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-07-15T11:30:57+00:00" + }, + { + "name": "symfony/string", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "114ac57257d75df748eda23dd003878080b8e688" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/114ac57257d75df748eda23dd003878080b8e688", + "reference": "114ac57257d75df748eda23dd003878080b8e688", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3.0", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.33", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.5" + }, + "require-dev": { + "symfony/emoji": "^7.1|^8.0", + "symfony/http-client": "^6.4|^7.0|^8.0", + "symfony/intl": "^6.4|^7.0|^8.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/translation", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "33600f8489485425bfcddd0d983391038d3422e7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/33600f8489485425bfcddd0d983391038d3422e7", + "reference": "33600f8489485425bfcddd0d983391038d3422e7", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.5.3|^3.3" + }, + "conflict": { + "nikic/php-parser": "<5.0", + "symfony/config": "<6.4", + "symfony/console": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/service-contracts": "<2.5", + "symfony/twig-bundle": "<6.4", + "symfony/yaml": "<6.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^5.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/finder": "^6.4|^7.0|^8.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/intl": "^6.4|^7.0|^8.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^6.4|^7.0|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.6.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "65a8bc82080447fae78373aa10f8d13b38338977" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/65a8bc82080447fae78373aa10f8d13b38338977", + "reference": "65a8bc82080447fae78373aa10f8d13b38338977", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.6.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-07-15T13:41:35+00:00" + }, + { + "name": "symfony/uid", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "6883ebdf7bf6a12b37519dbc0df62b0222401b56" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/6883ebdf7bf6a12b37519dbc0df62b0222401b56", + "reference": "6883ebdf7bf6a12b37519dbc0df62b0222401b56", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "9510c3966f749a1d1ff0059e1eabef6cc621e7fd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/9510c3966f749a1d1ff0059e1eabef6cc621e7fd", + "reference": "9510c3966f749a1d1ff0059e1eabef6cc621e7fd", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/uid": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T13:44:50+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "f0292ccf0ec75843d65027214426b6b163b48b41" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/f0292ccf0ec75843d65027214426b6b163b48b41", + "reference": "f0292ccf0ec75843d65027214426b6b163b48b41", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^7.4 || ^8.0", + "symfony/css-selector": "^5.4 || ^6.0 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.4.0" + }, + "time": "2025-12-02T11:56:42+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.6.3", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "955e7815d677a3eaa7075231212f2110983adecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/955e7815d677a3eaa7075231212f2110983adecc", + "reference": "955e7815d677a3eaa7075231212f2110983adecc", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.1.4", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5", + "symfony/polyfill-ctype": "^1.26", + "symfony/polyfill-mbstring": "^1.26", + "symfony/polyfill-php80": "^1.26" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-filter": "*", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "5.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:49:13+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "https://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.3" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2024-11-21T01:49:47+00:00" + } + ], + "packages-dev": [ + { + "name": "fakerphp/faker", + "version": "v1.24.1", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" + }, + "time": "2024-11-21T13:46:39+00:00" + }, + { + "name": "filp/whoops", + "version": "2.18.4", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.18.4" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2025-08-08T12:00:00+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.1.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0 || ^3.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.1.1" + }, + "time": "2025-04-30T06:54:44+00:00" + }, + { + "name": "laravel/breeze", + "version": "v2.4.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/breeze.git", + "reference": "28cefeaf6af20177ddf5cc7b93e87e4ad79d533f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/breeze/zipball/28cefeaf6af20177ddf5cc7b93e87e4ad79d533f", + "reference": "28cefeaf6af20177ddf5cc7b93e87e4ad79d533f", + "shasum": "" + }, + "require": { + "illuminate/console": "^11.0|^12.0|^13.0", + "illuminate/filesystem": "^11.0|^12.0|^13.0", + "illuminate/support": "^11.0|^12.0|^13.0", + "illuminate/validation": "^11.0|^12.0|^13.0", + "php": "^8.2.0", + "symfony/console": "^7.0|^8.0" + }, + "require-dev": { + "laravel/framework": "^11.0|^12.0|^13.0", + "orchestra/testbench-core": "^9.0|^10.0|^11.0", + "phpstan/phpstan": "^2.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Breeze\\BreezeServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Breeze\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Minimal Laravel authentication scaffolding with Blade and Tailwind.", + "keywords": [ + "auth", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/breeze/issues", + "source": "https://github.com/laravel/breeze" + }, + "time": "2026-03-10T19:59:01+00:00" + }, + { + "name": "laravel/pail", + "version": "v1.2.6", + "source": { + "type": "git", + "url": "https://github.com/laravel/pail.git", + "reference": "aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pail/zipball/aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf", + "reference": "aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "illuminate/console": "^10.24|^11.0|^12.0|^13.0", + "illuminate/contracts": "^10.24|^11.0|^12.0|^13.0", + "illuminate/log": "^10.24|^11.0|^12.0|^13.0", + "illuminate/process": "^10.24|^11.0|^12.0|^13.0", + "illuminate/support": "^10.24|^11.0|^12.0|^13.0", + "nunomaduro/termwind": "^1.15|^2.0", + "php": "^8.2", + "symfony/console": "^6.0|^7.0|^8.0" + }, + "require-dev": { + "laravel/framework": "^10.24|^11.0|^12.0|^13.0", + "laravel/pint": "^1.13", + "orchestra/testbench-core": "^8.13|^9.17|^10.8|^11.0", + "pestphp/pest": "^2.20|^3.0|^4.0", + "pestphp/pest-plugin-type-coverage": "^2.3|^3.0|^4.0", + "phpstan/phpstan": "^1.12.27", + "symfony/var-dumper": "^6.3|^7.0|^8.0", + "symfony/yaml": "^6.3|^7.0|^8.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Pail\\PailServiceProvider" + ] + }, + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Pail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Easily delve into your Laravel application's log files directly from the command line.", + "homepage": "https://github.com/laravel/pail", + "keywords": [ + "dev", + "laravel", + "logs", + "php", + "tail" + ], + "support": { + "issues": "https://github.com/laravel/pail/issues", + "source": "https://github.com/laravel/pail" + }, + "time": "2026-02-09T13:44:54+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "bdec963f53172c5e36330f3a400604c69bf02d39" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/bdec963f53172c5e36330f3a400604c69bf02d39", + "reference": "bdec963f53172c5e36330f3a400604c69bf02d39", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.2.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.94.2", + "illuminate/view": "^12.54.1", + "larastan/larastan": "^3.9.3", + "laravel-zero/framework": "^12.0.5", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^2.4.0", + "pestphp/pest": "^3.8.6", + "shipfastlabs/agent-detector": "^1.1.0" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "dev", + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2026-03-12T15:51:39+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.6.12", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": ">=7.3" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" + }, + "type": "library", + "autoload": { + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "https://github.com/padraic", + "role": "Author" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "docs": "https://docs.mockery.io/", + "issues": "https://github.com/mockery/mockery/issues", + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" + }, + "time": "2024-05-16T03:13:13+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.13.4", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2025-08-01T08:46:24+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v8.9.3", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "b0d8ab95b29c3189aeeb902d81215231df4c1b64" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/b0d8ab95b29c3189aeeb902d81215231df4c1b64", + "reference": "b0d8ab95b29c3189aeeb902d81215231df4c1b64", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.18.4", + "nunomaduro/termwind": "^2.4.0", + "php": "^8.2.0", + "symfony/console": "^7.4.8 || ^8.0.4" + }, + "conflict": { + "laravel/framework": "<11.48.0 || >=14.0.0", + "phpunit/phpunit": "<11.5.50 || >=14.0.0" + }, + "require-dev": { + "brianium/paratest": "^7.8.5", + "larastan/larastan": "^3.9.3", + "laravel/framework": "^11.48.0 || ^12.56.0 || ^13.2.0", + "laravel/pint": "^1.29.0", + "orchestra/testbench-core": "^9.12.0 || ^10.12.1 || ^11.0.0", + "pestphp/pest": "^3.8.5 || ^4.4.3 || ^5.0.0", + "sebastian/environment": "^7.2.1 || ^8.0.4 || ^9.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] + }, + "branch-alias": { + "dev-8.x": "8.x-dev" + } + }, + "autoload": { + "files": [ + "./src/Adapters/Phpunit/Autoload.php" + ], + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "dev", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2026-04-06T19:25:53+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "12.5.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "b015312f28dd75b75d3422ca37dff2cd1a565e8d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/b015312f28dd75b75d3422ca37dff2cd1a565e8d", + "reference": "b015312f28dd75b75d3422ca37dff2cd1a565e8d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^5.7.0", + "php": ">=8.3", + "phpunit/php-file-iterator": "^6.0", + "phpunit/php-text-template": "^5.0", + "sebastian/complexity": "^5.0", + "sebastian/environment": "^8.0.3", + "sebastian/lines-of-code": "^4.0", + "sebastian/version": "^6.0", + "theseer/tokenizer": "^2.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.1" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", + "type": "tidelift" + } + ], + "time": "2026-02-06T06:01:44+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "6.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5", + "reference": "3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" + } + ], + "time": "2026-02-02T14:04:18+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:58+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/e1367a453f0eda562eedb4f659e13aa900d66c53", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:16+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "8.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:38+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "12.5.17", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "85b62adab1a340982df64e66daa4a4435eb5723b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/85b62adab1a340982df64e66daa4a4435eb5723b", + "reference": "85b62adab1a340982df64e66daa4a4435eb5723b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.13.4", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.3", + "phpunit/php-code-coverage": "^12.5.3", + "phpunit/php-file-iterator": "^6.0.1", + "phpunit/php-invoker": "^6.0.0", + "phpunit/php-text-template": "^5.0.0", + "phpunit/php-timer": "^8.0.0", + "sebastian/cli-parser": "^4.2.0", + "sebastian/comparator": "^7.1.4", + "sebastian/diff": "^7.0.0", + "sebastian/environment": "^8.0.4", + "sebastian/exporter": "^7.0.2", + "sebastian/global-state": "^8.0.2", + "sebastian/object-enumerator": "^7.0.0", + "sebastian/recursion-context": "^7.0.1", + "sebastian/type": "^6.0.3", + "sebastian/version": "^6.0.0", + "staabm/side-effects-detector": "^1.0.5" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.17" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsoring.html", + "type": "other" + } + ], + "time": "2026-04-08T03:04:19+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "4.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "90f41072d220e5c40df6e8635f5dafba2d9d4d04" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/90f41072d220e5c40df6e8635f5dafba2d9d4d04", + "reference": "90f41072d220e5c40df6e8635f5dafba2d9d4d04", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", + "type": "tidelift" + } + ], + "time": "2025-09-14T09:36:45+00:00" + }, + { + "name": "sebastian/comparator", + "version": "7.1.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "c284f55811f43d555e51e8e5c166ac40d3e33c63" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/c284f55811f43d555e51e8e5c166ac40d3e33c63", + "reference": "c284f55811f43d555e51e8e5c166ac40d3e33c63", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/diff": "^7.0", + "sebastian/exporter": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.2" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" + } + ], + "time": "2026-04-08T04:43:00+00:00" + }, + { + "name": "sebastian/complexity", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0", + "symfony/process": "^7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:46+00:00" + }, + { + "name": "sebastian/environment", + "version": "8.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "7b8842c2d8e85d0c3a5831236bf5869af6ab2a11" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/7b8842c2d8e85d0c3a5831236bf5869af6ab2a11", + "reference": "7b8842c2d8e85d0c3a5831236bf5869af6ab2a11", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/8.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", + "type": "tidelift" + } + ], + "time": "2026-03-15T07:05:40+00:00" + }, + { + "name": "sebastian/exporter", + "version": "7.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "016951ae10980765e4e7aee491eb288c64e505b7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/016951ae10980765e4e7aee491eb288c64e505b7", + "reference": "016951ae10980765e4e7aee491eb288c64e505b7", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" + } + ], + "time": "2025-09-24T06:16:11+00:00" + }, + { + "name": "sebastian/global-state", + "version": "8.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/ef1377171613d09edd25b7816f05be8313f9115d", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" + } + ], + "time": "2025-08-29T11:29:25+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:28+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:48+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:17+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" + } + ], + "time": "2025-08-13T04:44:59+00:00" + }, + { + "name": "sebastian/type", + "version": "6.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/e549163b9760b8f71f191651d22acf32d56d6d4d", + "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/6.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/type", + "type": "tidelift" + } + ], + "time": "2025-08-09T06:57:12+00:00" + }, + { + "name": "sebastian/version", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/3e6ccf7657d4f0a59200564b08cead899313b53c", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T05:00:38+00:00" + }, + { + "name": "staabm/side-effects-detector", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^8.1" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2025-12-08T11:19:18+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.3" + }, + "platform-dev": [], + "plugin-api-version": "2.6.0" +} diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..423eed5 --- /dev/null +++ b/config/app.php @@ -0,0 +1,126 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | the application so that it's available within Artisan commands. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. The timezone + | is set to "UTC" by default as it is suitable for most use cases. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by Laravel's translation / localization methods. This option can be + | set to any locale for which you plan to have translation strings. + | + */ + + 'locale' => env('APP_LOCALE', 'en'), + + 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), + + 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is utilized by Laravel's encryption services and should be set + | to a random, 32 character string to ensure that all encrypted values + | are secure. You should do this prior to deploying the application. + | + */ + + 'cipher' => 'AES-256-CBC', + + 'key' => env('APP_KEY'), + + 'previous_keys' => [ + ...array_filter( + explode(',', (string) env('APP_PREVIOUS_KEYS', '')) + ), + ], + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), + 'store' => env('APP_MAINTENANCE_STORE', 'database'), + ], + +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..d7568ff --- /dev/null +++ b/config/auth.php @@ -0,0 +1,117 @@ + [ + 'guard' => env('AUTH_GUARD', 'web'), + 'passwords' => env('AUTH_PASSWORD_BROKER', 'users'), + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | which utilizes session storage plus the Eloquent user provider. + | + | All authentication guards have a user provider, which defines how the + | users are actually retrieved out of your database or other storage + | system used by the application. Typically, Eloquent is utilized. + | + | Supported: "session" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication guards have a user provider, which defines how the + | users are actually retrieved out of your database or other storage + | system used by the application. Typically, Eloquent is utilized. + | + | If you have multiple user tables or models you may configure multiple + | providers to represent the model / table. These providers may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => env('AUTH_MODEL', User::class), + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | These configuration options specify the behavior of Laravel's password + | reset functionality, including the table utilized for token storage + | and the user provider that is invoked to actually retrieve users. + | + | The expiry time is the number of minutes that each reset token will be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + | The throttle setting is the number of seconds a user must wait before + | generating more password reset tokens. This prevents the user from + | quickly generating a very large amount of password reset tokens. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'), + 'expire' => 60, + 'throttle' => 60, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Password Confirmation Timeout + |-------------------------------------------------------------------------- + | + | Here you may define the number of seconds before a password confirmation + | window expires and users are asked to re-enter their password via the + | confirmation screen. By default, the timeout lasts for three hours. + | + */ + + 'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800), + +]; diff --git a/config/cache.php b/config/cache.php new file mode 100644 index 0000000..c68acdf --- /dev/null +++ b/config/cache.php @@ -0,0 +1,130 @@ + env('CACHE_STORE', 'database'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + | Supported drivers: "array", "database", "file", "memcached", + | "redis", "dynamodb", "octane", + | "failover", "null" + | + */ + + 'stores' => [ + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'connection' => env('DB_CACHE_CONNECTION'), + 'table' => env('DB_CACHE_TABLE', 'cache'), + 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'), + 'lock_table' => env('DB_CACHE_LOCK_TABLE'), + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + 'lock_path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'), + 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'), + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + 'failover' => [ + 'driver' => 'failover', + 'stores' => [ + 'database', + 'array', + ], + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, and DynamoDB cache + | stores, there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'), + + /* + |-------------------------------------------------------------------------- + | Serializable Classes + |-------------------------------------------------------------------------- + | + | This value determines the classes that can be unserialized from cache + | storage. By default, no PHP classes will be unserialized from your + | cache to prevent gadget chain attacks if your APP_KEY is leaked. + | + */ + + 'serializable_classes' => false, + +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..64709ce --- /dev/null +++ b/config/database.php @@ -0,0 +1,184 @@ + env('DB_CONNECTION', 'sqlite'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Below are all of the database connections defined for your application. + | An example configuration is provided for each database system which + | is supported by Laravel. You're free to add / remove connections. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DB_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + 'busy_timeout' => null, + 'journal_mode' => null, + 'synchronous' => null, + 'transaction_mode' => 'DEFERRED', + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => env('DB_CHARSET', 'utf8mb4'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + (PHP_VERSION_ID >= 80500 ? Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'mariadb' => [ + 'driver' => 'mariadb', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => env('DB_CHARSET', 'utf8mb4'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + (PHP_VERSION_ID >= 80500 ? Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => env('DB_CHARSET', 'utf8'), + 'prefix' => '', + 'prefix_indexes' => true, + 'search_path' => 'public', + 'sslmode' => env('DB_SSLMODE', 'prefer'), + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => env('DB_CHARSET', 'utf8'), + 'prefix' => '', + 'prefix_indexes' => true, + // 'encrypt' => env('DB_ENCRYPT', 'yes'), + // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run on the database. + | + */ + + 'migrations' => [ + 'table' => 'migrations', + 'update_date_on_publish' => true, + ], + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer body of commands than a typical key-value system + | such as Memcached. You may define your connection settings here. + | + */ + + 'redis' => [ + + 'client' => env('REDIS_CLIENT', 'phpredis'), + + 'options' => [ + 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'prefix' => env('REDIS_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-database-'), + 'persistent' => env('REDIS_PERSISTENT', false), + ], + + 'default' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + 'max_retries' => env('REDIS_MAX_RETRIES', 3), + 'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'), + 'backoff_base' => env('REDIS_BACKOFF_BASE', 100), + 'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_CACHE_DB', '1'), + 'max_retries' => env('REDIS_MAX_RETRIES', 3), + 'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'), + 'backoff_base' => env('REDIS_BACKOFF_BASE', 100), + 'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000), + ], + + ], + +]; diff --git a/config/filesystems.php b/config/filesystems.php new file mode 100644 index 0000000..37d8fca --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,80 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Below you may configure as many filesystem disks as necessary, and you + | may even configure multiple disks for the same driver. Examples for + | most supported storage drivers are configured here for reference. + | + | Supported drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app/private'), + 'serve' => true, + 'throw' => false, + 'report' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => rtrim(env('APP_URL', 'http://localhost'), '/').'/storage', + 'visibility' => 'public', + 'throw' => false, + 'report' => false, + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + 'report' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/config/logging.php b/config/logging.php new file mode 100644 index 0000000..b09cb25 --- /dev/null +++ b/config/logging.php @@ -0,0 +1,132 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => env('LOG_DEPRECATIONS_TRACE', false), + ], + + /* + |-------------------------------------------------------------------------- + | Log Channels + |-------------------------------------------------------------------------- + | + | Here you may configure the log channels for your application. Laravel + | utilizes the Monolog PHP logging library, which includes a variety + | of powerful log handlers and formatters that you're free to use. + | + | Available drivers: "single", "daily", "slack", "syslog", + | "errorlog", "monolog", "custom", "stack" + | + */ + + 'channels' => [ + + 'stack' => [ + 'driver' => 'stack', + 'channels' => explode(',', (string) env('LOG_STACK', 'single')), + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => env('LOG_DAILY_DAYS', 14), + 'replace_placeholders' => true, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => env('LOG_SLACK_USERNAME', env('APP_NAME', 'Laravel')), + 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'), + 'level' => env('LOG_LEVEL', 'critical'), + 'replace_placeholders' => true, + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + 'processors' => [PsrLogMessageProcessor::class], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'handler_with' => [ + 'stream' => 'php://stderr', + ], + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'processors' => [PsrLogMessageProcessor::class], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER), + 'replace_placeholders' => true, + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + + ], + +]; diff --git a/config/mail.php b/config/mail.php new file mode 100644 index 0000000..e32e88d --- /dev/null +++ b/config/mail.php @@ -0,0 +1,118 @@ + env('MAIL_MAILER', 'log'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers that can be used + | when delivering an email. You may specify which one you're using for + | your mailers below. You may also add additional mailers if needed. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", + | "postmark", "resend", "log", "array", + | "failover", "roundrobin" + | + */ + + 'mailers' => [ + + 'smtp' => [ + 'transport' => 'smtp', + 'scheme' => env('MAIL_SCHEME'), + 'url' => env('MAIL_URL'), + 'host' => env('MAIL_HOST', '127.0.0.1'), + 'port' => env('MAIL_PORT', 2525), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'postmark' => [ + 'transport' => 'postmark', + // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), + // 'client' => [ + // 'timeout' => 5, + // ], + ], + + 'resend' => [ + 'transport' => 'resend', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + 'retry_after' => 60, + ], + + 'roundrobin' => [ + 'transport' => 'roundrobin', + 'mailers' => [ + 'ses', + 'postmark', + ], + 'retry_after' => 60, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all emails sent by your application to be sent from + | the same address. Here you may specify a name and address that is + | used globally for all emails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Laravel')), + ], + +]; diff --git a/config/queue.php b/config/queue.php new file mode 100644 index 0000000..79c2c0a --- /dev/null +++ b/config/queue.php @@ -0,0 +1,129 @@ + env('QUEUE_CONNECTION', 'database'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection options for every queue backend + | used by your application. An example configuration is provided for + | each backend supported by Laravel. You're also free to add more. + | + | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", + | "deferred", "background", "failover", "null" + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'connection' => env('DB_QUEUE_CONNECTION'), + 'table' => env('DB_QUEUE_TABLE', 'jobs'), + 'queue' => env('DB_QUEUE', 'default'), + 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), + 'after_commit' => false, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), + 'queue' => env('BEANSTALKD_QUEUE', 'default'), + 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), + 'block_for' => 0, + 'after_commit' => false, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'default'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), + 'block_for' => null, + 'after_commit' => false, + ], + + 'deferred' => [ + 'driver' => 'deferred', + ], + + 'background' => [ + 'driver' => 'background', + ], + + 'failover' => [ + 'driver' => 'failover', + 'connections' => [ + 'database', + 'deferred', + ], + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Job Batching + |-------------------------------------------------------------------------- + | + | The following options configure the database and table that store job + | batching information. These options can be updated to any database + | connection and table which has been defined by your application. + | + */ + + 'batching' => [ + 'database' => env('DB_CONNECTION', 'sqlite'), + 'table' => 'job_batches', + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control how and where failed jobs are stored. Laravel ships with + | support for storing failed jobs in a simple file or in a database. + | + | Supported drivers: "database-uuids", "dynamodb", "file", "null" + | + */ + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'database' => env('DB_CONNECTION', 'sqlite'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..6a90eb8 --- /dev/null +++ b/config/services.php @@ -0,0 +1,38 @@ + [ + 'key' => env('POSTMARK_API_KEY'), + ], + + 'resend' => [ + 'key' => env('RESEND_API_KEY'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + + 'slack' => [ + 'notifications' => [ + 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), + 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'), + ], + ], + +]; diff --git a/config/session.php b/config/session.php new file mode 100644 index 0000000..f574482 --- /dev/null +++ b/config/session.php @@ -0,0 +1,233 @@ + env('SESSION_DRIVER', 'database'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to expire immediately when the browser is closed then you may + | indicate that via the expire_on_close configuration option. + | + */ + + 'lifetime' => (int) env('SESSION_LIFETIME', 120), + + 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false), + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it's stored. All encryption is performed + | automatically by Laravel and you may use the session like normal. + | + */ + + 'encrypt' => env('SESSION_ENCRYPT', false), + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When utilizing the "file" session driver, the session files are placed + | on disk. The default storage location is defined here; however, you + | are free to provide another location where they should be stored. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION'), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table to + | be used to store sessions. Of course, a sensible default is defined + | for you; however, you're welcome to change this to another table. + | + */ + + 'table' => env('SESSION_TABLE', 'sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | When using one of the framework's cache driven session backends, you may + | define the cache store which should be used to store the session data + | between requests. This must match one of your defined cache stores. + | + | Affects: "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the session cookie that is created by + | the framework. Typically, you should not need to change this value + | since doing so does not grant a meaningful security improvement. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug((string) env('APP_NAME', 'laravel')).'-session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application, but you're free to change this when necessary. + | + */ + + 'path' => env('SESSION_PATH', '/'), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | This value determines the domain and subdomains the session cookie is + | available to. By default, the cookie will be available to the root + | domain without subdomains. Typically, this shouldn't be changed. + | + */ + + 'domain' => env('SESSION_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you when it can't be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. It's unlikely you should disable this option. + | + */ + + 'http_only' => env('SESSION_HTTP_ONLY', true), + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | will set this value to "lax" to permit secure cross-site requests. + | + | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => env('SESSION_SAME_SITE', 'lax'), + + /* + |-------------------------------------------------------------------------- + | Partitioned Cookies + |-------------------------------------------------------------------------- + | + | Setting this value to true will tie the cookie to the top-level site for + | a cross-site context. Partitioned cookies are accepted by the browser + | when flagged "secure" and the Same-Site attribute is set to "none". + | + */ + + 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false), + + /* + |-------------------------------------------------------------------------- + | Session Serialization + |-------------------------------------------------------------------------- + | + | This value controls the serialization strategy for session data, which + | is JSON by default. Setting this to "php" allows the storage of PHP + | objects in the session but can make an application vulnerable to + | "gadget chain" serialization attacks if the APP_KEY is leaked. + | + | Supported: "json", "php" + | + */ + + 'serialization' => 'json', + +]; diff --git a/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 0000000..c4ceb07 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,45 @@ + + */ +class UserFactory extends Factory +{ + /** + * The current password being used by the factory. + */ + protected static ?string $password; + + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => fake()->name(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => static::$password ??= Hash::make('password'), + 'remember_token' => Str::random(10), + ]; + } + + /** + * Indicate that the model's email address should be unverified. + */ + public function unverified(): static + { + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/database/migrations/0001_01_01_000000_create_users_table.php b/database/migrations/0001_01_01_000000_create_users_table.php new file mode 100644 index 0000000..05fb5d9 --- /dev/null +++ b/database/migrations/0001_01_01_000000_create_users_table.php @@ -0,0 +1,49 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->rememberToken(); + $table->timestamps(); + }); + + Schema::create('password_reset_tokens', function (Blueprint $table) { + $table->string('email')->primary(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + + Schema::create('sessions', function (Blueprint $table) { + $table->string('id')->primary(); + $table->foreignId('user_id')->nullable()->index(); + $table->string('ip_address', 45)->nullable(); + $table->text('user_agent')->nullable(); + $table->longText('payload'); + $table->integer('last_activity')->index(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('users'); + Schema::dropIfExists('password_reset_tokens'); + Schema::dropIfExists('sessions'); + } +}; diff --git a/database/migrations/0001_01_01_000001_create_cache_table.php b/database/migrations/0001_01_01_000001_create_cache_table.php new file mode 100644 index 0000000..06dc7a5 --- /dev/null +++ b/database/migrations/0001_01_01_000001_create_cache_table.php @@ -0,0 +1,35 @@ +string('key')->primary(); + $table->mediumText('value'); + $table->bigInteger('expiration')->index(); + }); + + Schema::create('cache_locks', function (Blueprint $table) { + $table->string('key')->primary(); + $table->string('owner'); + $table->bigInteger('expiration')->index(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('cache'); + Schema::dropIfExists('cache_locks'); + } +}; diff --git a/database/migrations/0001_01_01_000002_create_jobs_table.php b/database/migrations/0001_01_01_000002_create_jobs_table.php new file mode 100644 index 0000000..425e705 --- /dev/null +++ b/database/migrations/0001_01_01_000002_create_jobs_table.php @@ -0,0 +1,57 @@ +id(); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedTinyInteger('attempts'); + $table->unsignedInteger('reserved_at')->nullable(); + $table->unsignedInteger('available_at'); + $table->unsignedInteger('created_at'); + }); + + Schema::create('job_batches', function (Blueprint $table) { + $table->string('id')->primary(); + $table->string('name'); + $table->integer('total_jobs'); + $table->integer('pending_jobs'); + $table->integer('failed_jobs'); + $table->longText('failed_job_ids'); + $table->mediumText('options')->nullable(); + $table->integer('cancelled_at')->nullable(); + $table->integer('created_at'); + $table->integer('finished_at')->nullable(); + }); + + Schema::create('failed_jobs', function (Blueprint $table) { + $table->id(); + $table->string('uuid')->unique(); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('jobs'); + Schema::dropIfExists('job_batches'); + Schema::dropIfExists('failed_jobs'); + } +}; diff --git a/database/migrations/2026_04_09_203932_create_academic_years_table.php b/database/migrations/2026_04_09_203932_create_academic_years_table.php new file mode 100644 index 0000000..e6e2e32 --- /dev/null +++ b/database/migrations/2026_04_09_203932_create_academic_years_table.php @@ -0,0 +1,31 @@ +id(); + $table->string('name', 50)->unique(); + $table->unsignedSmallInteger('start_year'); + $table->unsignedSmallInteger('end_year'); + $table->boolean('is_active')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('academic_years'); + } +}; diff --git a/database/migrations/2026_04_09_203933_create_departments_table.php b/database/migrations/2026_04_09_203933_create_departments_table.php new file mode 100644 index 0000000..aa7c2f9 --- /dev/null +++ b/database/migrations/2026_04_09_203933_create_departments_table.php @@ -0,0 +1,31 @@ +id(); + $table->string('code', 20)->unique(); + $table->string('name', 100); + $table->text('description')->nullable(); + $table->boolean('is_active')->default(true); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('departments'); + } +}; diff --git a/database/migrations/2026_04_09_203934_create_classes_table.php b/database/migrations/2026_04_09_203934_create_classes_table.php new file mode 100644 index 0000000..8a1df06 --- /dev/null +++ b/database/migrations/2026_04_09_203934_create_classes_table.php @@ -0,0 +1,36 @@ +id(); + $table->foreignId('academic_year_id')->constrained()->cascadeOnUpdate()->restrictOnDelete(); + $table->foreignId('department_id')->constrained()->cascadeOnUpdate()->restrictOnDelete(); + $table->string('name', 100); + $table->string('level', 10); + $table->string('homeroom_teacher', 100)->nullable(); + $table->unsignedInteger('capacity')->nullable(); + $table->boolean('is_active')->default(true); + $table->timestamps(); + + $table->unique(['academic_year_id', 'name']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('classes'); + } +}; diff --git a/database/migrations/2026_04_09_203935_create_document_types_table.php b/database/migrations/2026_04_09_203935_create_document_types_table.php new file mode 100644 index 0000000..c5ce2a4 --- /dev/null +++ b/database/migrations/2026_04_09_203935_create_document_types_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('code', 50)->unique(); + $table->string('name', 100); + $table->text('description')->nullable(); + $table->boolean('is_required')->default(false); + $table->boolean('is_active')->default(true); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('document_types'); + } +}; diff --git a/database/migrations/2026_04_09_203936_create_students_table.php b/database/migrations/2026_04_09_203936_create_students_table.php new file mode 100644 index 0000000..52c14c7 --- /dev/null +++ b/database/migrations/2026_04_09_203936_create_students_table.php @@ -0,0 +1,57 @@ +id(); + $table->string('student_number', 30)->nullable()->unique(); + $table->string('nisn', 30)->nullable()->unique(); + $table->string('full_name', 150); + $table->enum('gender', ['L', 'P']); + $table->string('place_of_birth', 100)->nullable(); + $table->date('date_of_birth')->nullable(); + $table->string('religion', 50)->nullable(); + $table->string('nationality', 50)->default('Indonesia'); + $table->string('family_card_number', 30)->nullable(); + $table->unsignedTinyInteger('child_order')->nullable(); + $table->unsignedTinyInteger('number_of_siblings')->nullable(); + $table->string('phone_number', 30)->nullable(); + $table->string('email', 100)->nullable(); + $table->text('address')->nullable(); + $table->string('village', 100)->nullable(); + $table->string('district', 100)->nullable(); + $table->string('city', 100)->nullable(); + $table->string('province', 100)->nullable(); + $table->string('postal_code', 10)->nullable(); + $table->foreignId('academic_year_id')->constrained()->cascadeOnUpdate()->restrictOnDelete(); + $table->foreignId('department_id')->constrained()->cascadeOnUpdate()->restrictOnDelete(); + $table->foreignId('class_id')->constrained('classes')->cascadeOnUpdate()->restrictOnDelete(); + $table->date('entry_date')->nullable(); + $table->enum('status', ['active', 'graduated', 'transferred', 'dropped', 'inactive'])->default('active'); + $table->string('photo_path')->nullable(); + $table->text('notes')->nullable(); + $table->timestamps(); + $table->softDeletes(); + + $table->index(['academic_year_id', 'department_id', 'class_id']); + $table->index('status'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('students'); + } +}; diff --git a/database/migrations/2026_04_09_203937_create_student_parents_table.php b/database/migrations/2026_04_09_203937_create_student_parents_table.php new file mode 100644 index 0000000..cfa4330 --- /dev/null +++ b/database/migrations/2026_04_09_203937_create_student_parents_table.php @@ -0,0 +1,39 @@ +id(); + $table->foreignId('student_id')->constrained()->cascadeOnUpdate()->cascadeOnDelete(); + $table->enum('relation_type', ['father', 'mother', 'guardian']); + $table->string('name', 150); + $table->string('nik', 30)->nullable(); + $table->unsignedSmallInteger('birth_year')->nullable(); + $table->string('education', 100)->nullable(); + $table->string('occupation', 100)->nullable(); + $table->string('phone_number', 30)->nullable(); + $table->text('address')->nullable(); + $table->boolean('is_alive')->default(true); + $table->timestamps(); + + $table->unique(['student_id', 'relation_type']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('student_parents'); + } +}; diff --git a/database/migrations/2026_04_09_203938_create_student_documents_table.php b/database/migrations/2026_04_09_203938_create_student_documents_table.php new file mode 100644 index 0000000..40bc775 --- /dev/null +++ b/database/migrations/2026_04_09_203938_create_student_documents_table.php @@ -0,0 +1,46 @@ +id(); + $table->foreignId('student_id')->constrained()->cascadeOnUpdate()->cascadeOnDelete(); + $table->foreignId('document_type_id')->constrained()->cascadeOnUpdate()->restrictOnDelete(); + $table->string('file_name'); + $table->string('file_path'); + $table->string('file_extension', 20)->nullable(); + $table->string('mime_type', 100)->nullable(); + $table->unsignedBigInteger('file_size')->nullable(); + $table->string('document_number', 100)->nullable(); + $table->date('issued_date')->nullable(); + $table->date('expired_date')->nullable(); + $table->text('description')->nullable(); + $table->enum('verification_status', ['pending', 'valid', 'invalid', 'revision'])->default('pending'); + $table->foreignId('uploaded_by')->nullable()->constrained('users')->nullOnDelete(); + $table->foreignId('verified_by')->nullable()->constrained('users')->nullOnDelete(); + $table->timestamp('verified_at')->nullable(); + $table->timestamps(); + $table->softDeletes(); + + $table->index(['student_id', 'document_type_id']); + $table->index('verification_status'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('student_documents'); + } +}; diff --git a/database/migrations/2026_04_09_215343_add_max_file_size_kb_to_document_types_table.php b/database/migrations/2026_04_09_215343_add_max_file_size_kb_to_document_types_table.php new file mode 100644 index 0000000..4ac86d0 --- /dev/null +++ b/database/migrations/2026_04_09_215343_add_max_file_size_kb_to_document_types_table.php @@ -0,0 +1,28 @@ +unsignedInteger('max_file_size_kb')->nullable()->after('description'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('document_types', function (Blueprint $table) { + $table->dropColumn('max_file_size_kb'); + }); + } +}; diff --git a/database/migrations/2026_04_09_220157_add_allowed_extensions_to_document_types_table.php b/database/migrations/2026_04_09_220157_add_allowed_extensions_to_document_types_table.php new file mode 100644 index 0000000..568888b --- /dev/null +++ b/database/migrations/2026_04_09_220157_add_allowed_extensions_to_document_types_table.php @@ -0,0 +1,28 @@ +string('allowed_extensions', 255)->nullable()->after('max_file_size_kb'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('document_types', function (Blueprint $table) { + $table->dropColumn('allowed_extensions'); + }); + } +}; diff --git a/database/migrations/2026_04_09_221241_add_verification_note_to_student_documents_table.php b/database/migrations/2026_04_09_221241_add_verification_note_to_student_documents_table.php new file mode 100644 index 0000000..ceb4659 --- /dev/null +++ b/database/migrations/2026_04_09_221241_add_verification_note_to_student_documents_table.php @@ -0,0 +1,28 @@ +text('verification_note')->nullable()->after('verification_status'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('student_documents', function (Blueprint $table) { + $table->dropColumn('verification_note'); + }); + } +}; diff --git a/database/migrations/2026_04_09_223945_create_student_academic_histories_table.php b/database/migrations/2026_04_09_223945_create_student_academic_histories_table.php new file mode 100644 index 0000000..34da6b3 --- /dev/null +++ b/database/migrations/2026_04_09_223945_create_student_academic_histories_table.php @@ -0,0 +1,39 @@ +id(); + $table->foreignId('student_id')->constrained()->cascadeOnUpdate()->cascadeOnDelete(); + $table->foreignId('academic_year_id')->constrained()->cascadeOnUpdate()->restrictOnDelete(); + $table->foreignId('department_id')->constrained()->cascadeOnUpdate()->restrictOnDelete(); + $table->foreignId('class_id')->constrained('classes')->cascadeOnUpdate()->restrictOnDelete(); + $table->string('status', 30)->default('active'); + $table->date('start_date')->nullable(); + $table->date('end_date')->nullable(); + $table->text('notes')->nullable(); + $table->boolean('is_current')->default(true); + $table->timestamps(); + + $table->index(['student_id', 'is_current']); + $table->unique(['student_id', 'academic_year_id']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('student_academic_histories'); + } +}; diff --git a/database/migrations/2026_04_11_053500_add_role_to_users_table.php b/database/migrations/2026_04_11_053500_add_role_to_users_table.php new file mode 100644 index 0000000..c04a70b --- /dev/null +++ b/database/migrations/2026_04_11_053500_add_role_to_users_table.php @@ -0,0 +1,25 @@ +string('role', 30)->default('staff')->after('email'); + }); + + DB::table('users')->update(['role' => 'admin']); + } + + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('role'); + }); + } +}; diff --git a/database/migrations/2026_04_11_055500_create_student_exits_table.php b/database/migrations/2026_04_11_055500_create_student_exits_table.php new file mode 100644 index 0000000..2d84897 --- /dev/null +++ b/database/migrations/2026_04_11_055500_create_student_exits_table.php @@ -0,0 +1,34 @@ +id(); + $table->foreignId('student_id')->unique()->constrained('students')->cascadeOnUpdate()->cascadeOnDelete(); + $table->string('student_number', 30)->nullable(); + $table->string('nisn', 30)->nullable(); + $table->string('full_name', 150); + $table->foreignId('academic_year_id')->nullable()->constrained()->nullOnDelete()->cascadeOnUpdate(); + $table->foreignId('department_id')->nullable()->constrained()->nullOnDelete()->cascadeOnUpdate(); + $table->foreignId('class_id')->nullable()->constrained('classes')->nullOnDelete()->cascadeOnUpdate(); + $table->date('entry_date')->nullable(); + $table->date('exit_date')->nullable(); + $table->text('exit_reason')->nullable(); + $table->string('status', 30)->default('dropped'); + $table->timestamps(); + $table->index('status'); + $table->index('exit_date'); + }); + } + + public function down(): void + { + Schema::dropIfExists('student_exits'); + } +}; diff --git a/database/migrations/2026_04_11_060200_add_exit_letter_columns_to_student_exits_table.php b/database/migrations/2026_04_11_060200_add_exit_letter_columns_to_student_exits_table.php new file mode 100644 index 0000000..a5e28c6 --- /dev/null +++ b/database/migrations/2026_04_11_060200_add_exit_letter_columns_to_student_exits_table.php @@ -0,0 +1,30 @@ +string('exit_letter_file_name')->nullable()->after('exit_reason'); + $table->string('exit_letter_file_path')->nullable()->after('exit_letter_file_name'); + $table->string('exit_letter_mime_type')->nullable()->after('exit_letter_file_path'); + $table->unsignedBigInteger('exit_letter_file_size')->nullable()->after('exit_letter_mime_type'); + }); + } + + public function down(): void + { + Schema::table('student_exits', function (Blueprint $table) { + $table->dropColumn([ + 'exit_letter_file_name', + 'exit_letter_file_path', + 'exit_letter_mime_type', + 'exit_letter_file_size', + ]); + }); + } +}; diff --git a/database/migrations/2026_04_11_061800_create_student_transfers_table.php b/database/migrations/2026_04_11_061800_create_student_transfers_table.php new file mode 100644 index 0000000..d1f38ef --- /dev/null +++ b/database/migrations/2026_04_11_061800_create_student_transfers_table.php @@ -0,0 +1,39 @@ +id(); + $table->foreignId('student_id')->unique()->constrained('students')->cascadeOnUpdate()->cascadeOnDelete(); + $table->string('student_number', 30)->nullable(); + $table->string('nisn', 30)->nullable(); + $table->string('full_name', 150); + $table->foreignId('academic_year_id')->nullable()->constrained()->nullOnDelete()->cascadeOnUpdate(); + $table->foreignId('department_id')->nullable()->constrained()->nullOnDelete()->cascadeOnUpdate(); + $table->foreignId('class_id')->nullable()->constrained('classes')->nullOnDelete()->cascadeOnUpdate(); + $table->date('entry_date')->nullable(); + $table->date('transfer_date')->nullable(); + $table->text('transfer_reason')->nullable(); + $table->string('transfer_letter_file_name')->nullable(); + $table->string('transfer_letter_file_path')->nullable(); + $table->string('transfer_letter_mime_type')->nullable(); + $table->unsignedBigInteger('transfer_letter_file_size')->nullable(); + $table->string('status', 30)->default('transferred'); + $table->timestamps(); + + $table->index('status'); + $table->index('transfer_date'); + }); + } + + public function down(): void + { + Schema::dropIfExists('student_transfers'); + } +}; diff --git a/database/migrations/2026_04_11_160800_create_regions_tables.php b/database/migrations/2026_04_11_160800_create_regions_tables.php new file mode 100644 index 0000000..206a61f --- /dev/null +++ b/database/migrations/2026_04_11_160800_create_regions_tables.php @@ -0,0 +1,75 @@ +string('id', 20)->primary(); + $table->string('name', 100); + $table->timestamps(); + }); + + Schema::create('regencies', function (Blueprint $table) { + $table->string('id', 20)->primary(); + $table->string('province_id', 20); + $table->string('name', 100); + $table->timestamps(); + + $table->foreign('province_id')->references('id')->on('provinces')->cascadeOnUpdate()->cascadeOnDelete(); + $table->index('province_id'); + }); + + Schema::create('districts', function (Blueprint $table) { + $table->string('id', 20)->primary(); + $table->string('regency_id', 20); + $table->string('name', 100); + $table->timestamps(); + + $table->foreign('regency_id')->references('id')->on('regencies')->cascadeOnUpdate()->cascadeOnDelete(); + $table->index('regency_id'); + }); + + Schema::create('villages', function (Blueprint $table) { + $table->string('id', 20)->primary(); + $table->string('district_id', 20); + $table->string('name', 100); + $table->timestamps(); + + $table->foreign('district_id')->references('id')->on('districts')->cascadeOnUpdate()->cascadeOnDelete(); + $table->index('district_id'); + }); + + Schema::table('students', function (Blueprint $table) { + $table->string('province_id', 20)->nullable()->after('address'); + $table->string('regency_id', 20)->nullable()->after('province_id'); + $table->string('district_id', 20)->nullable()->after('regency_id'); + $table->string('village_id', 20)->nullable()->after('district_id'); + + $table->foreign('province_id')->references('id')->on('provinces')->nullOnDelete()->cascadeOnUpdate(); + $table->foreign('regency_id')->references('id')->on('regencies')->nullOnDelete()->cascadeOnUpdate(); + $table->foreign('district_id')->references('id')->on('districts')->nullOnDelete()->cascadeOnUpdate(); + $table->foreign('village_id')->references('id')->on('villages')->nullOnDelete()->cascadeOnUpdate(); + }); + } + + public function down(): void + { + Schema::table('students', function (Blueprint $table) { + $table->dropForeign(['province_id']); + $table->dropForeign(['regency_id']); + $table->dropForeign(['district_id']); + $table->dropForeign(['village_id']); + $table->dropColumn(['province_id', 'regency_id', 'district_id', 'village_id']); + }); + + Schema::dropIfExists('villages'); + Schema::dropIfExists('districts'); + Schema::dropIfExists('regencies'); + Schema::dropIfExists('provinces'); + } +}; diff --git a/database/migrations/2026_04_12_004458_add_self_service_columns_to_students_table.php b/database/migrations/2026_04_12_004458_add_self_service_columns_to_students_table.php new file mode 100644 index 0000000..c467ab9 --- /dev/null +++ b/database/migrations/2026_04_12_004458_add_self_service_columns_to_students_table.php @@ -0,0 +1,40 @@ +enum('self_service_status', ['not_started', 'draft', 'submitted']) + ->default('not_started') + ->after('status'); + $table->timestamp('self_service_last_access_at') + ->nullable() + ->after('self_service_status'); + $table->timestamp('self_service_submitted_at') + ->nullable() + ->after('self_service_last_access_at'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('students', function (Blueprint $table) { + $table->dropColumn([ + 'self_service_status', + 'self_service_last_access_at', + 'self_service_submitted_at', + ]); + }); + } +}; diff --git a/database/migrations/2026_04_12_005313_add_self_service_access_code_to_students_table.php b/database/migrations/2026_04_12_005313_add_self_service_access_code_to_students_table.php new file mode 100644 index 0000000..80d3415 --- /dev/null +++ b/database/migrations/2026_04_12_005313_add_self_service_access_code_to_students_table.php @@ -0,0 +1,33 @@ +string('self_service_access_code', 20) + ->nullable() + ->after('self_service_submitted_at'); + $table->timestamp('self_service_code_generated_at') + ->nullable() + ->after('self_service_access_code'); + + $table->index('self_service_access_code'); + }); + } + + public function down(): void + { + Schema::table('students', function (Blueprint $table) { + $table->dropIndex(['self_service_access_code']); + $table->dropColumn([ + 'self_service_access_code', + 'self_service_code_generated_at', + ]); + }); + } +}; diff --git a/database/migrations/2026_04_12_052600_create_app_settings_table.php b/database/migrations/2026_04_12_052600_create_app_settings_table.php new file mode 100644 index 0000000..7053021 --- /dev/null +++ b/database/migrations/2026_04_12_052600_create_app_settings_table.php @@ -0,0 +1,23 @@ +id(); + $table->string('key')->unique(); + $table->text('value')->nullable(); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('app_settings'); + } +}; diff --git a/database/seeders/AdminUserSeeder.php b/database/seeders/AdminUserSeeder.php new file mode 100644 index 0000000..38a0e4a --- /dev/null +++ b/database/seeders/AdminUserSeeder.php @@ -0,0 +1,25 @@ + 'admin@kesiswaan.local'], + [ + 'name' => 'Administrator', + 'password' => Hash::make('Admin123!'), + 'email_verified_at' => now(), + ] + ); + } +} diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..f199149 --- /dev/null +++ b/database/seeders/DatabaseSeeder.php @@ -0,0 +1,21 @@ +call([ + AdminUserSeeder::class, + ]); + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..bffac96 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2964 @@ +{ + "name": "database-kesiswaan", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "sweetalert2": "^11.26.24" + }, + "devDependencies": { + "@tailwindcss/forms": "^0.5.2", + "@tailwindcss/vite": "^4.0.0", + "alpinejs": "^3.4.2", + "autoprefixer": "^10.4.2", + "axios": ">=1.11.0 <=1.14.0", + "concurrently": "^9.0.1", + "laravel-vite-plugin": "^3.0.0", + "postcss": "^8.4.31", + "tailwindcss": "^3.1.0", + "vite": "^8.0.0" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@emnapi/core": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.2.tgz", + "integrity": "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz", + "integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.3.tgz", + "integrity": "sha512-xK9sGVbJWYb08+mTJt3/YV24WxvxpXcXtP6B172paPZ+Ts69Re9dAr7lKwJoeIx8OoeuimEiRZ7umkiUVClmmQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.124.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.124.0.tgz", + "integrity": "sha512-VBFWMTBvHxS11Z5Lvlr3IWgrwhMTXV+Md+EQF0Xf60+wAdsGFTBx7X7K/hP4pi8N7dcm1RvcHwDxZ16Qx8keUg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.15.tgz", + "integrity": "sha512-YYe6aWruPZDtHNpwu7+qAHEMbQ/yRl6atqb/AhznLTnD3UY99Q1jE7ihLSahNWkF4EqRPVC4SiR4O0UkLK02tA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.15.tgz", + "integrity": "sha512-oArR/ig8wNTPYsXL+Mzhs0oxhxfuHRfG7Ikw7jXsw8mYOtk71W0OkF2VEVh699pdmzjPQsTjlD1JIOoHkLP1Fg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.15.tgz", + "integrity": "sha512-YzeVqOqjPYvUbJSWJ4EDL8ahbmsIXQpgL3JVipmN+MX0XnXMeWomLN3Fb+nwCmP/jfyqte5I3XRSm7OfQrbyxw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.15.tgz", + "integrity": "sha512-9Erhx956jeQ0nNTyif1+QWAXDRD38ZNjr//bSHrt6wDwB+QkAfl2q6Mn1k6OBPerznjRmbM10lgRb1Pli4xZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.15.tgz", + "integrity": "sha512-cVwk0w8QbZJGTnP/AHQBs5yNwmpgGYStL88t4UIaqcvYJWBfS0s3oqVLZPwsPU6M0zlW4GqjP0Zq5MnAGwFeGA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.15.tgz", + "integrity": "sha512-eBZ/u8iAK9SoHGanqe/jrPnY0JvBN6iXbVOsbO38mbz+ZJsaobExAm1Iu+rxa4S1l2FjG0qEZn4Rc6X8n+9M+w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.15.tgz", + "integrity": "sha512-ZvRYMGrAklV9PEkgt4LQM6MjQX2P58HPAuecwYObY2DhS2t35R0I810bKi0wmaYORt6m/2Sm+Z+nFgb0WhXNcQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.15.tgz", + "integrity": "sha512-VDpgGBzgfg5hLg+uBpCLoFG5kVvEyafmfxGUV0UHLcL5irxAK7PKNeC2MwClgk6ZAiNhmo9FLhRYgvMmedLtnQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.15.tgz", + "integrity": "sha512-y1uXY3qQWCzcPgRJATPSOUP4tCemh4uBdY7e3EZbVwCJTY3gLJWnQABgeUetvED+bt1FQ01OeZwvhLS2bpNrAQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.15.tgz", + "integrity": "sha512-023bTPBod7J3Y/4fzAN6QtpkSABR0rigtrwaP+qSEabUh5zf6ELr9Nc7GujaROuPY3uwdSIXWrvhn1KxOvurWA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.15.tgz", + "integrity": "sha512-witB2O0/hU4CgfOOKUoeFgQ4GktPi1eEbAhaLAIpgD6+ZnhcPkUtPsoKKHRzmOoWPZue46IThdSgdo4XneOLYw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.15.tgz", + "integrity": "sha512-UCL68NJ0Ud5zRipXZE9dF5PmirzJE4E4BCIOOssEnM7wLDsxjc6Qb0sGDxTNRTP53I6MZpygyCpY8Aa8sPfKPg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.15.tgz", + "integrity": "sha512-ApLruZq/ig+nhaE7OJm4lDjayUnOHVUa77zGeqnqZ9pn0ovdVbbNPerVibLXDmWeUZXjIYIT8V3xkT58Rm9u5Q==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.9.2", + "@emnapi/runtime": "1.9.2", + "@napi-rs/wasm-runtime": "^1.1.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.15.tgz", + "integrity": "sha512-KmoUoU7HnN+Si5YWJigfTws1jz1bKBYDQKdbLspz0UaqjjFkddHsqorgiW1mxcAj88lYUE6NC/zJNwT+SloqtA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.15.tgz", + "integrity": "sha512-3P2A8L+x75qavWLe/Dll3EYBJLQmtkJN8rfh+U/eR3MqMgL/h98PhYI+JFfXuDPgPeCB7iZAKiqii5vqOvnA0g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.15.tgz", + "integrity": "sha512-UromN0peaE53IaBRe9W7CjrZgXl90fqGpK+mIZbA3qSTeYqg3pqpROBdIPvOG3F5ereDHNwoHBI2e50n1BDr1g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tailwindcss/forms": { + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.11.tgz", + "integrity": "sha512-h9wegbZDPurxG22xZSoWtdzc41/OlNEUQERNqI/0fOwa2aVlWGu7C35E/x6LDyD3lgtztFSSjKZyuVM0hxhbgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "mini-svg-data-uri": "^1.2.3" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20 || >= 4.0.0-beta.1" + } + }, + "node_modules/@tailwindcss/node": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.2.2.tgz", + "integrity": "sha512-pXS+wJ2gZpVXqFaUEjojq7jzMpTGf8rU6ipJz5ovJV6PUGmlJ+jvIwGrzdHdQ80Sg+wmQxUFuoW1UAAwHNEdFA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.19.0", + "jiti": "^2.6.1", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.2.2" + } + }, + "node_modules/@tailwindcss/node/node_modules/tailwindcss": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.2.2.tgz", + "integrity": "sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.2.2.tgz", + "integrity": "sha512-qEUA07+E5kehxYp9BVMpq9E8vnJuBHfJEC0vPC5e7iL/hw7HR61aDKoVoKzrG+QKp56vhNZe4qwkRmMC0zDLvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.2.2", + "@tailwindcss/oxide-darwin-arm64": "4.2.2", + "@tailwindcss/oxide-darwin-x64": "4.2.2", + "@tailwindcss/oxide-freebsd-x64": "4.2.2", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.2.2", + "@tailwindcss/oxide-linux-arm64-gnu": "4.2.2", + "@tailwindcss/oxide-linux-arm64-musl": "4.2.2", + "@tailwindcss/oxide-linux-x64-gnu": "4.2.2", + "@tailwindcss/oxide-linux-x64-musl": "4.2.2", + "@tailwindcss/oxide-wasm32-wasi": "4.2.2", + "@tailwindcss/oxide-win32-arm64-msvc": "4.2.2", + "@tailwindcss/oxide-win32-x64-msvc": "4.2.2" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.2.2.tgz", + "integrity": "sha512-dXGR1n+P3B6748jZO/SvHZq7qBOqqzQ+yFrXpoOWWALWndF9MoSKAT3Q0fYgAzYzGhxNYOoysRvYlpixRBBoDg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.2.2.tgz", + "integrity": "sha512-iq9Qjr6knfMpZHj55/37ouZeykwbDqF21gPFtfnhCCKGDcPI/21FKC9XdMO/XyBM7qKORx6UIhGgg6jLl7BZlg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.2.2.tgz", + "integrity": "sha512-BlR+2c3nzc8f2G639LpL89YY4bdcIdUmiOOkv2GQv4/4M0vJlpXEa0JXNHhCHU7VWOKWT/CjqHdTP8aUuDJkuw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.2.2.tgz", + "integrity": "sha512-YUqUgrGMSu2CDO82hzlQ5qSb5xmx3RUrke/QgnoEx7KvmRJHQuZHZmZTLSuuHwFf0DJPybFMXMYf+WJdxHy/nQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.2.2.tgz", + "integrity": "sha512-FPdhvsW6g06T9BWT0qTwiVZYE2WIFo2dY5aCSpjG/S/u1tby+wXoslXS0kl3/KXnULlLr1E3NPRRw0g7t2kgaQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.2.2.tgz", + "integrity": "sha512-4og1V+ftEPXGttOO7eCmW7VICmzzJWgMx+QXAJRAhjrSjumCwWqMfkDrNu1LXEQzNAwz28NCUpucgQPrR4S2yw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.2.2.tgz", + "integrity": "sha512-oCfG/mS+/+XRlwNjnsNLVwnMWYH7tn/kYPsNPh+JSOMlnt93mYNCKHYzylRhI51X+TbR+ufNhhKKzm6QkqX8ag==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.2.2.tgz", + "integrity": "sha512-rTAGAkDgqbXHNp/xW0iugLVmX62wOp2PoE39BTCGKjv3Iocf6AFbRP/wZT/kuCxC9QBh9Pu8XPkv/zCZB2mcMg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.2.2.tgz", + "integrity": "sha512-XW3t3qwbIwiSyRCggeO2zxe3KWaEbM0/kW9e8+0XpBgyKU4ATYzcVSMKteZJ1iukJ3HgHBjbg9P5YPRCVUxlnQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.2.2.tgz", + "integrity": "sha512-eKSztKsmEsn1O5lJ4ZAfyn41NfG7vzCg496YiGtMDV86jz1q/irhms5O0VrY6ZwTUkFy/EKG3RfWgxSI3VbZ8Q==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.8.1", + "@emnapi/runtime": "^1.8.1", + "@emnapi/wasi-threads": "^1.1.0", + "@napi-rs/wasm-runtime": "^1.1.1", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.2.2.tgz", + "integrity": "sha512-qPmaQM4iKu5mxpsrWZMOZRgZv1tOZpUm+zdhhQP0VhJfyGGO3aUKdbh3gDZc/dPLQwW4eSqWGrrcWNBZWUWaXQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.2.2.tgz", + "integrity": "sha512-1T/37VvI7WyH66b+vqHj/cLwnCxt7Qt3WFu5Q8hk65aOvlwAhs7rAp1VkulBJw/N4tMirXjVnylTR72uI0HGcA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.2.2.tgz", + "integrity": "sha512-mEiF5HO1QqCLXoNEfXVA1Tzo+cYsrqV7w9Juj2wdUFyW07JRenqMG225MvPwr3ZD9N1bFQj46X7r33iHxLUW0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.2.2", + "@tailwindcss/oxide": "4.2.2", + "tailwindcss": "4.2.2" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@tailwindcss/vite/node_modules/tailwindcss": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.2.2.tgz", + "integrity": "sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.5.tgz", + "integrity": "sha512-1tdfLmNjWG6t/CsPldh+foumYFo3cpyCHgBYQ34ylaMsJ+SNHQ1kApMIa8jN+i593zQuaw3AdWH0nJTARzCFhg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/shared": "3.1.5" + } + }, + "node_modules/@vue/shared": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.1.5.tgz", + "integrity": "sha512-oJ4F3TnvpXaQwZJNF3ZK+kLPHKarDmJjJ6jyzVNDKH9md1dptjC7lWR//jrGuLdek/U6iltWxqAnYOu8gCiOvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/alpinejs": { + "version": "3.15.11", + "resolved": "https://registry.npmjs.org/alpinejs/-/alpinejs-3.15.11.tgz", + "integrity": "sha512-m26gkTg/MId8O+F4jHKK3vB3SjbFxxk/JHP+qzmw1H6aQrZuPAg4CUoAefnASzzp/eNroBjrRQe7950bNeaBJw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/reactivity": "~3.1.1" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/autoprefixer": { + "version": "10.4.27", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.27.tgz", + "integrity": "sha512-NP9APE+tO+LuJGn7/9+cohklunJsXWiaWEfV3si4Gi/XHDwVNgkwr1J3RQYFIvPy76GmJ9/bW8vyoU1LcxwKHA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.1", + "caniuse-lite": "^1.0.30001774", + "fraction.js": "^5.3.4", + "picocolors": "^1.1.1", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/axios": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.14.0.tgz", + "integrity": "sha512-3Y8yrqLSwjuzpXuZ0oIYZ/XGgLwUIBU3uLvbcpb0pidD9ctpShJd43KSlEEkVQg6DS0G9NKyzOvBfUtDKEyHvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", + "proxy-from-env": "^2.1.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.17", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.17.tgz", + "integrity": "sha512-HdrkN8eVG2CXxeifv/VdJ4A4RSra1DTW8dc/hdxzhGHN8QePs6gKaWM9pHPcpCoxYZJuOZ8drHmbdpLHjCYjLA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001787", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001787.tgz", + "integrity": "sha512-mNcrMN9KeI68u7muanUpEejSLghOKlVhRqS/Za2IeyGllJ9I9otGpR9g3nsw7n4W378TE/LyIteA0+/FOZm4Kg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/concurrently": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.1.tgz", + "integrity": "sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "4.1.2", + "rxjs": "7.8.2", + "shell-quote": "1.8.3", + "supports-color": "8.1.1", + "tree-kill": "1.2.2", + "yargs": "17.7.2" + }, + "bin": { + "conc": "dist/bin/concurrently.js", + "concurrently": "dist/bin/concurrently.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.334", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.334.tgz", + "integrity": "sha512-mgjZAz7Jyx1SRCwEpy9wefDS7GvNPazLthHg8eQMJ76wBdGQQDW33TCrUTvQ4wzpmOrv2zrFoD3oNufMdyMpog==", + "dev": true, + "license": "ISC" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/enhanced-resolve": { + "version": "5.20.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz", + "integrity": "sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fastq": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", + "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fraction.js": { + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz", + "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/rawify" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/laravel-vite-plugin": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-3.0.1.tgz", + "integrity": "sha512-Bx8sVcLIaZT1d0eisABcmjQ1GZdJpaXcV66A8RhXGp9JgR3iL8jDnvakVDXuH87Tn5S9KNx3VOhmJZW1CSexOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "tinyglobby": "^0.2.12", + "vite-plugin-full-reload": "^1.1.0" + }, + "bin": { + "clean-orphaned-assets": "bin/clean.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^8.0.0" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mini-svg-data-uri": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", + "dev": true, + "license": "MIT", + "bin": { + "mini-svg-data-uri": "cli.js" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-releases": { + "version": "2.0.37", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.37.tgz", + "integrity": "sha512-1h5gKZCF+pO/o3Iqt5Jp7wc9rH3eJJ0+nh/CIoiRwjRxde/hAHyLPXYN4V3CqKAbiZPSeJFSWHmJsbkicta0Eg==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.5.9", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.9.tgz", + "integrity": "sha512-7a70Nsot+EMX9fFU3064K/kdHWZqGVY+BADLyXc8Dfv+mTLLVl6JzJpPaCZ2kQL9gIJvKXSLMHhqdRRjwQeFtw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz", + "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", + "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.1.1" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "jiti": ">=1.21.0", + "postcss": ">=8.0.9", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/proxy-from-env": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rolldown": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.15.tgz", + "integrity": "sha512-Ff31guA5zT6WjnGp0SXw76X6hzGRk/OQq2hE+1lcDe+lJdHSgnSX6nK3erbONHyCbpSj9a9E+uX/OvytZoWp2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.124.0", + "@rolldown/pluginutils": "1.0.0-rc.15" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.0-rc.15", + "@rolldown/binding-darwin-arm64": "1.0.0-rc.15", + "@rolldown/binding-darwin-x64": "1.0.0-rc.15", + "@rolldown/binding-freebsd-x64": "1.0.0-rc.15", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.15", + "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.15", + "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.15", + "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.15", + "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.15", + "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.15", + "@rolldown/binding-linux-x64-musl": "1.0.0-rc.15", + "@rolldown/binding-openharmony-arm64": "1.0.0-rc.15", + "@rolldown/binding-wasm32-wasi": "1.0.0-rc.15", + "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.15", + "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.15" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/shell-quote": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", + "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sweetalert2": { + "version": "11.26.24", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.26.24.tgz", + "integrity": "sha512-SLgukW4wicewpW5VOukSXY5Z6DL/z7HCOK2ODSjmQPiSphCN8gJAmh9npoceXOtBRNoDN0xIz+zHYthtfiHmjg==", + "license": "MIT", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/limonte" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.19", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz", + "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.7", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tailwindcss/node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/tapable": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.2.tgz", + "integrity": "sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true, + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite": { + "version": "8.0.8", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.8.tgz", + "integrity": "sha512-dbU7/iLVa8KZALJyLOBOQ88nOXtNG8vxKuOT4I2mD+Ya70KPceF4IAmDsmU0h1Qsn5bPrvsY9HJstCRh3hG6Uw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.8", + "rolldown": "1.0.0-rc.15", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.1.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite-plugin-full-reload": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.2.0.tgz", + "integrity": "sha512-kz18NW79x0IHbxRSHm0jttP4zoO9P9gXh+n6UTwlNKnviTTEpOlum6oS9SmecrTtSr+muHEn5TUuC75UovQzcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "picomatch": "^2.3.1" + } + }, + "node_modules/vite/node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..4759f08 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://www.schemastore.org/package.json", + "private": true, + "type": "module", + "scripts": { + "build": "vite build", + "dev": "vite" + }, + "devDependencies": { + "@tailwindcss/forms": "^0.5.2", + "@tailwindcss/vite": "^4.0.0", + "alpinejs": "^3.4.2", + "autoprefixer": "^10.4.2", + "axios": ">=1.11.0 <=1.14.0", + "concurrently": "^9.0.1", + "laravel-vite-plugin": "^3.0.0", + "postcss": "^8.4.31", + "tailwindcss": "^3.1.0", + "vite": "^8.0.0" + }, + "dependencies": { + "sweetalert2": "^11.26.24" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..e7f0a48 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,36 @@ + + + + + tests/Unit + + + tests/Feature + + + + + app + + + + + + + + + + + + + + + + + + + diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..49c0612 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..b574a59 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,25 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Handle X-XSRF-Token Header + RewriteCond %{HTTP:x-xsrf-token} . + RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..ee8f07e --- /dev/null +++ b/public/index.php @@ -0,0 +1,20 @@ +handleRequest(Request::capture()); diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/resources/css/app.css b/resources/css/app.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/resources/css/app.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/resources/js/app.js b/resources/js/app.js new file mode 100644 index 0000000..3c27784 --- /dev/null +++ b/resources/js/app.js @@ -0,0 +1,325 @@ +import './bootstrap'; + +import Alpine from 'alpinejs'; +import Swal from 'sweetalert2'; + +window.Alpine = Alpine; +window.Swal = Swal; + +Alpine.start(); + +document.addEventListener('DOMContentLoaded', () => { + document.querySelectorAll('.delete-form').forEach((form) => { + form.addEventListener('submit', (event) => { + event.preventDefault(); + + const entity = form.dataset.entity || 'data ini'; + + Swal.fire({ + title: 'Hapus data?', + text: `Yakin ingin menghapus ${entity}? Tindakan ini tidak bisa dibatalkan.`, + icon: 'warning', + showCancelButton: true, + confirmButtonColor: '#e11d48', + cancelButtonColor: '#475569', + confirmButtonText: 'Ya, hapus', + cancelButtonText: 'Batal', + reverseButtons: true, + }).then((result) => { + if (result.isConfirmed) { + form.submit(); + } + }); + }); + }); + + const passwordInput = document.querySelector('[data-password-input]'); + const passwordToggle = document.querySelector('[data-password-toggle]'); + + if (passwordInput && passwordToggle) { + passwordToggle.addEventListener('click', () => { + const isPassword = passwordInput.getAttribute('type') === 'password'; + passwordInput.setAttribute('type', isPassword ? 'text' : 'password'); + passwordToggle.setAttribute('aria-label', isPassword ? 'Sembunyikan password' : 'Tampilkan password'); + }); + } + + const documentTypeSelect = document.querySelector('[data-document-type-select]'); + const maxFileSizeInfo = document.querySelector('[data-max-file-size-info]'); + const allowedExtensionsInfo = document.querySelector('[data-allowed-extensions-info]'); + + if (documentTypeSelect && maxFileSizeInfo && allowedExtensionsInfo) { + const updateDocumentTypeInfo = () => { + const selectedOption = documentTypeSelect.options[documentTypeSelect.selectedIndex]; + const maxSizeKb = Number(selectedOption?.dataset?.maxSizeKb || 5120); + const maxSizeMb = (maxSizeKb / 1024).toFixed(2); + const extensions = (selectedOption?.dataset?.extensions || 'jpg,jpeg,png,pdf,webp') + .split(',') + .map((item) => item.trim().toUpperCase()) + .join(', '); + + maxFileSizeInfo.textContent = `Maksimal ukuran file untuk jenis dokumen ini: ${maxSizeMb} MB`; + allowedExtensionsInfo.textContent = `Format diizinkan: ${extensions}.`; + }; + + documentTypeSelect.addEventListener('change', updateDocumentTypeInfo); + updateDocumentTypeInfo(); + } + + const studentHoverTriggers = document.querySelectorAll('.student-hover-trigger'); + + if (studentHoverTriggers.length > 0) { + const hoverCard = document.createElement('div'); + hoverCard.className = 'pointer-events-none fixed z-[9999] hidden w-64 overflow-hidden rounded-[20px] border border-slate-200 bg-white p-2.5 shadow-[0_20px_45px_-20px_rgba(15,23,42,0.35)] transition-opacity duration-150'; + document.body.appendChild(hoverCard); + + const renderHoverCard = (trigger) => { + const photoUrl = trigger.dataset.photoUrl; + const studentName = trigger.dataset.studentName || '-'; + const studentNis = trigger.dataset.studentNis || '-'; + const studentClass = trigger.dataset.studentClass || '-'; + const studentDepartment = trigger.dataset.studentDepartment || '-'; + const studentInitial = studentName.charAt(0).toUpperCase(); + + hoverCard.innerHTML = ` +
+
+ ${photoUrl + ? `
+
+ ${studentName} +
` + : `
+
${studentInitial}
+
No Photo
+
`} +
+
${studentName}
+
NIS · ${studentNis}
+
+
${studentClass}
+
${studentDepartment}
+
+
+ `; + }; + + const positionHoverCard = (trigger) => { + const rect = trigger.getBoundingClientRect(); + const cardWidth = 256; + const cardHeight = 120; + let left = rect.left; + let top = rect.bottom + 12; + + if (left + cardWidth > window.innerWidth - 16) { + left = window.innerWidth - cardWidth - 16; + } + + if (top + cardHeight > window.innerHeight - 16) { + top = rect.top - cardHeight - 12; + } + + if (top < 16) { + top = 16; + } + + hoverCard.style.left = `${Math.max(left, 16)}px`; + hoverCard.style.top = `${top}px`; + }; + + const showHoverCard = (trigger) => { + renderHoverCard(trigger); + positionHoverCard(trigger); + hoverCard.classList.remove('hidden'); + hoverCard.style.opacity = '1'; + }; + + const hideHoverCard = () => { + hoverCard.style.opacity = '0'; + hoverCard.classList.add('hidden'); + }; + + studentHoverTriggers.forEach((trigger) => { + trigger.addEventListener('mouseenter', () => showHoverCard(trigger)); + trigger.addEventListener('mouseleave', hideHoverCard); + trigger.addEventListener('focus', () => showHoverCard(trigger)); + trigger.addEventListener('blur', hideHoverCard); + }); + + window.addEventListener('scroll', hideHoverCard, true); + window.addEventListener('resize', hideHoverCard); + } + + const bulkDeleteStudentsForm = document.querySelector('#bulk-delete-students-form'); + + if (bulkDeleteStudentsForm) { + const selectAllCheckbox = document.querySelector('#select-all-students'); + const rowCheckboxes = bulkDeleteStudentsForm.querySelectorAll('.student-row-checkbox'); + const bulkDeleteButton = document.querySelector('#bulk-delete-students-button'); + + const syncBulkDeleteState = () => { + const checkedCount = Array.from(rowCheckboxes).filter((checkbox) => checkbox.checked).length; + + if (bulkDeleteButton) { + bulkDeleteButton.disabled = checkedCount === 0; + bulkDeleteButton.classList.toggle('opacity-50', checkedCount === 0); + bulkDeleteButton.classList.toggle('cursor-not-allowed', checkedCount === 0); + } + + if (selectAllCheckbox) { + selectAllCheckbox.checked = checkedCount > 0 && checkedCount === rowCheckboxes.length; + selectAllCheckbox.indeterminate = checkedCount > 0 && checkedCount < rowCheckboxes.length; + } + }; + + selectAllCheckbox?.addEventListener('change', () => { + rowCheckboxes.forEach((checkbox) => { + checkbox.checked = selectAllCheckbox.checked; + }); + syncBulkDeleteState(); + }); + + rowCheckboxes.forEach((checkbox) => { + checkbox.addEventListener('change', syncBulkDeleteState); + }); + + bulkDeleteStudentsForm.addEventListener('submit', (event) => { + const checkedCount = Array.from(rowCheckboxes).filter((checkbox) => checkbox.checked).length; + + if (checkedCount === 0) { + event.preventDefault(); + return; + } + + event.preventDefault(); + + Swal.fire({ + title: 'Hapus banyak data siswa?', + text: `${checkedCount} data siswa yang dipilih akan dihapus. Tindakan ini tidak bisa dibatalkan.`, + icon: 'warning', + showCancelButton: true, + confirmButtonColor: '#e11d48', + cancelButtonColor: '#475569', + confirmButtonText: 'Ya, hapus semua', + cancelButtonText: 'Batal', + reverseButtons: true, + }).then((result) => { + if (result.isConfirmed) { + bulkDeleteStudentsForm.submit(); + } + }); + }); + + syncBulkDeleteState(); + } + + const promotionForm = document.querySelector('[data-student-promotion-form]'); + + if (promotionForm) { + const rows = promotionForm.querySelectorAll('tbody tr'); + const renderTargetOptions = (targetSelect, actionValue) => { + if (!targetSelect) { + return 0; + } + + const optionKey = actionValue === 'repeat' ? 'optionsRepeat' : 'optionsPromote'; + const selectedKey = actionValue === 'repeat' ? 'selectedRepeat' : 'selectedPromote'; + const options = JSON.parse(targetSelect.dataset[optionKey] || '[]'); + const selectedValue = targetSelect.dataset[selectedKey] || ''; + + targetSelect.innerHTML = ''; + + options.forEach((option) => { + const optionElement = document.createElement('option'); + optionElement.value = option.id; + optionElement.textContent = option.name; + if (String(option.id) === String(selectedValue)) { + optionElement.selected = true; + } + targetSelect.appendChild(optionElement); + }); + + return options.length; + }; + + const applyRowActionState = (row, actionValue) => { + const targetSelect = row.querySelector('.promotion-target-select'); + const targetHelp = row.querySelector('.promotion-target-help'); + const graduatePlaceholder = row.querySelector('.promotion-graduate-placeholder'); + const hiddenTarget = row.querySelector('[data-promotion-target-hidden]'); + + if (targetSelect) { + const requiresTarget = actionValue === 'promote' || actionValue === 'repeat'; + const optionCount = requiresTarget ? renderTargetOptions(targetSelect, actionValue) : 0; + targetSelect.disabled = !requiresTarget; + targetSelect.classList.toggle('bg-slate-100', !requiresTarget); + targetSelect.classList.toggle('text-slate-400', !requiresTarget); + targetSelect.classList.toggle('hidden', !requiresTarget); + + if (!requiresTarget) { + targetSelect.value = ''; + } + + if (targetHelp) { + if (actionValue === 'skip') { + targetHelp.textContent = 'Siswa ini akan dilewati saat proses promosi.'; + } else if (actionValue === 'graduate') { + targetHelp.textContent = 'Aksi lulus tidak memerlukan kelas tujuan.'; + } else if (optionCount === 0) { + targetHelp.textContent = actionValue === 'repeat' + ? 'Belum ada kelas aktif dengan level yang sama pada tahun ajaran target.' + : 'Belum ada kelas aktif level berikutnya pada tahun ajaran target.'; + } else { + targetHelp.textContent = actionValue === 'repeat' + ? 'Pilih kelas tujuan dengan level yang sama untuk skenario tinggal kelas.' + : 'Pilih kelas tujuan level berikutnya untuk skenario naik kelas.'; + } + } + } + + if (graduatePlaceholder) { + graduatePlaceholder.classList.toggle('hidden', actionValue !== 'graduate'); + graduatePlaceholder.classList.toggle('opacity-60', actionValue === 'skip'); + } + + if (hiddenTarget && (actionValue === 'graduate' || actionValue === 'skip')) { + hiddenTarget.value = ''; + } + + row.classList.toggle('opacity-60', actionValue === 'skip'); + }; + + rows.forEach((row) => { + const actionSelect = row.querySelector('.promotion-action-select'); + if (!actionSelect) { + return; + } + + applyRowActionState(row, actionSelect.value); + actionSelect.addEventListener('change', () => applyRowActionState(row, actionSelect.value)); + }); + + promotionForm.querySelectorAll('[data-promotion-bulk-action]').forEach((button) => { + button.addEventListener('click', () => { + const actionValue = button.dataset.promotionBulkAction; + + rows.forEach((row) => { + const actionSelect = row.querySelector('.promotion-action-select'); + if (!actionSelect) { + return; + } + + if (actionValue === 'promote' && actionSelect.querySelector('option[value="promote"]')) { + actionSelect.value = 'promote'; + } else if (actionValue === 'repeat') { + actionSelect.value = 'repeat'; + } else if (actionValue === 'skip') { + actionSelect.value = 'skip'; + } + + applyRowActionState(row, actionSelect.value); + }); + }); + }); + } +}); diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js new file mode 100644 index 0000000..5f1390b --- /dev/null +++ b/resources/js/bootstrap.js @@ -0,0 +1,4 @@ +import axios from 'axios'; +window.axios = axios; + +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; diff --git a/resources/views/academic-years/create.blade.php b/resources/views/academic-years/create.blade.php new file mode 100644 index 0000000..da01bf3 --- /dev/null +++ b/resources/views/academic-years/create.blade.php @@ -0,0 +1,22 @@ + + +
+ @csrf + +
+ +
+ + +
+
+ + + +
+ + Batal +
+ +
+
diff --git a/resources/views/academic-years/edit.blade.php b/resources/views/academic-years/edit.blade.php new file mode 100644 index 0000000..eeef8f7 --- /dev/null +++ b/resources/views/academic-years/edit.blade.php @@ -0,0 +1,23 @@ + + +
+ @csrf + @method('PUT') + +
+ +
+ + +
+
+ + + +
+ + Batal +
+ +
+
diff --git a/resources/views/academic-years/index.blade.php b/resources/views/academic-years/index.blade.php new file mode 100644 index 0000000..1e5eb81 --- /dev/null +++ b/resources/views/academic-years/index.blade.php @@ -0,0 +1,70 @@ + + +
+
+ +
+
+ + Reset +
+
+
+ + + @forelse ($academicYears as $academicYear) + + +
{{ $academicYear->name }}
+ + {{ $academicYear->start_year }} + {{ $academicYear->end_year }} + +
+ Kelas: {{ $academicYear->classes_count }} + Siswa: {{ $academicYear->students_count }} +
+ + + @if ($academicYear->is_active) + Aktif + @else + Nonaktif + @endif + + +
+ Edit + @php + $canDelete = $academicYear->classes_count === 0 && $academicYear->students_count === 0; + @endphp + @if ($canDelete) +
+ @csrf + @method('DELETE') + +
+ @else + + @endif +
+ + + @empty + + Belum ada data tahun angkatan. + + @endforelse +
+ +
+ {{ $academicYears->links() }} +
+
diff --git a/resources/views/auth/confirm-password.blade.php b/resources/views/auth/confirm-password.blade.php new file mode 100644 index 0000000..3d38186 --- /dev/null +++ b/resources/views/auth/confirm-password.blade.php @@ -0,0 +1,27 @@ + +
+ {{ __('This is a secure area of the application. Please confirm your password before continuing.') }} +
+ +
+ @csrf + + +
+ + + + + +
+ +
+ + {{ __('Confirm') }} + +
+
+
diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php new file mode 100644 index 0000000..cb32e08 --- /dev/null +++ b/resources/views/auth/forgot-password.blade.php @@ -0,0 +1,25 @@ + +
+ {{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }} +
+ + + + +
+ @csrf + + +
+ + + +
+ +
+ + {{ __('Email Password Reset Link') }} + +
+
+
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php new file mode 100644 index 0000000..2c5a5de --- /dev/null +++ b/resources/views/auth/login.blade.php @@ -0,0 +1,84 @@ + + + +
+
Akses Administrator
+

+ Masukkan Kredensial yang anda miliki, jika anda tidak punya/lupa silahkan hubungi Administrator. +

+
+ +
+ @csrf + +
+ + + +
+ +
+
+ + @if (Route::has('password.request')) + + Lupa password? + + @endif +
+ +
+ + +
+ +
+ + + +
+ Tips: jika ini instalasi baru, gunakan akun admin yang sudah dibuat saat setup awal aplikasi. +
+ +
+
+ Pastikan kredensial yang dipakai memang akun administrator aktif. +
+ +
+
+
diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php new file mode 100644 index 0000000..a857242 --- /dev/null +++ b/resources/views/auth/register.blade.php @@ -0,0 +1,52 @@ + +
+ @csrf + + +
+ + + +
+ + +
+ + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ +
+ + {{ __('Already registered?') }} + + + + {{ __('Register') }} + +
+
+
diff --git a/resources/views/auth/reset-password.blade.php b/resources/views/auth/reset-password.blade.php new file mode 100644 index 0000000..a6494cc --- /dev/null +++ b/resources/views/auth/reset-password.blade.php @@ -0,0 +1,39 @@ + +
+ @csrf + + + + + +
+ + + +
+ + +
+ + + +
+ + +
+ + + + + +
+ +
+ + {{ __('Reset Password') }} + +
+
+
diff --git a/resources/views/auth/verify-email.blade.php b/resources/views/auth/verify-email.blade.php new file mode 100644 index 0000000..eaf811d --- /dev/null +++ b/resources/views/auth/verify-email.blade.php @@ -0,0 +1,31 @@ + +
+ {{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }} +
+ + @if (session('status') == 'verification-link-sent') +
+ {{ __('A new verification link has been sent to the email address you provided during registration.') }} +
+ @endif + +
+
+ @csrf + +
+ + {{ __('Resend Verification Email') }} + +
+
+ +
+ @csrf + + +
+
+
diff --git a/resources/views/classes/create.blade.php b/resources/views/classes/create.blade.php new file mode 100644 index 0000000..77d9e83 --- /dev/null +++ b/resources/views/classes/create.blade.php @@ -0,0 +1,23 @@ + + +
+ @csrf + +
+ + + + + + +
+ + + +
+ + Batal +
+ +
+
diff --git a/resources/views/classes/edit.blade.php b/resources/views/classes/edit.blade.php new file mode 100644 index 0000000..e350d47 --- /dev/null +++ b/resources/views/classes/edit.blade.php @@ -0,0 +1,24 @@ + + +
+ @csrf + @method('PUT') + +
+ + + + + + +
+ + + +
+ + Batal +
+ +
+
diff --git a/resources/views/classes/index.blade.php b/resources/views/classes/index.blade.php new file mode 100644 index 0000000..c3d345a --- /dev/null +++ b/resources/views/classes/index.blade.php @@ -0,0 +1,112 @@ + + +
+ @csrf +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+ +
+ Tips: untuk persiapan promosi siswa, biasanya pilih mode Naikkan level kelas agar kelas X pada tahun lama menjadi XI di tahun baru, dan XI menjadi XII. +
+
+ + +
+
+ +
+
+ + Reset +
+
+
+ + + @forelse ($classes as $class) + + +
{{ $class->name }}
+
Wali Kelas: {{ $class->homeroom_teacher ?: '-' }}
+ + {{ $class->level }} + {{ $class->academicYear?->name }} + {{ $class->department?->name }} + + Siswa: {{ $class->students_count }} + + + Histori: {{ $class->academic_histories_count }} + + + @if ($class->is_active) + Aktif + @else + Nonaktif + @endif + + +
+ Edit + @if ($class->students_count === 0 && $class->academic_histories_count === 0) +
+ @csrf + @method('DELETE') + +
+ @else + + @endif +
+ + + @empty + + Belum ada data kelas. + + @endforelse +
+ +
+ {{ $classes->links() }} +
+
diff --git a/resources/views/components/application-logo.blade.php b/resources/views/components/application-logo.blade.php new file mode 100644 index 0000000..46579cf --- /dev/null +++ b/resources/views/components/application-logo.blade.php @@ -0,0 +1,3 @@ + + + diff --git a/resources/views/components/auth-session-status.blade.php b/resources/views/components/auth-session-status.blade.php new file mode 100644 index 0000000..c4bd6e2 --- /dev/null +++ b/resources/views/components/auth-session-status.blade.php @@ -0,0 +1,7 @@ +@props(['status']) + +@if ($status) +
merge(['class' => 'font-medium text-sm text-green-600']) }}> + {{ $status }} +
+@endif diff --git a/resources/views/components/danger-button.blade.php b/resources/views/components/danger-button.blade.php new file mode 100644 index 0000000..d17d288 --- /dev/null +++ b/resources/views/components/danger-button.blade.php @@ -0,0 +1,3 @@ + diff --git a/resources/views/components/data-table.blade.php b/resources/views/components/data-table.blade.php new file mode 100644 index 0000000..af3bd4d --- /dev/null +++ b/resources/views/components/data-table.blade.php @@ -0,0 +1,18 @@ +@props(['headers' => []]) + +
+
+ + + + @foreach ($headers as $header) + + @endforeach + + + + {{ $slot }} + +
{{ $header }}
+
+
diff --git a/resources/views/components/dropdown-link.blade.php b/resources/views/components/dropdown-link.blade.php new file mode 100644 index 0000000..e0f8ce1 --- /dev/null +++ b/resources/views/components/dropdown-link.blade.php @@ -0,0 +1 @@ +merge(['class' => 'block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out']) }}>{{ $slot }} diff --git a/resources/views/components/dropdown.blade.php b/resources/views/components/dropdown.blade.php new file mode 100644 index 0000000..a46f7c8 --- /dev/null +++ b/resources/views/components/dropdown.blade.php @@ -0,0 +1,35 @@ +@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white']) + +@php +$alignmentClasses = match ($align) { + 'left' => 'ltr:origin-top-left rtl:origin-top-right start-0', + 'top' => 'origin-top', + default => 'ltr:origin-top-right rtl:origin-top-left end-0', +}; + +$width = match ($width) { + '48' => 'w-48', + default => $width, +}; +@endphp + +
+
+ {{ $trigger }} +
+ + +
diff --git a/resources/views/components/form-checkbox.blade.php b/resources/views/components/form-checkbox.blade.php new file mode 100644 index 0000000..0d1398a --- /dev/null +++ b/resources/views/components/form-checkbox.blade.php @@ -0,0 +1,17 @@ +@props([ + 'name', + 'label', + 'checked' => false, + 'value' => 1, +]) + + diff --git a/resources/views/components/form-input.blade.php b/resources/views/components/form-input.blade.php new file mode 100644 index 0000000..def4efd --- /dev/null +++ b/resources/views/components/form-input.blade.php @@ -0,0 +1,21 @@ +@props([ + 'name', + 'label', + 'type' => 'text', + 'value' => '', + 'placeholder' => '', + 'required' => false, +]) + +
+ + merge(['class' => 'h-12 w-full rounded-2xl border border-slate-200 bg-white px-4 text-sm text-slate-700 placeholder:text-slate-400 focus:border-indigo-300 focus:outline-none focus:ring-4 focus:ring-indigo-100']) }} + > +
diff --git a/resources/views/components/form-select.blade.php b/resources/views/components/form-select.blade.php new file mode 100644 index 0000000..d9d1d03 --- /dev/null +++ b/resources/views/components/form-select.blade.php @@ -0,0 +1,21 @@ +@props([ + 'name', + 'label', + 'options' => [], + 'value' => null, + 'placeholder' => '-- Pilih --', +]) + +
+ + +
diff --git a/resources/views/components/form-textarea.blade.php b/resources/views/components/form-textarea.blade.php new file mode 100644 index 0000000..d3a8e2c --- /dev/null +++ b/resources/views/components/form-textarea.blade.php @@ -0,0 +1,18 @@ +@props([ + 'name', + 'label', + 'value' => '', + 'placeholder' => '', + 'rows' => 4, +]) + +
+ + +
diff --git a/resources/views/components/input-error.blade.php b/resources/views/components/input-error.blade.php new file mode 100644 index 0000000..9e6da21 --- /dev/null +++ b/resources/views/components/input-error.blade.php @@ -0,0 +1,9 @@ +@props(['messages']) + +@if ($messages) +
    merge(['class' => 'text-sm text-red-600 space-y-1']) }}> + @foreach ((array) $messages as $message) +
  • {{ $message }}
  • + @endforeach +
+@endif diff --git a/resources/views/components/input-label.blade.php b/resources/views/components/input-label.blade.php new file mode 100644 index 0000000..1cc65e2 --- /dev/null +++ b/resources/views/components/input-label.blade.php @@ -0,0 +1,5 @@ +@props(['value']) + + diff --git a/resources/views/components/master-card.blade.php b/resources/views/components/master-card.blade.php new file mode 100644 index 0000000..da91334 --- /dev/null +++ b/resources/views/components/master-card.blade.php @@ -0,0 +1,18 @@ +@props(['title' => null, 'subtitle' => null]) + +
+ @if ($title || $subtitle) +
+ @if ($title) +

{{ $title }}

+ @endif + @if ($subtitle) +

{{ $subtitle }}

+ @endif +
+ @endif + +
+ {{ $slot }} +
+
diff --git a/resources/views/components/master-page.blade.php b/resources/views/components/master-page.blade.php new file mode 100644 index 0000000..c6aeb39 --- /dev/null +++ b/resources/views/components/master-page.blade.php @@ -0,0 +1,50 @@ +@props([ + 'title', + 'description' => null, + 'actionLabel' => null, + 'actionUrl' => null, +]) + + + @php + $viewErrors = $errors ?? new \Illuminate\Support\ViewErrorBag(); + @endphp + + +
+
+

{{ $title }}

+ @if ($description) +

{{ $description }}

+ @endif +
+ + @if ($actionLabel && $actionUrl) + + {{ $actionLabel }} + + @endif +
+
+ +
+ @if (session('success')) +
+ {{ session('success') }} +
+ @endif + + @if ($viewErrors->any()) +
+
Ada data yang perlu diperbaiki:
+
    + @foreach ($viewErrors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + + {{ $slot }} +
+
diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.php new file mode 100644 index 0000000..70704c1 --- /dev/null +++ b/resources/views/components/modal.blade.php @@ -0,0 +1,78 @@ +@props([ + 'name', + 'show' => false, + 'maxWidth' => '2xl' +]) + +@php +$maxWidth = [ + 'sm' => 'sm:max-w-sm', + 'md' => 'sm:max-w-md', + 'lg' => 'sm:max-w-lg', + 'xl' => 'sm:max-w-xl', + '2xl' => 'sm:max-w-2xl', +][$maxWidth]; +@endphp + +
+
+
+
+ +
+ {{ $slot }} +
+
diff --git a/resources/views/components/nav-link.blade.php b/resources/views/components/nav-link.blade.php new file mode 100644 index 0000000..5c101a2 --- /dev/null +++ b/resources/views/components/nav-link.blade.php @@ -0,0 +1,11 @@ +@props(['active']) + +@php +$classes = ($active ?? false) + ? 'inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-medium leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out' + : 'inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out'; +@endphp + +merge(['class' => $classes]) }}> + {{ $slot }} + diff --git a/resources/views/components/primary-button.blade.php b/resources/views/components/primary-button.blade.php new file mode 100644 index 0000000..d71f0b6 --- /dev/null +++ b/resources/views/components/primary-button.blade.php @@ -0,0 +1,3 @@ + diff --git a/resources/views/components/responsive-nav-link.blade.php b/resources/views/components/responsive-nav-link.blade.php new file mode 100644 index 0000000..43b91e7 --- /dev/null +++ b/resources/views/components/responsive-nav-link.blade.php @@ -0,0 +1,11 @@ +@props(['active']) + +@php +$classes = ($active ?? false) + ? 'block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out' + : 'block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out'; +@endphp + +merge(['class' => $classes]) }}> + {{ $slot }} + diff --git a/resources/views/components/secondary-button.blade.php b/resources/views/components/secondary-button.blade.php new file mode 100644 index 0000000..b32b69f --- /dev/null +++ b/resources/views/components/secondary-button.blade.php @@ -0,0 +1,3 @@ + diff --git a/resources/views/components/text-input.blade.php b/resources/views/components/text-input.blade.php new file mode 100644 index 0000000..da1b12d --- /dev/null +++ b/resources/views/components/text-input.blade.php @@ -0,0 +1,3 @@ +@props(['disabled' => false]) + +merge(['class' => 'border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm']) }}> diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php new file mode 100644 index 0000000..83e310b --- /dev/null +++ b/resources/views/dashboard.blade.php @@ -0,0 +1,270 @@ + + @php + $isAdmin = auth()->user()?->isAdmin() ?? false; + @endphp + + +
+
+

+ Dashboard Admin +

+

+ Ringkasan operasional Database Kesiswaan, mulai dari master data, siswa, hingga status kelengkapan dokumen. +

+
+ + +
+
+ +
+
+
+
+
+
+ + Ringkasan Utama +
+

+ Ringkasan utama statistik siswa dalam satu panel. +

+

+ Lihat total siswa, siswa keluar, siswa mutasi, dan siswa lulus secara cepat dari dashboard utama. +

+ +
+
Ringkasan status siswa
+
Arsip keluar & mutasi
+
Monitoring lulusan
+
+
+ +
+
+
+
+

Total Siswa

+
{{ $stats['students'] }}
+
+
+ + + + +
+
+

Jumlah seluruh siswa yang tercatat di sistem saat ini.

+
+ +
+
+
+

Siswa Keluar

+
{{ $stats['studentsDropped'] }}
+
+
+ + + + +
+
+

Jumlah siswa pada arsip siswa keluar.

+
+ +
+
+
+

Siswa Mutasi

+
{{ $stats['studentsTransferred'] }}
+
+
+ + + + +
+
+

Jumlah siswa pada arsip siswa mutasi.

+
+ +
+
+
+

Siswa Lulus

+
{{ $stats['studentsGraduated'] }}
+
+
+ + + + +
+
+

Jumlah siswa yang sudah berstatus lulus.

+
+
+
+
+ + +
+
+ Tahun Angkatan + {{ $stats['academicYears'] }} +
+
+ Program Keahlian + {{ $stats['departments'] }} +
+
+ Kelas + {{ $stats['classes'] }} +
+
+ Jenis Dokumen + {{ $stats['documentTypes'] }} +
+
+
+
+ +
+
+
+
+

Data Siswa

+

{{ $stats['students'] }}

+
+
+ + + +
+
+

Total siswa aktif yang tersimpan di sistem.

+
+ +
+
+
+

Dokumen Wajib Lengkap

+

{{ $stats['studentsCompleteDocuments'] }}

+
+
+ + + +
+
+

Siswa yang sudah upload seluruh dokumen wajib.

+
+ +
+
+
+

Belum Lengkap

+

{{ $stats['studentsIncompleteDocuments'] }}

+
+
+ + + +
+
+

Siswa yang masih kurang upload dokumen wajib.

+
+ +
+
+
+

Belum Tervalidasi Penuh

+

{{ $stats['studentsUnverifiedDocuments'] }}

+
+
+ + + +
+
+

Siswa yang dokumen wajibnya belum valid semua.

+
+
+ +
+ + + + + +
+
+ Auth & Login + Aktif +
+
+ Master Data + Aktif +
+
+ Data Siswa + Aktif +
+
+ Dokumen & Verifikasi + Aktif +
+
+ Histori Akademik + Siap +
+
+ Promosi Siswa + Siap +
+
+
+ + +
+
+
Prioritas data
+

Pastikan master kelas dan tahun ajaran selalu siap sebelum proses promosi siswa dilakukan.

+
+
+
Prioritas validasi
+

Gunakan indikator dokumen lengkap dan tervalidasi penuh untuk memantau kualitas data siswa.

+
+
+
Prioritas berikutnya
+

Step paling sehat setelah ini adalah role & permission atau reporting/dashboard lanjutan.

+
+
+
+
+
+
diff --git a/resources/views/departments/create.blade.php b/resources/views/departments/create.blade.php new file mode 100644 index 0000000..90f4abc --- /dev/null +++ b/resources/views/departments/create.blade.php @@ -0,0 +1,21 @@ + + +
+ @csrf + +
+ + +
+ + + + + +
+ + Batal +
+ +
+
diff --git a/resources/views/departments/edit.blade.php b/resources/views/departments/edit.blade.php new file mode 100644 index 0000000..5d1bc35 --- /dev/null +++ b/resources/views/departments/edit.blade.php @@ -0,0 +1,22 @@ + + +
+ @csrf + @method('PUT') + +
+ + +
+ + + + + +
+ + Batal +
+ +
+
diff --git a/resources/views/departments/index.blade.php b/resources/views/departments/index.blade.php new file mode 100644 index 0000000..116e363 --- /dev/null +++ b/resources/views/departments/index.blade.php @@ -0,0 +1,68 @@ + + +
+
+ +
+
+ + Reset +
+
+
+ + + @forelse ($departments as $department) + + {{ $department->code }} + {{ $department->name }} + +
+ Kelas: {{ $department->classes_count }} + Siswa: {{ $department->students_count }} +
+ + {{ $department->description ?: '-' }} + + @if ($department->is_active) + Aktif + @else + Nonaktif + @endif + + +
+ Edit + @php + $canDelete = $department->classes_count === 0 && $department->students_count === 0; + @endphp + @if ($canDelete) +
+ @csrf + @method('DELETE') + +
+ @else + + @endif +
+ + + @empty + + Belum ada data program keahlian. + + @endforelse +
+ +
+ {{ $departments->links() }} +
+
diff --git a/resources/views/document-types/create.blade.php b/resources/views/document-types/create.blade.php new file mode 100644 index 0000000..d2eae8c --- /dev/null +++ b/resources/views/document-types/create.blade.php @@ -0,0 +1,27 @@ + + +
+ @csrf + +
+ + + + +
+ + +

Pisahkan format dengan koma. Contoh: jpg,jpeg,png,pdf

+ +
+ + +
+ +
+ + Batal +
+ +
+
diff --git a/resources/views/document-types/edit.blade.php b/resources/views/document-types/edit.blade.php new file mode 100644 index 0000000..158d779 --- /dev/null +++ b/resources/views/document-types/edit.blade.php @@ -0,0 +1,28 @@ + + +
+ @csrf + @method('PUT') + +
+ + + + +
+ + +

Pisahkan format dengan koma. Contoh: jpg,jpeg,png,pdf

+ +
+ + +
+ +
+ + Batal +
+ +
+
diff --git a/resources/views/document-types/index.blade.php b/resources/views/document-types/index.blade.php new file mode 100644 index 0000000..2df5d5a --- /dev/null +++ b/resources/views/document-types/index.blade.php @@ -0,0 +1,77 @@ + + +
+
+ +
+
+ + Reset +
+
+
+ + + @forelse ($documentTypes as $documentType) + + {{ $documentType->code }} + +
{{ $documentType->name }}
+
{{ $documentType->description ?: 'Tanpa deskripsi' }}
+ + + {{ $documentType->allowed_extensions ?: 'jpg,jpeg,png,pdf,webp' }} + + + {{ $documentType->max_file_size_kb ? number_format($documentType->max_file_size_kb / 1024, 2) . ' MB' : 'Default 5 MB' }} + + + Dokumen: {{ $documentType->student_documents_count }} + + + @if ($documentType->is_required) + Wajib + @else + Opsional + @endif + + + @if ($documentType->is_active) + Aktif + @else + Nonaktif + @endif + + +
+ Edit + @if ($documentType->student_documents_count === 0) +
+ @csrf + @method('DELETE') + +
+ @else + + @endif +
+ + + @empty + + Belum ada data jenis dokumen. + + @endforelse +
+ +
+ {{ $documentTypes->links() }} +
+
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php new file mode 100644 index 0000000..8a8e58b --- /dev/null +++ b/resources/views/layouts/app.blade.php @@ -0,0 +1,32 @@ +@php + try { + $branding = \App\Models\AppSetting::branding(); + } catch (\Throwable $e) { + $branding = \App\Models\AppSetting::brandingDefaults(); + } +@endphp + + + + + + + + {{ $branding['app_name'] ?? config('app.name', 'Database Kesiswaan') }} + + @if (!empty($branding['app_favicon'])) + + @endif + + + + + + + @vite(['resources/css/app.css', 'resources/js/app.js']) + + + @include('sweetalert::alert') + @include('layouts.navigation') + + diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php new file mode 100644 index 0000000..dcbe418 --- /dev/null +++ b/resources/views/layouts/guest.blade.php @@ -0,0 +1,86 @@ +@php + try { + $branding = \App\Models\AppSetting::branding(); + } catch (\Throwable $e) { + $branding = \App\Models\AppSetting::brandingDefaults(); + } +@endphp + + + + + + + + {{ $branding['app_name'] ?? config('app.name', 'Database Kesiswaan') }} + + @if (!empty($branding['app_favicon'])) + + @endif + + + + + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+
+ +
+
+ + +
+
+
+
+
+ @if (!empty($branding['app_logo'])) + {{ $branding['app_name'] }} + @else + {{ $branding['app_short_name'] ?? 'DK' }} + @endif +
+
+
Login Admin
+

Masuk ke {{ $branding['app_name'] ?? 'Database Kesiswaan' }}

+

Gunakan akun administrator untuk mengakses panel.

+
+
+
+ +
+ {{ $slot }} +
+
+
+
+
+
+ + diff --git a/resources/views/layouts/master-placeholder.blade.php b/resources/views/layouts/master-placeholder.blade.php new file mode 100644 index 0000000..c3bada2 --- /dev/null +++ b/resources/views/layouts/master-placeholder.blade.php @@ -0,0 +1,48 @@ + + +
+
+

{{ $title }}

+ @isset($description) +

{{ $description }}

+ @endisset +
+ + @isset($actionLabel) + + @endisset +
+
+ +
+
+
+
+
+
Halaman sedang disiapkan
+

+ Struktur route, layout, dan navigasi sudah aktif. Berikutnya tinggal implementasi CRUD penuh untuk modul ini. +

+
+ TailAdmin Inspired +
+
+ +
+
+
+ + + +
+
{{ $title }}
+

+ Placeholder aktif. Bro bisa lanjut langsung membuat tabel data, form tambah/edit, validasi, pencarian, pagination, dan aksi simpan/hapus dengan gaya UI yang konsisten. +

+
+
+
+
+
diff --git a/resources/views/layouts/navigation.blade.php b/resources/views/layouts/navigation.blade.php new file mode 100644 index 0000000..b419a24 --- /dev/null +++ b/resources/views/layouts/navigation.blade.php @@ -0,0 +1,342 @@ +@php + $user = auth()->user(); + $isAdmin = $user && method_exists($user, 'isAdmin') ? $user->isAdmin() : false; + try { + $branding = \App\Models\AppSetting::branding(); + } catch (\Throwable $e) { + $branding = \App\Models\AppSetting::brandingDefaults(); + } + + $masterDataOpen = request()->routeIs('academic-years.*') + || request()->routeIs('departments.*') + || request()->routeIs('classes.*') + || request()->routeIs('document-types.*'); + + $kesiswaanOpen = request()->routeIs('students.*') + || request()->routeIs('student-exits.*') + || request()->routeIs('student-transfers.*') + || request()->routeIs('student-promotions.*') + || request()->routeIs('student-self-service.*'); + + $settingsOpen = request()->routeIs('settings.*'); +@endphp + +
+
+ + + +
+
+
+
+ + +
+

Panel Admin

+

{{ $branding['app_name'] ?? 'Database Kesiswaan' }}

+
+
+ +
+
+ @php + $currentUser = auth()->user(); + $currentUserName = data_get($currentUser, 'name', 'User'); + $currentUserEmail = data_get($currentUser, 'email', '-'); + $currentUserInitial = strtoupper(substr((string) $currentUserName, 0, 1)) ?: 'U'; + @endphp + + + +
+
+
{{ $currentUserName }}
+
{{ $currentUserEmail }}
+
+
+ + Profil Administrator + +
+ @csrf + +
+
+
+
+
+
+
+ +
+ @isset($header) +
+ {{ $header }} +
+ @endisset + + {{ $slot }} +
+
+
diff --git a/resources/views/maintenance/reset-data.blade.php b/resources/views/maintenance/reset-data.blade.php new file mode 100644 index 0000000..16156e5 --- /dev/null +++ b/resources/views/maintenance/reset-data.blade.php @@ -0,0 +1,78 @@ + + +
+
Catatan penting:
+
    +
  • Mas bisa memilih tabel/kelompok data tertentu saja.
  • +
  • Backend akan menambahkan dependensi yang wajib ikut dibersihkan supaya tidak bentrok foreign key.
  • +
  • Untuk dokumen siswa, file fisik di storage juga ikut dibersihkan.
  • +
  • Konfirmasi memakai password admin yang sedang login.
  • +
+
+ +
+
Tahun
{{ $stats['academicYears'] }}
+
Jurusan
{{ $stats['departments'] }}
+
Kelas
{{ $stats['classes'] }}
+
Jenis Dokumen
{{ $stats['documentTypes'] }}
+
Siswa
{{ $stats['students'] }}
+
Ortu/Wali
{{ $stats['studentParents'] }}
+
Dokumen
{{ $stats['studentDocuments'] }}
+
Histori
{{ $stats['studentAcademicHistories'] }}
+
+ +
+ @csrf + +
+
Pilih data yang ingin dikosongkan
+
+ @foreach ($targets as $key => $label) + + @endforeach +
+
+ +
+ + +
+ +
+ + + Batal + +
+
+
+
diff --git a/resources/views/profile/edit.blade.php b/resources/views/profile/edit.blade.php new file mode 100644 index 0000000..b67bf3c --- /dev/null +++ b/resources/views/profile/edit.blade.php @@ -0,0 +1,16 @@ + +
+
+
+ @include('profile.partials.update-profile-information-form') +
+
+ +
+
+ @include('profile.partials.update-password-form') +
+
+ +
+
diff --git a/resources/views/profile/partials/update-password-form.blade.php b/resources/views/profile/partials/update-password-form.blade.php new file mode 100644 index 0000000..d0f0af3 --- /dev/null +++ b/resources/views/profile/partials/update-password-form.blade.php @@ -0,0 +1,47 @@ +
+
+

Keamanan Akun

+

Gunakan password yang kuat dan tidak mudah ditebak untuk menjaga keamanan akun Anda.

+
+ +
+ @csrf + @method('put') + +
+
+ + + +
+ +
+ + + +
+ +
+ + + +
+
+ +
+ + + @if (session('status') === 'password-updated') +

Password berhasil diperbarui.

+ @endif +
+
+
diff --git a/resources/views/profile/partials/update-profile-information-form.blade.php b/resources/views/profile/partials/update-profile-information-form.blade.php new file mode 100644 index 0000000..07dde15 --- /dev/null +++ b/resources/views/profile/partials/update-profile-information-form.blade.php @@ -0,0 +1,60 @@ +
+
+

Informasi Akun

+

Perbarui nama dan email akun yang digunakan untuk masuk ke panel admin.

+
+ +
+ @csrf +
+ +
+ @csrf + @method('patch') + +
+
+ + + +
+ +
+ + + + + @if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! $user->hasVerifiedEmail()) +
+

Email Anda belum terverifikasi.

+ + + @if (session('status') === 'verification-link-sent') +

+ Link verifikasi baru sudah dikirim ke email Anda. +

+ @endif +
+ @endif +
+
+ +
+ + + @if (session('status') === 'profile-updated') +

Perubahan berhasil disimpan.

+ @endif +
+
+
diff --git a/resources/views/public/document-preview.blade.php b/resources/views/public/document-preview.blade.php new file mode 100644 index 0000000..b3dc491 --- /dev/null +++ b/resources/views/public/document-preview.blade.php @@ -0,0 +1,54 @@ + + + + + + Preview Dokumen - {{ config('app.name', 'Database Kesiswaan') }} + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+
+
+

Preview Dokumen

+

Informasi dokumen siswa yang dibuka dari portal publik.

+ +
+
Jenis Dokumen: {{ $document->documentType?->name ?: '-' }}
+
Nama File: {{ $document->file_name }}
+
Tipe MIME: {{ $mimeType ?: '-' }}
+
Ukuran: {{ $document->file_size ? number_format($document->file_size / 1024, 1) . ' KB' : '-' }}
+
Status Verifikasi: {{ ucfirst($document->verification_status) }}
+
+ + +
+ +
+

Tampilan Dokumen

+

Preview langsung untuk gambar dan PDF.

+ +
+ @if ($isImage) +
+ {{ $document->file_name }} +
+ @elseif ($isPdf) +
+ +
+ @else +
+
Preview tidak tersedia
+

Format file ini belum didukung untuk preview langsung di browser. Silakan gunakan tombol download.

+
+ @endif +
+
+
+
+ + diff --git a/resources/views/public/student-lookup.blade.php b/resources/views/public/student-lookup.blade.php new file mode 100644 index 0000000..139f4d5 --- /dev/null +++ b/resources/views/public/student-lookup.blade.php @@ -0,0 +1,300 @@ +@php + try { + $branding = \App\Models\AppSetting::branding(); + } catch (\Throwable $e) { + $branding = \App\Models\AppSetting::brandingDefaults(); + } + + $publicLogo = $branding['public_portal_logo'] ?: ($branding['app_logo'] ?? null); +@endphp + + + + + + {{ $branding['app_name'] ?? config('app.name', 'Database Kesiswaan') }} + @if (!empty($branding['app_favicon'])) + + @endif + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+
+ +
+
+
+
+ @if (!empty($publicLogo)) + {{ $branding['app_name'] }} + @else + {{ $branding['app_short_name'] ?? 'DK' }} + @endif +
+
+
{{ $branding['app_name'] ?? 'Database Kesiswaan' }}
+
Portal Informasi Siswa
+
+
+
+ +
+
+
+
+
Pencarian Publik
+

Cari siswa dengan cepat

+

+ Hasil pencarian akan menampilkan biodata dasar, informasi akademik, dan progres kelengkapan dokumen siswa. +

+
+
+ +
+
+
+
Butuh melengkapi biodata siswa?
+

Gunakan portal self servis untuk melengkapi data siswa secara mandiri dengan NIS/NISN dan kode akses dari sekolah.

+
+ +
+ +
+
+
+ + +
+
+ +
+
+

Pencarian akan memprioritaskan kecocokan exact pada NIS atau NISN sebelum nama siswa.

+
+
+
+
+ + @if ($query !== '') +
+ @if ($student) +
+ @if ($students->count() > 1) + + @endif + +
+
+
+
+
Data ditemukan
+

{{ $student->full_name }}

+

Pencarian cocok berdasarkan {{ strtolower($matchedBy ?? 'data siswa') }} dan menampilkan ringkasan informasi siswa yang tersedia untuk publik.

+
+
+
+
{{ $requiredDocumentSummary['percentage'] }}%
+
+ {{ $requiredDocumentSummary['missing'] === 0 ? 'Upload lengkap' : 'Kurang ' . $requiredDocumentSummary['missing'] . ' dokumen' }} +
+
+
+
{{ $requiredDocumentSummary['verification_percentage'] }}%
+
+ {{ $requiredDocumentSummary['unverified'] === 0 && $requiredDocumentSummary['missing'] === 0 ? 'Terverifikasi penuh' : $requiredDocumentSummary['unverified'] . ' belum valid' }} +
+
+
+
+
+
+ +
+
+

Biodata Siswa

+
+
Nama: {{ $student->full_name }}
+
NIS: {{ $student->student_number ?: '-' }}
+
NISN: {{ $student->nisn ?: '-' }}
+
Jenis Kelamin: {{ $student->gender === 'L' ? 'Laki-laki' : 'Perempuan' }}
+
Tempat, Tanggal Lahir: {{ $student->place_of_birth ?: '-' }}, {{ $student->date_of_birth?->format('d-m-Y') ?: '-' }}
+
+
+ +
+

Informasi Akademik

+
+
Tahun Angkatan: {{ $student->academicYear?->name ?: '-' }}
+
Program Keahlian: {{ $student->department?->name ?: '-' }}
+
Kelas: {{ $student->classRoom?->name ?: '-' }}
+
Status: {{ ucfirst($student->status) }}
+
Tanggal Masuk: {{ $student->entry_date?->format('d-m-Y') ?: '-' }}
+
+
+ +
+

Status Kelengkapan

+
+
+
+ Upload Dokumen Wajib + {{ $requiredDocumentSummary['uploaded'] }}/{{ $requiredDocumentSummary['total'] }} +
+
+
+
+
+
+
+ Verifikasi Dokumen Wajib + {{ $requiredDocumentSummary['verified'] }}/{{ $requiredDocumentSummary['total'] }} +
+
+
+
+
+
+
+
+ +
+
+
+

Dokumen Kelengkapan Siswa

+

Informasi kelengkapan ditampilkan berdasarkan dokumen yang sudah diunggah siswa.

+
+
+ Informasi publik terbatas +
+
+ + @if ($requiredDocumentSummary['missing_items']->isNotEmpty() || $requiredDocumentSummary['unverified_items']->isNotEmpty()) +
+ @foreach ($requiredDocumentSummary['missing_items'] as $missingDocument) + Belum upload: {{ $missingDocument }} + @endforeach + @foreach ($requiredDocumentSummary['unverified_items'] as $unverifiedDocument) + Belum valid: {{ $unverifiedDocument }} + @endforeach +
+ @else +
+ Seluruh dokumen wajib siswa ini sudah lengkap dan tervalidasi penuh. +
+ @endif + +
+ @forelse ($student->documents->sortBy('documentType.name') as $document) + @php + $verificationMap = [ + 'pending' => 'bg-slate-100 text-slate-600', + 'valid' => 'bg-emerald-100 text-emerald-700', + 'invalid' => 'bg-rose-100 text-rose-700', + 'revision' => 'bg-amber-100 text-amber-700', + ]; + @endphp +
+
+
+
{{ $document->documentType?->name ?: '-' }}
+
{{ $document->file_name }}
+
+ + {{ ucfirst($document->verification_status) }} + + + {{ strtoupper($document->file_extension ?: '-') }} + +
+
+ +
+
+ @empty +
+ Belum ada dokumen siswa yang diunggah. +
+ @endforelse +
+
+
+ @else +
+
+
Data tidak ditemukan
+

Belum ada siswa yang cocok dengan pencarian tersebut

+

Periksa kembali NIS, NISN, atau nama siswa yang dimasukkan, lalu coba cari ulang.

+
+
+
    +
  • Pastikan NIS atau NISN yang dimasukkan benar.
  • +
  • Jika mencari berdasarkan nama, coba gunakan nama lengkap atau sebagian nama yang lebih spesifik.
  • +
  • Jika data seharusnya ada tetapi belum muncul, hubungi admin sekolah.
  • +
+
+
+ @endif +
+ @endif + +
+ Powered by noctkj.net +
+
+
+ + diff --git a/resources/views/public/student-self-service/edit.blade.php b/resources/views/public/student-self-service/edit.blade.php new file mode 100644 index 0000000..de3d3ae --- /dev/null +++ b/resources/views/public/student-self-service/edit.blade.php @@ -0,0 +1,296 @@ +@php + try { + $branding = \App\Models\AppSetting::branding(); + } catch (\Throwable $e) { + $branding = \App\Models\AppSetting::brandingDefaults(); + } +@endphp + + + + + + + Form Pelengkapan Data Siswa - {{ $branding['app_name'] ?? 'Database Kesiswaan' }} + @if (!empty($branding['app_favicon'])) + + @endif + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+ + +
+
+
Form Pelengkapan Data
+

{{ $student->full_name }}

+

Lengkapi data diri dengan benar. Data akademik inti ditampilkan sebagai referensi dan tidak bisa diubah dari sini.

+
+
+
NIS: {{ $student->student_number ?: '-' }}
+
NISN: {{ $student->nisn ?: '-' }}
+
Tahun Angkatan: {{ $student->academicYear?->name ?: '-' }}
+
Program Keahlian: {{ $student->department?->name ?: '-' }}
+
Kelas: {{ $student->classRoom?->name ?: '-' }}
+
+
+ + @if (session('success')) +
+ {{ session('success') }} +
+ @endif + + @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @csrf + +
+
+

Identitas Siswa

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+

Alamat

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ +
+

Data Orang Tua / Wali

+
+ @foreach ($parentRelationLabels as $relationType => $label) + @php + $parent = $student->parents->firstWhere('relation_type', $relationType); + @endphp +
+

{{ $label }}

+
+
+ + name) }}" class="h-11 w-full rounded-2xl border border-slate-200 px-4 text-sm"> +
+
+ + nik) }}" class="h-11 w-full rounded-2xl border border-slate-200 px-4 text-sm"> +
+
+ + birth_year) }}" class="h-11 w-full rounded-2xl border border-slate-200 px-4 text-sm"> +
+
+ + +
+
+ + occupation) }}" class="h-11 w-full rounded-2xl border border-slate-200 px-4 text-sm"> +
+
+ + phone_number) }}" class="h-11 w-full rounded-2xl border border-slate-200 px-4 text-sm"> +
+
+ + +
+ +
+
+ @endforeach +
+
+ +
+ + +
+
+
+ + diff --git a/resources/views/public/student-self-service/verify.blade.php b/resources/views/public/student-self-service/verify.blade.php new file mode 100644 index 0000000..72772c1 --- /dev/null +++ b/resources/views/public/student-self-service/verify.blade.php @@ -0,0 +1,112 @@ +@php + try { + $branding = \App\Models\AppSetting::branding(); + } catch (\Throwable $e) { + $branding = \App\Models\AppSetting::brandingDefaults(); + } + + $publicLogo = $branding['public_portal_logo'] ?: ($branding['app_logo'] ?? null); +@endphp + + + + + + + Pelengkapan Data Siswa - {{ $branding['app_name'] ?? 'Database Kesiswaan' }} + @if (!empty($branding['app_favicon'])) + + @endif + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+
+ +
+
+
+
+ @if (!empty($publicLogo)) + {{ $branding['app_name'] }} + @else + {{ $branding['app_short_name'] ?? 'DK' }} + @endif +
+
+
{{ $branding['app_name'] ?? 'Database Kesiswaan' }}
+
Portal Pelengkapan Siswa
+
+
+
+ +
+
+
+
+
Verifikasi Identitas
+

Lengkapi data siswa secara mandiri

+

+ Masukkan NIS atau NISN dan kode akses dari sekolah untuk melanjutkan ke form pelengkapan data siswa. +

+
+
+ +
+
+
Petunjuk singkat
+

Gunakan data yang benar sesuai dokumen resmi. Jika ada data yang tidak cocok, hubungi admin sekolah atau wali kelas.

+
+ + @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ @csrf +
+
+ + +
+
+ + +
+
+ +
+
+

Setelah verifikasi berhasil, Anda dapat melengkapi biodata, alamat, dan data orang tua/wali.

+
+
+
+
+
+
+ + diff --git a/resources/views/settings/branding.blade.php b/resources/views/settings/branding.blade.php new file mode 100644 index 0000000..a541f5a --- /dev/null +++ b/resources/views/settings/branding.blade.php @@ -0,0 +1,105 @@ + + +
+ @csrf + @method('PUT') + +
+
+ + + +
+
+ + + +

Dipakai sebagai fallback teks jika logo belum diupload, misalnya: DK.

+
+
+ +
+
+
+
+

Logo Utama

+

Untuk dashboard, login, dan area admin.

+
+ @if ($branding['app_logo']) + + @endif +
+
+ @if ($branding['app_logo']) + Logo utama + @else +
Belum ada logo utama
+ @endif +
+ + +
+ +
+
+
+

Favicon

+

Untuk tab browser dan shortcut ikon kecil.

+
+ @if ($branding['app_favicon']) + + @endif +
+
+ @if ($branding['app_favicon']) + Favicon + @else +
Belum ada favicon
+ @endif +
+ + +
+ +
+
+
+

Logo Portal Publik

+

Opsional untuk portal pencarian dan pelengkapan siswa.

+
+ @if ($branding['public_portal_logo']) + + @endif +
+
+ @if ($branding['public_portal_logo']) + Logo portal publik + @else +
Belum ada logo portal publik
+ @endif +
+ + +
+
+ +
+ + + Kembali + +
+
+
+
diff --git a/resources/views/student-documents/_form.blade.php b/resources/views/student-documents/_form.blade.php new file mode 100644 index 0000000..bcad946 --- /dev/null +++ b/resources/views/student-documents/_form.blade.php @@ -0,0 +1,72 @@ +@php + $defaultAllowedExtensions = 'jpg,jpeg,png,pdf,webp'; + $documentTypeOptions = $documentTypes->mapWithKeys(function ($documentType) use ($defaultMaxFileSizeKb, $defaultAllowedExtensions) { + return [ + $documentType->id => [ + 'label' => $documentType->name, + 'max' => $documentType->max_file_size_kb ?: $defaultMaxFileSizeKb, + 'extensions' => $documentType->allowed_extensions ?: $defaultAllowedExtensions, + ], + ]; + }); + $selectedDocumentTypeId = old('document_type_id', $document->document_type_id ?? null); + $selectedMaxSizeKb = $selectedDocumentTypeId && $documentTypeOptions->has((int) $selectedDocumentTypeId) + ? $documentTypeOptions[(int) $selectedDocumentTypeId]['max'] + : $defaultMaxFileSizeKb; + $selectedExtensions = $selectedDocumentTypeId && $documentTypeOptions->has((int) $selectedDocumentTypeId) + ? $documentTypeOptions[(int) $selectedDocumentTypeId]['extensions'] + : $defaultAllowedExtensions; +@endphp + +
+ +
+
+ + +
+ + + + +
+ + +

Format diizinkan: {{ strtoupper(str_replace(',', ', ', $selectedExtensions)) }}.

+

+ Maksimal ukuran file untuk jenis dokumen ini: {{ number_format($selectedMaxSizeKb / 1024, 2) }} MB +

+ @if(isset($document) && $document->file_name) +

File saat ini: {{ $document->file_name }}

+ @endif +
+
+ +
+
+ +
+
+
+ + +
+
Nama Siswa: {{ $student->full_name }}
+
NIS: {{ $student->student_number ?: '-' }}
+
NISN: {{ $student->nisn ?: '-' }}
+
Tahun Angkatan: {{ $student->academicYear?->name ?: '-' }}
+
Program Keahlian: {{ $student->department?->name ?: '-' }}
+
Kelas: {{ $student->classRoom?->name ?: '-' }}
+
+
+
+ +
+ + Kembali +
diff --git a/resources/views/student-documents/create.blade.php b/resources/views/student-documents/create.blade.php new file mode 100644 index 0000000..87561e2 --- /dev/null +++ b/resources/views/student-documents/create.blade.php @@ -0,0 +1,6 @@ + +
+ @csrf + @include('student-documents._form', ['submitLabel' => 'Upload Dokumen']) +
+
diff --git a/resources/views/student-documents/edit.blade.php b/resources/views/student-documents/edit.blade.php new file mode 100644 index 0000000..1a70469 --- /dev/null +++ b/resources/views/student-documents/edit.blade.php @@ -0,0 +1,7 @@ + +
+ @csrf + @method('PUT') + @include('student-documents._form', ['submitLabel' => 'Update Dokumen']) +
+
diff --git a/resources/views/student-documents/preview.blade.php b/resources/views/student-documents/preview.blade.php new file mode 100644 index 0000000..3ee5ced --- /dev/null +++ b/resources/views/student-documents/preview.blade.php @@ -0,0 +1,45 @@ + +
+ +
+
Nama File: {{ $document->file_name }}
+
Tipe MIME: {{ $mimeType ?: '-' }}
+
Ukuran: {{ $document->file_size ? number_format($document->file_size / 1024, 1) . ' KB' : '-' }}
+
No. Dokumen: {{ $document->document_number ?: '-' }}
+
Tanggal Terbit: {{ $document->issued_date?->format('d-m-Y') ?: '-' }}
+
Kadaluarsa: {{ $document->expired_date?->format('d-m-Y') ?: '-' }}
+
Status Verifikasi: {{ ucfirst($document->verification_status) }}
+ @if ($document->verification_note) +
+ Catatan: {{ $document->verification_note }} +
+ @endif +
+ + +
+ +
+ + @if ($isImage) +
+ {{ $document->file_name }} +
+ @elseif ($isPdf) +
+ +
+ @else +
+
Preview tidak tersedia
+

Format file ini belum didukung untuk preview langsung di browser. Silakan gunakan tombol download.

+
+ @endif +
+
+
+
diff --git a/resources/views/student-exits/index.blade.php b/resources/views/student-exits/index.blade.php new file mode 100644 index 0000000..90cfc8b --- /dev/null +++ b/resources/views/student-exits/index.blade.php @@ -0,0 +1,71 @@ + + +
+ + + + + +
+ + Reset +
+ +
+ + +
+ + + + + + + + + + + + + @forelse ($studentExits as $studentExit) + + + + + + + + + @empty + + + + @endforelse + +
SiswaAkademik TerakhirTanggal KeluarSurat KeluarCatatanAksi
+
{{ $studentExit->full_name }}
+
NIS: {{ $studentExit->student_number ?: '-' }} · NISN: {{ $studentExit->nisn ?: '-' }}
+
+
{{ $studentExit->academicYear?->name ?: '-' }}
+
{{ $studentExit->department?->name ?: '-' }}
+
{{ $studentExit->classRoom?->name ?: '-' }}
+
{{ $studentExit->exit_date?->format('d-m-Y') ?: '-' }} + @if ($studentExit->exit_letter_file_path) + Sudah diupload +
{{ $studentExit->exit_letter_file_name }}
+ + @else + Surat Keluar belum di upload + @endif +
{{ $studentExit->exit_reason ?: '-' }} + Detail Arsip +
Belum ada data siswa keluar.
+
+ +
+ {{ $studentExits->links() }} +
+
+
diff --git a/resources/views/student-exits/preview-letter.blade.php b/resources/views/student-exits/preview-letter.blade.php new file mode 100644 index 0000000..d53b295 --- /dev/null +++ b/resources/views/student-exits/preview-letter.blade.php @@ -0,0 +1,38 @@ + +
+ +
+
Nama Siswa: {{ $studentExit->full_name }}
+
Nama File: {{ $studentExit->exit_letter_file_name ?: '-' }}
+
Tipe MIME: {{ $mimeType ?: '-' }}
+
Ukuran: {{ $studentExit->exit_letter_file_size ? number_format($studentExit->exit_letter_file_size / 1024, 1) . ' KB' : '-' }}
+
Tanggal Keluar: {{ $studentExit->exit_date?->format('d-m-Y') ?: '-' }}
+
Catatan: {{ $studentExit->exit_reason ?: '-' }}
+
+ + +
+ +
+ + @if ($isImage) +
+ {{ $studentExit->exit_letter_file_name }} +
+ @elseif ($isPdf) +
+ +
+ @else +
+
Preview tidak tersedia
+

Format file ini belum didukung untuk preview langsung di browser. Silakan gunakan tombol buka file asli.

+
+ @endif +
+
+
+
diff --git a/resources/views/student-exits/show.blade.php b/resources/views/student-exits/show.blade.php new file mode 100644 index 0000000..ed0327f --- /dev/null +++ b/resources/views/student-exits/show.blade.php @@ -0,0 +1,86 @@ + +
+
+ +
+
+
Nama Lengkap
+
{{ $studentExit->full_name }}
+
+
+
Status Arsip
+
Siswa Keluar
+
+
+
NIS
+
{{ $studentExit->student_number ?: '-' }}
+
+
+
NISN
+
{{ $studentExit->nisn ?: '-' }}
+
+
+
+ + +
+
+
Tahun Angkatan
+
{{ $studentExit->academicYear?->name ?: '-' }}
+
+
+
Program Keahlian
+
{{ $studentExit->department?->name ?: '-' }}
+
+
+
Kelas Terakhir
+
{{ $studentExit->classRoom?->name ?: '-' }}
+
+
+
Tanggal Masuk
+
{{ $studentExit->entry_date?->format('d-m-Y') ?: '-' }}
+
+
+
+
+ +
+ +
+ @if ($studentExit->exit_letter_file_path) +
+
Surat keluar sudah tersedia
+
{{ $studentExit->exit_letter_file_name }}
+ +
+ @else +
+ Surat keluar belum diupload. +
+ @endif + +
+ @csrf + @method('PATCH') + + + + +
+ + +

Format: PDF, JPG, JPEG, PNG. Maksimal 2 MB.

+ +
+ + + +
+
+
+
+
diff --git a/resources/views/student-parents/_form.blade.php b/resources/views/student-parents/_form.blade.php new file mode 100644 index 0000000..acb5a0e --- /dev/null +++ b/resources/views/student-parents/_form.blade.php @@ -0,0 +1,35 @@ +
+ +
+ + + + + + + +
+ +
+
+ +
+
+
+ + +
+
Nama Siswa: {{ $student->full_name }}
+
NIS: {{ $student->student_number ?: '-' }}
+
NISN: {{ $student->nisn ?: '-' }}
+
Tahun Angkatan: {{ $student->academicYear?->name ?: '-' }}
+
Program Keahlian: {{ $student->department?->name ?: '-' }}
+
Kelas: {{ $student->classRoom?->name ?: '-' }}
+
+
+
+ +
+ + Kembali +
diff --git a/resources/views/student-parents/create.blade.php b/resources/views/student-parents/create.blade.php new file mode 100644 index 0000000..05f6e97 --- /dev/null +++ b/resources/views/student-parents/create.blade.php @@ -0,0 +1,6 @@ + +
+ @csrf + @include('student-parents._form', ['submitLabel' => 'Simpan']) +
+
diff --git a/resources/views/student-parents/edit.blade.php b/resources/views/student-parents/edit.blade.php new file mode 100644 index 0000000..22fc5c9 --- /dev/null +++ b/resources/views/student-parents/edit.blade.php @@ -0,0 +1,7 @@ + +
+ @csrf + @method('PUT') + @include('student-parents._form', ['submitLabel' => 'Update']) +
+
diff --git a/resources/views/student-promotions/index.blade.php b/resources/views/student-promotions/index.blade.php new file mode 100644 index 0000000..92f7369 --- /dev/null +++ b/resources/views/student-promotions/index.blade.php @@ -0,0 +1,236 @@ + + +
+
+ + +
+ +
+ + +
+ +
+ +
+
+
+ + + @if (blank($filters['from_academic_year_id']) || blank($filters['to_academic_year_id'])) +
+ Pilih tahun ajaran asal dan tujuan terlebih dahulu untuk memuat rekomendasi promosi siswa. +
+ @elseif ($students->isEmpty()) +
Tidak ada siswa aktif pada tahun ajaran asal yang dipilih.
+ @else + @php + $promotionCount = $students->filter(fn ($student) => $student->promotion_recommendation['action'] === 'promote')->count(); + $repeatCount = $students->filter(fn ($student) => $student->promotion_recommendation['action'] === 'repeat')->count(); + $graduateCount = $students->filter(fn ($student) => $student->promotion_recommendation['action'] === 'graduate')->count(); + @endphp + + @if ($errors->any()) +
+
Proses promosi belum bisa dilanjutkan.
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+
+
Naik Kelas
+
{{ $promotionCount }}
+
Siswa direkomendasikan naik ke level berikutnya.
+
+
+
Tinggal Kelas
+
{{ $repeatCount }}
+
Siswa akan tetap di level yang sama pada tahun ajaran baru.
+
+
+
Lulus
+
{{ $graduateCount }}
+
Siswa kelas akhir yang direkomendasikan lulus.
+
+
+ +
+ @csrf + + + +
+
Aksi cepat:
+ + + +
+ +
+ + + + + + + + + + + + + @foreach ($students as $student) + @php + $recommendation = $student->promotion_recommendation; + $promoteClasses = $recommendation['available_classes']['promote']; + $repeatClasses = $recommendation['available_classes']['repeat']; + $actionField = 'promotions.'.$loop->index.'.action'; + $targetClassField = 'promotions.'.$loop->index.'.target_class_id'; + $notesField = 'promotions.'.$loop->index.'.notes'; + $studentField = 'promotions.'.$loop->index.'.student_id'; + $oldAction = old($actionField, $recommendation['action']); + $oldTargetClassId = old($targetClassField, $recommendation['target_class_id']); + $defaultClasses = $oldAction === 'repeat' ? $repeatClasses : $promoteClasses; + $rowErrors = collect([ + $errors->first($studentField), + $errors->first($actionField), + $errors->first($targetClassField), + $errors->first($notesField), + ])->filter(); + $selectedPromote = old($targetClassField, $promoteClasses->firstWhere('id', $recommendation['target_class_id'])?->id ?? ($promoteClasses->first()?->id ?? '')); + $selectedRepeat = old($targetClassField, $repeatClasses->firstWhere('id', $recommendation['target_class_id'])?->id ?? ($repeatClasses->first()?->id ?? '')); + $promoteClassOptions = $promoteClasses->map(fn ($classRoom) => [ + 'id' => $classRoom->id, + 'name' => $classRoom->name, + 'option_label' => $classRoom->option_label, + 'capacity_label' => $classRoom->capacity_label, + 'remaining_capacity' => $classRoom->remaining_capacity, + ])->values(); + $repeatClassOptions = $repeatClasses->map(fn ($classRoom) => [ + 'id' => $classRoom->id, + 'name' => $classRoom->name, + 'option_label' => $classRoom->option_label, + 'capacity_label' => $classRoom->capacity_label, + 'remaining_capacity' => $classRoom->remaining_capacity, + ])->values(); + $badgeClass = match ($recommendation['action']) { + 'promote' => 'bg-emerald-100 text-emerald-700', + 'repeat' => 'bg-amber-100 text-amber-700', + 'graduate' => 'bg-sky-100 text-sky-700', + default => 'bg-slate-100 text-slate-700', + }; + @endphp + + + + + + + + + @endforeach + +
SiswaPosisi Saat IniRekomendasiAksi AdminKelas TujuanCatatan
+ +
{{ $student->full_name }}
+
NIS: {{ $student->student_number ?: '-' }}
+ @if ($rowErrors->isNotEmpty()) +
+
Perlu diperbaiki
+
    + @foreach ($rowErrors as $rowError) +
  • {{ $rowError }}
  • + @endforeach +
+
+ @endif +
+
{{ $student->classRoom?->name ?: '-' }}
+
{{ $student->academicYear?->name ?: '-' }}
+
{{ $student->department?->name ?: '-' }}
+
+
+ {{ $recommendation['label'] }} +
+ @if ($recommendation['target_class_name']) +
Target: {{ $recommendation['target_class_name'] }}
+ @endif +
+ +
Admin bisa ubah rekomendasi sebelum proses.
+
+
+ {{ $recommendation['target_class_name'] ?: 'Aksi ini tidak memerlukan kelas tujuan.' }} +
+ + + +
+ {{ $defaultClasses->isEmpty() ? 'Belum ada kelas aktif yang cocok pada tahun ajaran target untuk aksi ini.' : 'Pilih kelas tujuan sesuai aksi. Naik kelas memakai level berikutnya, tinggal kelas memakai level yang sama.' }} +
+ @if ($defaultClasses->isNotEmpty()) +
+ @foreach ($defaultClasses as $classRoom) +
• {{ $classRoom->name }} — {{ $classRoom->capacity_label }}
+ @endforeach +
+ @endif +
+ +
+
+ +
+
+
Total siswa siap diproses: {{ $students->count() }}
+
Tips: untuk siswa tinggal kelas, pastikan tahun ajaran target punya kelas dengan level yang sama dan sisa kuota masih cukup.
+
+ +
+
+ @endif +
+
diff --git a/resources/views/student-self-service/index.blade.php b/resources/views/student-self-service/index.blade.php new file mode 100644 index 0000000..580683c --- /dev/null +++ b/resources/views/student-self-service/index.blade.php @@ -0,0 +1,94 @@ + +
+
+
Total Siswa
+
{{ $summary['total'] }}
+
+
+
Belum Mulai
+
{{ $summary['not_started'] }}
+
+
+
Draft
+
{{ $summary['draft'] }}
+
+
+
Sudah Dikirim
+
{{ $summary['submitted'] }}
+
+
+ + +
+ + + + + +
+ + Reset + Buka Portal Publik +
+ +
+ +
+
+ + + + + + + + + + + + @forelse ($students as $student) + @php + $statusMap = [ + 'not_started' => 'bg-slate-100 text-slate-600', + 'draft' => 'bg-amber-100 text-amber-700', + 'submitted' => 'bg-emerald-100 text-emerald-700', + ]; + @endphp + + + + + + + + @empty + + + + @endforelse + +
SiswaAkademikStatusKode AksesAktivitas
+
{{ $student->full_name }}
+
NIS: {{ $student->student_number ?: '-' }} · NISN: {{ $student->nisn ?: '-' }}
+
+
{{ $student->academicYear?->name ?: '-' }}
+
{{ $student->department?->name ?: '-' }}
+
{{ $student->classRoom?->name ?: '-' }}
+
+ + {{ $statuses[$student->self_service_status] ?? 'Belum Mulai' }} + + +
{{ $student->self_service_access_code ?: '-' }}
+
Digenerate: {{ $student->self_service_code_generated_at?->format('d-m-Y H:i') ?: '-' }}
+
+
Terakhir akses: {{ $student->self_service_last_access_at?->format('d-m-Y H:i') ?: '-' }}
+
Submitted: {{ $student->self_service_submitted_at?->format('d-m-Y H:i') ?: '-' }}
+
Belum ada data siswa untuk self servis.
+
+
+ +
+ {{ $students->onEachSide(1)->links() }} +
+
diff --git a/resources/views/student-transfers/index.blade.php b/resources/views/student-transfers/index.blade.php new file mode 100644 index 0000000..29acfcc --- /dev/null +++ b/resources/views/student-transfers/index.blade.php @@ -0,0 +1,71 @@ + + +
+ + + + + +
+ + Reset +
+ +
+ + +
+ + + + + + + + + + + + + @forelse ($studentTransfers as $studentTransfer) + + + + + + + + + @empty + + + + @endforelse + +
SiswaAkademik TerakhirTanggal PindahSurat Pindah SekolahCatatanAksi
+
{{ $studentTransfer->full_name }}
+
NIS: {{ $studentTransfer->student_number ?: '-' }} · NISN: {{ $studentTransfer->nisn ?: '-' }}
+
+
{{ $studentTransfer->academicYear?->name ?: '-' }}
+
{{ $studentTransfer->department?->name ?: '-' }}
+
{{ $studentTransfer->classRoom?->name ?: '-' }}
+
{{ $studentTransfer->transfer_date?->format('d-m-Y') ?: '-' }} + @if ($studentTransfer->transfer_letter_file_path) + Sudah diupload +
{{ $studentTransfer->transfer_letter_file_name }}
+ + @else + Surat Pindah Sekolah belum di upload + @endif +
{{ $studentTransfer->transfer_reason ?: '-' }} + Detail Arsip +
Belum ada data siswa mutasi.
+
+ +
+ {{ $studentTransfers->links() }} +
+
+
diff --git a/resources/views/student-transfers/preview-letter.blade.php b/resources/views/student-transfers/preview-letter.blade.php new file mode 100644 index 0000000..258340c --- /dev/null +++ b/resources/views/student-transfers/preview-letter.blade.php @@ -0,0 +1,38 @@ + +
+ +
+
Nama Siswa: {{ $studentTransfer->full_name }}
+
Nama File: {{ $studentTransfer->transfer_letter_file_name ?: '-' }}
+
Tipe MIME: {{ $mimeType ?: '-' }}
+
Ukuran: {{ $studentTransfer->transfer_letter_file_size ? number_format($studentTransfer->transfer_letter_file_size / 1024, 1) . ' KB' : '-' }}
+
Tanggal Pindah: {{ $studentTransfer->transfer_date?->format('d-m-Y') ?: '-' }}
+
Catatan: {{ $studentTransfer->transfer_reason ?: '-' }}
+
+ + +
+ +
+ + @if ($isImage) +
+ {{ $studentTransfer->transfer_letter_file_name }} +
+ @elseif ($isPdf) +
+ +
+ @else +
+
Preview tidak tersedia
+

Format file ini belum didukung untuk preview langsung di browser. Silakan gunakan tombol buka file asli.

+
+ @endif +
+
+
+
diff --git a/resources/views/student-transfers/show.blade.php b/resources/views/student-transfers/show.blade.php new file mode 100644 index 0000000..ec90c0c --- /dev/null +++ b/resources/views/student-transfers/show.blade.php @@ -0,0 +1,86 @@ + +
+
+ +
+
+
Nama Lengkap
+
{{ $studentTransfer->full_name }}
+
+
+
Status Arsip
+
Siswa Mutasi
+
+
+
NIS
+
{{ $studentTransfer->student_number ?: '-' }}
+
+
+
NISN
+
{{ $studentTransfer->nisn ?: '-' }}
+
+
+
+ + +
+
+
Tahun Angkatan
+
{{ $studentTransfer->academicYear?->name ?: '-' }}
+
+
+
Program Keahlian
+
{{ $studentTransfer->department?->name ?: '-' }}
+
+
+
Kelas Terakhir
+
{{ $studentTransfer->classRoom?->name ?: '-' }}
+
+
+
Tanggal Masuk
+
{{ $studentTransfer->entry_date?->format('d-m-Y') ?: '-' }}
+
+
+
+
+ +
+ +
+ @if ($studentTransfer->transfer_letter_file_path) +
+
Surat pindah sudah tersedia
+
{{ $studentTransfer->transfer_letter_file_name }}
+ +
+ @else +
+ Surat pindah belum diupload. +
+ @endif + +
+ @csrf + @method('PATCH') + + + + +
+ + +

Format: PDF, JPG, JPEG, PNG. Maksimal 2 MB.

+ +
+ + + +
+
+
+
+
diff --git a/resources/views/students/_form.blade.php b/resources/views/students/_form.blade.php new file mode 100644 index 0000000..fb9b6ad --- /dev/null +++ b/resources/views/students/_form.blade.php @@ -0,0 +1,252 @@ +
+ + +
+ +
+ + +
+ +
+ + + + + + + + + + +
+
+ + +
+ + +
+ + +

+ +
+ +
+ + +

+ +
+ + + + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ +
+
+ +
+
+
+
+ +
+ + Batal +
+
diff --git a/resources/views/students/create.blade.php b/resources/views/students/create.blade.php new file mode 100644 index 0000000..6515027 --- /dev/null +++ b/resources/views/students/create.blade.php @@ -0,0 +1,6 @@ + +
+ @csrf + @include('students._form', ['submitLabel' => 'Simpan']) +
+
diff --git a/resources/views/students/edit.blade.php b/resources/views/students/edit.blade.php new file mode 100644 index 0000000..38f5e95 --- /dev/null +++ b/resources/views/students/edit.blade.php @@ -0,0 +1,7 @@ + +
+ @csrf + @method('PUT') + @include('students._form', ['submitLabel' => 'Update']) +
+
diff --git a/resources/views/students/import.blade.php b/resources/views/students/import.blade.php new file mode 100644 index 0000000..f95fdff --- /dev/null +++ b/resources/views/students/import.blade.php @@ -0,0 +1,176 @@ + +
+
+ +
+ @csrf + +
+ + +

Format didukung: .xlsx dan .csv. Untuk paling aman, pakai template yang disediakan lalu isi di Excel.

+
+ + +
+
+ + @if ($preview) + +
+
+
Total Baris
+
{{ $preview['summary']['total_rows'] }}
+
+
+
Valid
+
{{ $preview['summary']['valid_rows'] }}
+
+
+
Insert Baru
+
{{ $preview['summary']['insert_rows'] }}
+
+
+
Update Data
+
{{ $preview['summary']['update_rows'] }}
+
+
+ + @if (!empty($preview['errors'])) +
+
Ada baris yang belum valid.
+
    + @foreach (array_slice($preview['errors'], 0, 10) as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+ + + + + + + + + + + + + @foreach ($preview['rows'] as $row) + + + + + + + + + @endforeach + +
BarisNIS / NISNNamaAkademikAksiStatus Validasi
{{ $row['row_number'] }} +
{{ $row['data']['student_number'] ?: '-' }}
+
NISN: {{ $row['data']['nisn'] ?: '-' }}
+
+
{{ $row['data']['full_name'] ?: '-' }}
+
{{ $row['data']['gender'] ?: '-' }} · {{ $row['data']['phone_number'] ?: '-' }}
+
+
Tahun: {{ $row['data']['academic_year_id'] ?: '-' }}
+
Jurusan: {{ $row['data']['department_id'] ?: '-' }}
+
Kelas: {{ $row['data']['class_id'] ?: '-' }}
+
+ + {{ $row['action'] === 'update' ? 'Update' : 'Insert' }} + + + @if ($row['is_valid']) + Valid + @else +
+
Perlu perbaikan
+
    + @foreach ($row['errors'] as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+
+ + @if ($preview['summary']['valid_rows'] > 0) +
+ @csrf + + + Hanya baris valid yang akan diproses. +
+ @endif +
+ @endif +
+ +
+ +
    +
  • student_number — NIS
  • +
  • nisn — NISN
  • +
  • full_name — nama lengkap
  • +
  • gender — L / P
  • +
  • academic_year_id — ID tahun ajaran
  • +
  • department_id — ID program keahlian
  • +
  • class_id — ID kelas
  • +
  • entry_date — format YYYY-MM-DD
  • +
  • status — default paling aman: active
  • +
  • phone_number — opsional
  • +
+
+ + +
+
+
Tahun Ajaran
+
+ @foreach ($academicYears as $id => $label) +
• {{ $id }} — {{ $label }}
+ @endforeach +
+
+ +
+
Program Keahlian
+
+ @foreach ($departments as $id => $label) +
• {{ $id }} — {{ $label }}
+ @endforeach +
+
+ +
+
Kelas
+
+ @foreach ($classes as $classRoom) +
• {{ $classRoom->id }} — {{ $classRoom->name }} ({{ $classRoom->academicYear?->name }} · {{ $classRoom->department?->name }})
+ @endforeach +
+
+
+
+
+
+
diff --git a/resources/views/students/index.blade.php b/resources/views/students/index.blade.php new file mode 100644 index 0000000..d87284e --- /dev/null +++ b/resources/views/students/index.blade.php @@ -0,0 +1,210 @@ + + @php + $isAdmin = auth()->user()?->isAdmin() ?? false; + + $indexRoute = match ($viewMode ?? 'all') { + 'graduated' => route('students.graduated'), + 'transferred' => route('students.transferred'), + default => route('students.index'), + }; + + $sortUrl = function (string $column) use ($sort, $direction, $indexRoute) { + $nextDirection = $sort === $column && $direction === 'asc' ? 'desc' : 'asc'; + return $indexRoute . '?' . http_build_query(array_merge(request()->query(), ['sort' => $column, 'direction' => $nextDirection])); + }; + + $sortIcon = function (string $column) use ($sort, $direction) { + if ($sort !== $column) { + return '↕'; + } + + return $direction === 'asc' ? '↑' : '↓'; + }; + @endphp + +
+
+
+ @if ($isAdmin) + + Import Data Siswa + + @endif + + Tambah Siswa + +
+
+ + + +
+ + + + + + + + + +
+ + Reset +
+ +
+ +
+ @csrf + @method('DELETE') + +
+
+
Total data: {{ $students->total() }} siswa
+
Halaman {{ $students->currentPage() }} dari {{ $students->lastPage() }}
+
+ @if ($isAdmin) +
+ + +
+ @endif +
+ +
+ {{ $students->onEachSide(1)->links() }} +
+ +
+
+ + + + @if ($isAdmin) + + @endif + + + + + + + + + + @forelse ($students as $student) + + @if ($isAdmin) + + @endif + + + + + + + + @empty + + + + @endforelse + +
Pilih + Siswa {{ $sortIcon('full_name') }} + + Akademik {{ $sortIcon('academic_year') }} + + Kontak {{ $sortIcon('phone_number') }} + Kelengkapan Dokumen + Status {{ $sortIcon('status') }} + Aksi
+ + + +
NIS: {{ $student->student_number ?: '-' }} · NISN: {{ $student->nisn ?: '-' }}
+
+
{{ $student->academicYear?->name ?: '-' }}
+
{{ $student->department?->name ?: '-' }}
+
{{ $student->classRoom?->name ?: '-' }}
+
+
{{ $student->phone_number ?: '-' }}
+
{{ $student->email ?: '-' }}
+
+
+
+ Upload: {{ $student->required_documents_present }}/{{ $student->required_documents_total }} + {{ $student->document_completion_percentage }}% +
+
+
+
+
+ Terverifikasi: {{ $student->required_documents_verified }}/{{ $student->required_documents_total }} + {{ $student->document_verification_percentage }}% +
+
+
+
+
+ {{ $student->required_documents_missing > 0 ? 'Kurang ' . $student->required_documents_missing . ' dokumen wajib' : ($student->required_documents_unverified > 0 ? $student->required_documents_unverified . ' dokumen menunggu validasi' : 'Lengkap & tervalidasi') }} +
+
+
+ @php + $statusMap = [ + 'active' => 'bg-emerald-100 text-emerald-700', + 'graduated' => 'bg-sky-100 text-sky-700', + 'transferred' => 'bg-amber-100 text-amber-700', + 'dropped' => 'bg-rose-100 text-rose-700', + 'inactive' => 'bg-slate-100 text-slate-600', + ]; + @endphp + + {{ $studentStatusLabels[$student->status] ?? $student->status }} + + +
+ Detail + Edit + @if ($isAdmin) + + @csrf + @method('DELETE') + + + @endif +
+
Belum ada data siswa.
+
+
+ +
+
+ Menampilkan {{ $students->firstItem() ?? 0 }} sampai {{ $students->lastItem() ?? 0 }} dari {{ $students->total() }} siswa. +
+
+ {{ $students->onEachSide(1)->links() }} +
+
+ + diff --git a/resources/views/students/show.blade.php b/resources/views/students/show.blade.php new file mode 100644 index 0000000..896299c --- /dev/null +++ b/resources/views/students/show.blade.php @@ -0,0 +1,264 @@ + + @php + $isAdmin = auth()->user()?->isAdmin() ?? false; + @endphp +
+
+
+

Kelengkapan Dokumen Wajib

+

Ringkasan upload dan verifikasi dokumen wajib siswa.

+
+
+
+
{{ $requiredDocumentSummary['percentage'] }}%
+
+ {{ $requiredDocumentSummary['missing'] === 0 ? 'Upload lengkap' : 'Kurang ' . $requiredDocumentSummary['missing'] . ' dokumen' }} +
+
+
+
{{ $requiredDocumentSummary['verification_percentage'] }}%
+
+ {{ $requiredDocumentSummary['unverified'] === 0 && $requiredDocumentSummary['missing'] === 0 ? 'Terverifikasi penuh' : $requiredDocumentSummary['unverified'] . ' belum valid' }} +
+
+
+
+ +
+
+
+ Upload Dokumen Wajib + {{ $requiredDocumentSummary['uploaded'] }}/{{ $requiredDocumentSummary['total'] }} +
+
+
+
+
+ +
+
+ Verifikasi Dokumen Wajib + {{ $requiredDocumentSummary['verified'] }}/{{ $requiredDocumentSummary['total'] }} +
+
+
+
+
+
+ + @if ($requiredDocumentSummary['missing_items']->isNotEmpty() || $requiredDocumentSummary['unverified_items']->isNotEmpty()) +
+ @foreach ($requiredDocumentSummary['missing_items'] as $missingDocument) + Belum upload: {{ $missingDocument }} + @endforeach + @foreach ($requiredDocumentSummary['unverified_items'] as $unverifiedDocument) + Belum valid: {{ $unverifiedDocument }} + @endforeach +
+ @endif +
+ +
+ +
+
Nama: {{ $student->full_name }}
+
NIS: {{ $student->student_number ?: '-' }}
+
NISN: {{ $student->nisn ?: '-' }}
+
Jenis Kelamin: {{ $student->gender === 'L' ? 'Laki-laki' : 'Perempuan' }}
+
TTL: {{ $student->place_of_birth ?: '-' }}, {{ $student->date_of_birth?->format('d-m-Y') ?: '-' }}
+
Agama: {{ $student->religion ?: '-' }}
+
Kewarganegaraan: {{ $student->nationality ?: '-' }}
+
Status: {{ ucfirst($student->status) }}
+
+
+ + +
+
Tahun Angkatan: {{ $student->academicYear?->name ?: '-' }}
+
Program Keahlian: {{ $student->department?->name ?: '-' }}
+
Kelas: {{ $student->classRoom?->name ?: '-' }}
+
Tanggal Masuk: {{ $student->entry_date?->format('d-m-Y') ?: '-' }}
+
+
+ + +
+
No. HP: {{ $student->phone_number ?: '-' }}
+
Email: {{ $student->email ?: '-' }}
+
Alamat: {{ $student->address ?: '-' }}
+
Wilayah: {{ collect([$student->village, $student->district, $student->city, $student->province])->filter()->join(', ') ?: '-' }}
+
Kode Pos: {{ $student->postal_code ?: '-' }}
+
+
+
+ +
+ + @if ($student->academicHistories->isEmpty()) +
Belum ada histori akademik untuk siswa ini.
+ @else +
+ + + + + + + + + + + + @foreach ($student->academicHistories as $history) + + + + + + + + @endforeach + +
TahunJurusanKelasStatusPeriode
{{ $history->academicYear?->name ?: '-' }}{{ $history->department?->name ?: '-' }}{{ $history->classRoom?->name ?: '-' }} + + {{ $history->is_current ? 'Aktif Sekarang' : ucfirst($history->status) }} + + + {{ $history->start_date?->format('d-m-Y') ?: '-' }} s/d {{ $history->end_date?->format('d-m-Y') ?: 'Sekarang' }} +
+
+ @endif +
+
+ +
+ + + + @if ($student->parents->isEmpty()) +
Belum ada data orang tua/wali untuk siswa ini.
+ @else +
+ @foreach ($student->parents as $parent) +
+
+
+
{{ ucfirst($parent->relation_type === 'father' ? 'Ayah' : ($parent->relation_type === 'mother' ? 'Ibu' : 'Wali')) }} - {{ $parent->name }}
+
Pekerjaan: {{ $parent->occupation ?: '-' }}
+
No. HP: {{ $parent->phone_number ?: '-' }}
+
Pendidikan: {{ $parent->education ?: '-' }}
+
+
+ Edit + @if ($isAdmin) +
+ @csrf + @method('DELETE') + +
+ @endif +
+
+
+ @endforeach +
+ @endif +
+ + + + + @if ($student->documents->isEmpty()) +
Belum ada dokumen siswa yang diunggah.
+ @else +
+ @foreach ($student->documents as $document) + @php + $verificationMap = [ + 'pending' => 'bg-slate-100 text-slate-600', + 'valid' => 'bg-emerald-100 text-emerald-700', + 'invalid' => 'bg-rose-100 text-rose-700', + 'revision' => 'bg-amber-100 text-amber-700', + ]; + @endphp +
+
+
+
{{ $document->documentType?->name ?: '-' }}
+
File: {{ $document->file_name }}
+
Format: {{ strtoupper($document->file_extension ?: '-') }}
+
Ukuran: {{ $document->file_size ? number_format($document->file_size / 1024, 1) . ' KB' : '-' }}
+ @if ($document->verifiedBy) +
Diverifikasi oleh: {{ $document->verifiedBy->name }}
+ @endif +
+ + {{ ucfirst($document->verification_status) }} + + @if ($document->verified_at) + + Diverifikasi {{ $document->verified_at->format('d-m-Y H:i') }} + + @endif +
+ @if ($document->verification_note) +
+ Catatan: {{ $document->verification_note }} +
+ @endif +
+
+ Lihat + Download + Edit + + @if ($isAdmin) +
+ @csrf + + + +
+ +
+ @csrf + + + +
+ +
+ @csrf + + + +
+ +
+ @csrf + @method('DELETE') + +
+ @endif +
+
+
+ @endforeach +
+ @endif +
+
+ + +
diff --git a/resources/views/users/_form.blade.php b/resources/views/users/_form.blade.php new file mode 100644 index 0000000..605f054 --- /dev/null +++ b/resources/views/users/_form.blade.php @@ -0,0 +1,13 @@ +
+ + + + +
+
+ + +
+

Password minimal 8 karakter.

+
+
diff --git a/resources/views/users/create.blade.php b/resources/views/users/create.blade.php new file mode 100644 index 0000000..538d6a4 --- /dev/null +++ b/resources/views/users/create.blade.php @@ -0,0 +1,14 @@ + +
+ @csrf + + + @include('users._form') + + +
+ Batal + +
+
+
diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php new file mode 100644 index 0000000..d0bb8bd --- /dev/null +++ b/resources/views/users/edit.blade.php @@ -0,0 +1,15 @@ + +
+ @csrf + @method('PUT') + + + @include('users._form') + + +
+ Batal + +
+
+
diff --git a/resources/views/users/index.blade.php b/resources/views/users/index.blade.php new file mode 100644 index 0000000..5e46b51 --- /dev/null +++ b/resources/views/users/index.blade.php @@ -0,0 +1,58 @@ + + +
+
+ +
+ +
+
+
+ +
+ + + + + + + + + + + + @forelse ($users as $user) + + + + + + + + @empty + + + + @endforelse + +
NamaEmailRoleStatusAksi
{{ $user->name }}{{ $user->email }} + + {{ $roleOptions[$user->role] ?? ucfirst($user->role) }} + + {{ auth()->id() === $user->id ? 'Sedang dipakai login' : 'Aktif' }} +
+ Edit +
+ @csrf + @method('DELETE') + +
+
+
Belum ada data pengguna.
+
+ +
+ {{ $users->links() }} +
+
+
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php new file mode 100644 index 0000000..cbe1aee --- /dev/null +++ b/resources/views/welcome.blade.php @@ -0,0 +1,225 @@ + + + + + + + {{ config('app.name', 'Database Kesiswaan') }} + + + + + + + @if (file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot'))) + @vite(['resources/css/app.css', 'resources/js/app.js']) + @else + + @endif + + +
+ @if (Route::has('login')) + + @endif +
+
+
+
+

Let's get started

+

With so many options available to you,
we suggest you start with the following:

+ + + +

+ v{{ app()->version() }} + + View changelog + + + + +

+
+
+ {{-- Laravel Logo --}} + + + + + + + + + + + {{-- 13 --}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + @if (Route::has('login')) + + @endif + + diff --git a/routes/auth.php b/routes/auth.php new file mode 100644 index 0000000..d8217bc --- /dev/null +++ b/routes/auth.php @@ -0,0 +1,61 @@ +group(function () { + Route::get('register', [RegisteredUserController::class, 'create']) + ->name('register'); + + Route::post('register', [RegisteredUserController::class, 'store']); + + Route::redirect('login', '/')->name('login.redirect'); + + Route::get('masuk-admin', [AuthenticatedSessionController::class, 'create']) + ->name('login'); + + Route::post('masuk-admin', [AuthenticatedSessionController::class, 'store']); + + Route::get('forgot-password', [PasswordResetLinkController::class, 'create']) + ->name('password.request'); + + Route::post('forgot-password', [PasswordResetLinkController::class, 'store']) + ->name('password.email'); + + Route::get('reset-password/{token}', [NewPasswordController::class, 'create']) + ->name('password.reset'); + + Route::post('reset-password', [NewPasswordController::class, 'store']) + ->name('password.store'); +}); + +Route::middleware('auth')->group(function () { + Route::get('verify-email', EmailVerificationPromptController::class) + ->name('verification.notice'); + + Route::get('verify-email/{id}/{hash}', VerifyEmailController::class) + ->middleware(['signed', 'throttle:6,1']) + ->name('verification.verify'); + + Route::post('email/verification-notification', [EmailVerificationNotificationController::class, 'store']) + ->middleware('throttle:6,1') + ->name('verification.send'); + + Route::get('confirm-password', [ConfirmablePasswordController::class, 'show']) + ->name('password.confirm'); + + Route::post('confirm-password', [ConfirmablePasswordController::class, 'store']); + + Route::put('password', [PasswordController::class, 'update'])->name('password.update'); + + Route::post('logout', [AuthenticatedSessionController::class, 'destroy']) + ->name('logout'); +}); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 0000000..3c9adf1 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,8 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..7445c47 --- /dev/null +++ b/routes/web.php @@ -0,0 +1,84 @@ +name('public.student-lookup'); +Route::get('/lengkapi-data-siswa', [PublicStudentSelfServiceController::class, 'index'])->name('public.student-self-service.index'); +Route::post('/lengkapi-data-siswa/verifikasi', [PublicStudentSelfServiceController::class, 'verify'])->name('public.student-self-service.verify'); +Route::get('/lengkapi-data-siswa/form', [PublicStudentSelfServiceController::class, 'edit'])->name('public.student-self-service.edit'); +Route::post('/lengkapi-data-siswa/form', [PublicStudentSelfServiceController::class, 'update'])->name('public.student-self-service.update'); +Route::redirect('/admin-akses-rahasia', '/masuk-admin'); +Route::redirect('/portal-admin-dk-login', '/masuk-admin'); +Route::redirect('/masuk-admin-rahasia', '/masuk-admin')->name('hidden-login'); +Route::get('public/student-documents/{document}/preview', [StudentDocumentController::class, 'publicPreview'])->name('public.students.documents.preview'); +Route::get('public/student-documents/{document}/download', [StudentDocumentController::class, 'publicDownload'])->name('public.students.documents.download'); +Route::get('regions/provinces/{province}/regencies', [RegionController::class, 'regencies'])->name('regions.regencies'); +Route::get('regions/regencies/{regency}/districts', [RegionController::class, 'districts'])->name('regions.districts'); +Route::get('regions/districts/{district}/villages', [RegionController::class, 'villages'])->name('regions.villages'); + +Route::middleware(['auth', 'verified'])->group(function () { + Route::get('/dashboard', DashboardController::class)->name('dashboard'); + + Route::middleware('role:admin')->group(function () { + Route::resource('academic-years', AcademicYearController::class); + Route::resource('departments', DepartmentController::class); + Route::post('classes/generate', [SchoolClassController::class, 'generate'])->name('classes.generate'); + Route::resource('classes', SchoolClassController::class); + Route::resource('document-types', DocumentTypeController::class); + Route::prefix('settings')->name('settings.')->group(function () { + Route::resource('users', UserManagementController::class)->except(['show']); + Route::get('branding', [BrandingSettingController::class, 'index'])->name('branding.index'); + Route::put('branding', [BrandingSettingController::class, 'update'])->name('branding.update'); + Route::get('reset-data', [MaintenanceController::class, 'index'])->name('reset-data.index'); + Route::post('reset-data', [MaintenanceController::class, 'reset'])->name('reset-data.execute'); + }); + }); + + Route::get('students/keluar', [StudentExitController::class, 'index'])->name('student-exits.index'); + Route::get('students/keluar/{studentExit}', [StudentExitController::class, 'show'])->name('student-exits.show'); + Route::patch('students/keluar/{studentExit}', [StudentExitController::class, 'update'])->name('student-exits.update'); + Route::get('students/keluar/{studentExit}/preview-letter', [StudentExitController::class, 'previewLetter'])->name('student-exits.preview-letter'); + Route::get('students/mutasi', [StudentTransferController::class, 'index'])->name('student-transfers.index'); + Route::get('students/mutasi/{studentTransfer}', [StudentTransferController::class, 'show'])->name('student-transfers.show'); + Route::patch('students/mutasi/{studentTransfer}', [StudentTransferController::class, 'update'])->name('student-transfers.update'); + Route::get('students/mutasi/{studentTransfer}/preview-letter', [StudentTransferController::class, 'previewLetter'])->name('student-transfers.preview-letter'); + Route::get('students/lulus', [StudentController::class, 'index'])->defaults('view', 'graduated')->name('students.graduated'); + Route::get('students/import', [StudentController::class, 'importForm'])->name('students.import.form'); + Route::post('students/import/preview', [StudentController::class, 'previewImport'])->name('students.import.preview'); + Route::post('students/import', [StudentController::class, 'import'])->name('students.import'); + Route::get('students/import/template', [StudentController::class, 'downloadImportTemplate'])->name('students.import.template'); + Route::delete('students/bulk-delete', [StudentController::class, 'bulkDestroy'])->name('students.bulk-destroy'); + Route::resource('students', StudentController::class); + Route::get('student-promotions', [StudentPromotionController::class, 'index'])->name('student-promotions.index'); + Route::post('student-promotions', [StudentPromotionController::class, 'store'])->name('student-promotions.store'); + Route::get('student-self-service', [StudentSelfServiceController::class, 'index'])->name('student-self-service.index'); + Route::resource('students.parents', StudentParentController::class)->except(['index', 'show']); + Route::resource('students.documents', StudentDocumentController::class)->except(['index', 'show']); + Route::post('students/{student}/documents/{document}/quick-verify', [StudentDocumentController::class, 'quickVerify'])->name('students.documents.quick-verify'); + Route::get('student-documents/{document}/preview', [StudentDocumentController::class, 'preview'])->name('students.documents.preview'); + Route::get('student-documents/{document}/download', [StudentDocumentController::class, 'download'])->name('students.documents.download'); + + Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); + Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); +}); + +require __DIR__.'/auth.php'; diff --git a/storage/app/.gitignore b/storage/app/.gitignore new file mode 100755 index 0000000..fedb287 --- /dev/null +++ b/storage/app/.gitignore @@ -0,0 +1,4 @@ +* +!private/ +!public/ +!.gitignore diff --git a/storage/app/private/.gitignore b/storage/app/private/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/private/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/app/public/.gitignore b/storage/app/public/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/.gitignore b/storage/framework/.gitignore new file mode 100755 index 0000000..05c4471 --- /dev/null +++ b/storage/framework/.gitignore @@ -0,0 +1,9 @@ +compiled.php +config.php +down +events.scanned.php +maintenance.php +routes.php +routes.scanned.php +schedule-* +services.json diff --git a/storage/framework/cache/.gitignore b/storage/framework/cache/.gitignore new file mode 100755 index 0000000..01e4a6c --- /dev/null +++ b/storage/framework/cache/.gitignore @@ -0,0 +1,3 @@ +* +!data/ +!.gitignore diff --git a/storage/framework/cache/data/.gitignore b/storage/framework/cache/data/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/cache/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/sessions/.gitignore b/storage/framework/sessions/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/testing/.gitignore b/storage/framework/testing/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/logs/.gitignore b/storage/logs/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/logs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..c29eb1a --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,21 @@ +import defaultTheme from 'tailwindcss/defaultTheme'; +import forms from '@tailwindcss/forms'; + +/** @type {import('tailwindcss').Config} */ +export default { + content: [ + './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', + './storage/framework/views/*.php', + './resources/views/**/*.blade.php', + ], + + theme: { + extend: { + fontFamily: { + sans: ['Figtree', ...defaultTheme.fontFamily.sans], + }, + }, + }, + + plugins: [forms], +}; diff --git a/tests/Feature/Auth/AuthenticationTest.php b/tests/Feature/Auth/AuthenticationTest.php new file mode 100644 index 0000000..13dcb7c --- /dev/null +++ b/tests/Feature/Auth/AuthenticationTest.php @@ -0,0 +1,54 @@ +get('/login'); + + $response->assertStatus(200); + } + + public function test_users_can_authenticate_using_the_login_screen(): void + { + $user = User::factory()->create(); + + $response = $this->post('/login', [ + 'email' => $user->email, + 'password' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(route('dashboard', absolute: false)); + } + + public function test_users_can_not_authenticate_with_invalid_password(): void + { + $user = User::factory()->create(); + + $this->post('/login', [ + 'email' => $user->email, + 'password' => 'wrong-password', + ]); + + $this->assertGuest(); + } + + public function test_users_can_logout(): void + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/logout'); + + $this->assertGuest(); + $response->assertRedirect('/'); + } +} diff --git a/tests/Feature/Auth/EmailVerificationTest.php b/tests/Feature/Auth/EmailVerificationTest.php new file mode 100644 index 0000000..705570b --- /dev/null +++ b/tests/Feature/Auth/EmailVerificationTest.php @@ -0,0 +1,58 @@ +unverified()->create(); + + $response = $this->actingAs($user)->get('/verify-email'); + + $response->assertStatus(200); + } + + public function test_email_can_be_verified(): void + { + $user = User::factory()->unverified()->create(); + + Event::fake(); + + $verificationUrl = URL::temporarySignedRoute( + 'verification.verify', + now()->addMinutes(60), + ['id' => $user->id, 'hash' => sha1($user->email)] + ); + + $response = $this->actingAs($user)->get($verificationUrl); + + Event::assertDispatched(Verified::class); + $this->assertTrue($user->fresh()->hasVerifiedEmail()); + $response->assertRedirect(route('dashboard', absolute: false).'?verified=1'); + } + + public function test_email_is_not_verified_with_invalid_hash(): void + { + $user = User::factory()->unverified()->create(); + + $verificationUrl = URL::temporarySignedRoute( + 'verification.verify', + now()->addMinutes(60), + ['id' => $user->id, 'hash' => sha1('wrong-email')] + ); + + $this->actingAs($user)->get($verificationUrl); + + $this->assertFalse($user->fresh()->hasVerifiedEmail()); + } +} diff --git a/tests/Feature/Auth/PasswordConfirmationTest.php b/tests/Feature/Auth/PasswordConfirmationTest.php new file mode 100644 index 0000000..ff85721 --- /dev/null +++ b/tests/Feature/Auth/PasswordConfirmationTest.php @@ -0,0 +1,44 @@ +create(); + + $response = $this->actingAs($user)->get('/confirm-password'); + + $response->assertStatus(200); + } + + public function test_password_can_be_confirmed(): void + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/confirm-password', [ + 'password' => 'password', + ]); + + $response->assertRedirect(); + $response->assertSessionHasNoErrors(); + } + + public function test_password_is_not_confirmed_with_invalid_password(): void + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/confirm-password', [ + 'password' => 'wrong-password', + ]); + + $response->assertSessionHasErrors(); + } +} diff --git a/tests/Feature/Auth/PasswordResetTest.php b/tests/Feature/Auth/PasswordResetTest.php new file mode 100644 index 0000000..aa50350 --- /dev/null +++ b/tests/Feature/Auth/PasswordResetTest.php @@ -0,0 +1,73 @@ +get('/forgot-password'); + + $response->assertStatus(200); + } + + public function test_reset_password_link_can_be_requested(): void + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class); + } + + public function test_reset_password_screen_can_be_rendered(): void + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class, function ($notification) { + $response = $this->get('/reset-password/'.$notification->token); + + $response->assertStatus(200); + + return true; + }); + } + + public function test_password_can_be_reset_with_valid_token(): void + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) { + $response = $this->post('/reset-password', [ + 'token' => $notification->token, + 'email' => $user->email, + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect(route('login')); + + return true; + }); + } +} diff --git a/tests/Feature/Auth/PasswordUpdateTest.php b/tests/Feature/Auth/PasswordUpdateTest.php new file mode 100644 index 0000000..ca28c6c --- /dev/null +++ b/tests/Feature/Auth/PasswordUpdateTest.php @@ -0,0 +1,51 @@ +create(); + + $response = $this + ->actingAs($user) + ->from('/profile') + ->put('/password', [ + 'current_password' => 'password', + 'password' => 'new-password', + 'password_confirmation' => 'new-password', + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect('/profile'); + + $this->assertTrue(Hash::check('new-password', $user->refresh()->password)); + } + + public function test_correct_password_must_be_provided_to_update_password(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->from('/profile') + ->put('/password', [ + 'current_password' => 'wrong-password', + 'password' => 'new-password', + 'password_confirmation' => 'new-password', + ]); + + $response + ->assertSessionHasErrorsIn('updatePassword', 'current_password') + ->assertRedirect('/profile'); + } +} diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.php new file mode 100644 index 0000000..1489d0e --- /dev/null +++ b/tests/Feature/Auth/RegistrationTest.php @@ -0,0 +1,31 @@ +get('/register'); + + $response->assertStatus(200); + } + + public function test_new_users_can_register(): void + { + $response = $this->post('/register', [ + 'name' => 'Test User', + 'email' => 'test@example.com', + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(route('dashboard', absolute: false)); + } +} diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..8364a84 --- /dev/null +++ b/tests/Feature/ExampleTest.php @@ -0,0 +1,19 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/tests/Feature/ProfileTest.php b/tests/Feature/ProfileTest.php new file mode 100644 index 0000000..252fdcc --- /dev/null +++ b/tests/Feature/ProfileTest.php @@ -0,0 +1,99 @@ +create(); + + $response = $this + ->actingAs($user) + ->get('/profile'); + + $response->assertOk(); + } + + public function test_profile_information_can_be_updated(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->patch('/profile', [ + 'name' => 'Test User', + 'email' => 'test@example.com', + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect('/profile'); + + $user->refresh(); + + $this->assertSame('Test User', $user->name); + $this->assertSame('test@example.com', $user->email); + $this->assertNull($user->email_verified_at); + } + + public function test_email_verification_status_is_unchanged_when_the_email_address_is_unchanged(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->patch('/profile', [ + 'name' => 'Test User', + 'email' => $user->email, + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect('/profile'); + + $this->assertNotNull($user->refresh()->email_verified_at); + } + + public function test_user_can_delete_their_account(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->delete('/profile', [ + 'password' => 'password', + ]); + + $response + ->assertSessionHasNoErrors() + ->assertRedirect('/'); + + $this->assertGuest(); + $this->assertNull($user->fresh()); + } + + public function test_correct_password_must_be_provided_to_delete_account(): void + { + $user = User::factory()->create(); + + $response = $this + ->actingAs($user) + ->from('/profile') + ->delete('/profile', [ + 'password' => 'wrong-password', + ]); + + $response + ->assertSessionHasErrorsIn('userDeletion', 'password') + ->assertRedirect('/profile'); + + $this->assertNotNull($user->fresh()); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..fe1ffc2 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..421b569 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,11 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + }), + ], +});