From cca98eefd2f0abac82fe1da43bbf35e42324dacd Mon Sep 17 00:00:00 2001 From: isaacclad Date: Mon, 29 Jun 2026 20:19:52 +0000 Subject: [PATCH] =?UTF-8?q?Initial=20Ladill=20Queue=20release=20=E2=80=94?= =?UTF-8?q?=20enterprise=20QMS=20standalone=20app.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Phases 1–6: tickets, counters, displays, appointments, workflows, rules, analytics, reports, feedback, admin, device API, and Gitea deploy workflow for queue.ladill.com. Co-authored-by: Cursor --- .editorconfig | 18 + .env.example | 54 + .gitattributes | 11 + .gitea/workflows/deploy.yml | 110 + .gitignore | 31 + DEPLOY.md | 53 + README.md | 78 + .../Commands/MarkDevicesOfflineCommand.php | 22 + .../SendAppointmentRemindersCommand.php | 43 + app/Events/ServiceEventOccurred.php | 19 + .../Controllers/Api/AnalyticsController.php | 27 + .../Controllers/Api/AppointmentController.php | 69 + app/Http/Controllers/Api/BranchController.php | 55 + .../Api/Concerns/ScopesApiToAccount.php | 44 + .../Controllers/Api/CounterController.php | 74 + .../Api/DeviceHeartbeatController.php | 32 + .../Controllers/Api/PublicQueueController.php | 78 + .../Controllers/Api/QueueRuleController.php | 52 + app/Http/Controllers/Api/ReportController.php | 41 + .../Api/ServiceEventController.php | 35 + .../Api/ServiceQueueController.php | 71 + app/Http/Controllers/Api/TicketController.php | 129 + .../Controllers/Api/WorkflowController.php | 34 + .../Controllers/Auth/SsoLoginController.php | 293 + app/Http/Controllers/Controller.php | 10 + .../Controllers/NotificationController.php | 64 + .../Controllers/Qms/AnalyticsController.php | 38 + .../Controllers/Qms/AppointmentController.php | 148 + .../Controllers/Qms/AuditLogController.php | 76 + app/Http/Controllers/Qms/BranchController.php | 102 + .../Qms/Concerns/ScopesToAccount.php | 59 + .../Controllers/Qms/ConsoleController.php | 117 + .../Controllers/Qms/CounterController.php | 128 + .../Controllers/Qms/DashboardController.php | 48 + .../Controllers/Qms/DepartmentController.php | 136 + app/Http/Controllers/Qms/DeviceController.php | 89 + .../Qms/DisplayPublicController.php | 47 + .../Qms/DisplayScreenController.php | 126 + .../Qms/FeedbackAdminController.php | 41 + .../Controllers/Qms/FeedbackController.php | 51 + .../Controllers/Qms/KioskDeviceController.php | 60 + app/Http/Controllers/Qms/MemberController.php | 98 + .../Controllers/Qms/MobileQueueController.php | 93 + .../Controllers/Qms/OnboardingController.php | 62 + .../Controllers/Qms/QueueBoardController.php | 52 + .../Controllers/Qms/QueueRuleController.php | 81 + app/Http/Controllers/Qms/ReportController.php | 142 + .../Qms/ServiceQueueController.php | 170 + .../Controllers/Qms/SettingsController.php | 66 + app/Http/Controllers/Qms/TicketController.php | 101 + .../Controllers/Qms/WorkflowController.php | 162 + app/Http/Middleware/AuthenticateQmsDevice.php | 31 + app/Http/Middleware/AuthenticateService.php | 38 + .../Middleware/EnsureOrganizationSetup.php | 33 + app/Http/Middleware/EnsurePlatformSession.php | 58 + app/Http/Middleware/EnsureQmsAbility.php | 34 + app/Http/Middleware/SetActingAccount.php | 29 + .../PlatformServiceEventListener.php | 82 + app/Mail/ContactMessageMail.php | 40 + app/Models/AuditLog.php | 56 + app/Models/Branch.php | 45 + app/Models/Concerns/BelongsToOwner.php | 13 + app/Models/Counter.php | 64 + app/Models/CustomerFeedback.php | 37 + app/Models/Department.php | 29 + app/Models/Device.php | 46 + app/Models/DisplayScreen.php | 49 + app/Models/Member.php | 31 + app/Models/Organization.php | 39 + app/Models/QueueAppointment.php | 58 + app/Models/QueueRule.php | 32 + app/Models/ServiceQueue.php | 69 + app/Models/ServiceSession.php | 37 + app/Models/Ticket.php | 68 + app/Models/TicketEvent.php | 38 + app/Models/User.php | 42 + app/Models/VoiceAnnouncement.php | 31 + app/Models/Workflow.php | 52 + app/Models/WorkflowStep.php | 30 + .../Qms/QueueStaffNotification.php | 40 + app/Providers/AppServiceProvider.php | 35 + app/Services/Billing/BillingClient.php | 64 + .../Billing/OneTimePurchaseService.php | 76 + app/Services/Comms/EmailService.php | 32 + app/Services/Comms/SmsService.php | 67 + app/Services/CrossApp/CrossAppLinkService.php | 112 + app/Services/Events/ServiceEventSignature.php | 20 + app/Services/Qms/AnalyticsService.php | 109 + app/Services/Qms/AppointmentService.php | 64 + app/Services/Qms/AuditLogger.php | 29 + app/Services/Qms/DashboardStats.php | 49 + app/Services/Qms/DeviceService.php | 44 + app/Services/Qms/DisplayService.php | 78 + app/Services/Qms/OrganizationResolver.php | 122 + app/Services/Qms/PlanService.php | 42 + app/Services/Qms/QmsPermissions.php | 65 + app/Services/Qms/QueueEngine.php | 386 + app/Services/Qms/QueueNotificationService.php | 90 + app/Services/Qms/QueueRuleService.php | 145 + app/Services/Qms/ReportService.php | 166 + app/Services/Qms/ServiceSessionTracker.php | 41 + app/Services/Qms/StaffNotifier.php | 40 + app/Services/Qms/TicketPresenter.php | 40 + app/Services/Qms/VoiceAnnouncementService.php | 69 + app/Services/Qms/WorkflowService.php | 99 + app/Support/DatabaseTime.php | 24 + app/Support/LadillAppUrl.php | 15 + app/Support/MobileTopbar.php | 19 + app/Support/OrganizationBranding.php | 50 + app/Support/UserProfileMenu.php | 163 + app/Support/helpers.php | 47 + artisan | 18 + bootstrap/app.php | 58 + bootstrap/cache/.gitignore | 2 + bootstrap/providers.php | 7 + composer.json | 94 + composer.lock | 8858 +++++++++++++++++ config/app.php | 132 + config/arkesel.php | 13 + config/auth.php | 117 + config/billing.php | 11 + config/cache.php | 117 + config/database.php | 204 + config/filesystems.php | 87 + config/identity.php | 7 + config/ladill.php | 6 + config/ladill_launcher.php | 42 + config/logging.php | 132 + config/mail.php | 132 + config/mobile-topbar.php | 5 + config/qms.php | 216 + config/queue.php | 129 + config/service_events.php | 5 + config/services.php | 30 + config/session.php | 217 + config/signed_out.php | 7 + database/.gitignore | 1 + .../0001_01_01_000000_create_users_table.php | 52 + .../0001_01_01_000001_create_cache_table.php | 35 + .../0001_01_01_000002_create_jobs_table.php | 57 + ..._06_30_100000_create_queue_core_tables.php | 87 + ...6_30_110000_create_queue_domain_tables.php | 297 + ...6_30_120000_create_notifications_table.php | 25 + deploy/bin/ladill-hosting-admin | 126 + deploy/bin/ladill-hosting-user | 21 + deploy/deploy.sh | 296 + deploy/sudoers.ladill-hosting.example | 7 + deployment/setup-service-subdomain-nginx.sh | 153 + package-lock.json | 2564 +++++ package.json | 25 + phpunit.xml | 38 + public/.htaccess | 25 + public/favicon.ico | Bin 0 -> 270398 bytes public/images/ladill-icons/bird.svg | 20 + public/images/ladill-icons/domains.svg | 20 + public/images/ladill-icons/events.svg | 2 + public/images/ladill-icons/pro.svg | 3 + public/images/ladill-icons/qrplus.svg | 25 + public/images/ladill-icons/server.svg | 1 + public/images/ladill-icons/wordpress.svg | 23 + public/images/launcher-icons/accounting.svg | 25 + public/images/launcher-icons/bird.svg | 20 + public/images/launcher-icons/care.svg | 25 + public/images/launcher-icons/crm.svg | 35 + public/images/launcher-icons/domains.svg | 20 + public/images/launcher-icons/email.svg | 25 + public/images/launcher-icons/events.svg | 21 + public/images/launcher-icons/frontdesk.svg | 25 + public/images/launcher-icons/give.svg | 20 + public/images/launcher-icons/hosting.svg | 40 + public/images/launcher-icons/invoice.svg | 25 + public/images/launcher-icons/link.svg | 25 + public/images/launcher-icons/mail.svg | 25 + public/images/launcher-icons/merchant.svg | 25 + public/images/launcher-icons/mini.svg | 25 + public/images/launcher-icons/pos.svg | 30 + public/images/launcher-icons/qrplus.svg | 25 + public/images/launcher-icons/queue.svg | 30 + public/images/launcher-icons/servers.svg | 35 + public/images/launcher-icons/sms.svg | 25 + public/images/launcher-icons/transfer.svg | 25 + public/images/logo/ladillcrm-logo.svg | 52 + .../images/logo/ladilldomains-logo-white.svg | 34 + public/images/logo/ladilldomains-logo.svg | 45 + public/images/logo/ladillemail-logo.svg | 48 + public/images/logo/ladillevents-logo.svg | 41 + public/images/logo/ladillfrontdesk-logo.svg | 50 + public/images/logo/ladillhosting-logo.svg | 61 + public/images/logo/ladillinvoice-logo.svg | 46 + public/images/logo/ladillmini-logo-email.png | Bin 0 -> 3302 bytes public/images/logo/ladillmini-logo.svg | 43 + .../images/logo/ladillqrplus-logo-white.svg | 27 + public/images/logo/ladillqrplus-logo.svg | 42 + public/images/logo/ladillqueue-logo.svg | 49 + public/images/qr-icons/app.svg | 11 + public/images/qr-icons/business-profile.svg | 14 + public/images/qr-icons/facebook.svg | 22 + public/images/qr-icons/instagram.svg | 24 + public/images/qr-icons/linkedin.svg | 24 + public/images/qr-icons/list.svg | 8 + public/images/qr-icons/terms.svg | 4 + public/images/qr-icons/tik-tok.svg | 20 + public/images/qr-icons/twitter.svg | 5 + public/images/qr-icons/website.svg | 12 + public/images/qr-icons/whatsapp.svg | 24 + public/images/qr-icons/wifi.svg | 6 + public/images/qr-icons/youtube.svg | 22 + public/index.php | 20 + public/robots.txt | 2 + resources/css/app.css | 223 + resources/js/app.js | 174 + resources/js/kiosk-flow.js | 98 + resources/views/auth/signed-out.blade.php | 52 + resources/views/auth/sso-error.blade.php | 30 + .../views/auth/sso-logout-bridge.blade.php | 26 + .../views/components/app-layout.blade.php | 61 + resources/views/components/badge.blade.php | 15 + .../views/components/btn/create.blade.php | 33 + resources/views/components/field.blade.php | 37 + resources/views/components/modal.blade.php | 88 + .../views/email/contact-message.blade.php | 18 + resources/views/notifications/index.blade.php | 24 + .../views/partials/afia-button.blade.php | 15 + resources/views/partials/afia.blade.php | 106 + .../views/partials/boot-splash.blade.php | 43 + resources/views/partials/favicon.blade.php | 8 + resources/views/partials/flash.blade.php | 34 + resources/views/partials/launcher.blade.php | 84 + .../partials/mobile-bottom-nav.blade.php | 130 + .../partials/mobile-header-btn.blade.php | 53 + .../views/partials/mobile-icon-link.blade.php | 27 + .../partials/mobile-topbar-title.blade.php | 6 + .../partials/notification-dropdown.blade.php | 97 + resources/views/partials/sidebar.blade.php | 85 + .../topbar-account-switcher.blade.php | 24 + .../partials/topbar-desktop-widgets.blade.php | 45 + resources/views/partials/topbar.blade.php | 33 + .../partials/user-profile-menu.blade.php | 73 + .../partials/wallet-topup-modal.blade.php | 24 + .../views/partials/wallet-widget.blade.php | 30 + .../views/qms/admin/branches/create.blade.php | 13 + .../views/qms/admin/branches/edit.blade.php | 14 + .../views/qms/admin/branches/index.blade.php | 31 + .../qms/admin/departments/create.blade.php | 16 + .../qms/admin/departments/edit.blade.php | 14 + .../qms/admin/departments/index.blade.php | 31 + .../views/qms/admin/members/create.blade.php | 16 + .../views/qms/admin/members/index.blade.php | 33 + resources/views/qms/analytics/index.blade.php | 42 + .../views/qms/appointments/create.blade.php | 42 + .../views/qms/appointments/edit.blade.php | 18 + .../views/qms/appointments/index.blade.php | 47 + resources/views/qms/audit/index.blade.php | 37 + resources/views/qms/board/index.blade.php | 51 + resources/views/qms/console/show.blade.php | 72 + resources/views/qms/counters/create.blade.php | 20 + resources/views/qms/counters/edit.blade.php | 18 + resources/views/qms/counters/index.blade.php | 20 + resources/views/qms/counters/show.blade.php | 14 + resources/views/qms/dashboard.blade.php | 130 + resources/views/qms/devices/create.blade.php | 20 + resources/views/qms/devices/index.blade.php | 22 + resources/views/qms/display/public.blade.php | 48 + resources/views/qms/displays/create.blade.php | 24 + resources/views/qms/displays/edit.blade.php | 20 + resources/views/qms/displays/index.blade.php | 18 + resources/views/qms/displays/show.blade.php | 11 + resources/views/qms/feedback/index.blade.php | 29 + resources/views/qms/feedback/show.blade.php | 38 + resources/views/qms/kiosk/device.blade.php | 50 + resources/views/qms/mobile/join.blade.php | 34 + resources/views/qms/mobile/show.blade.php | 38 + resources/views/qms/onboarding/show.blade.php | 71 + resources/views/qms/queues/_form.blade.php | 44 + resources/views/qms/queues/create.blade.php | 16 + resources/views/qms/queues/edit.blade.php | 11 + resources/views/qms/queues/index.blade.php | 73 + resources/views/qms/queues/show.blade.php | 19 + resources/views/qms/reports/index.blade.php | 11 + resources/views/qms/reports/show.blade.php | 41 + resources/views/qms/rules/index.blade.php | 68 + resources/views/qms/settings/edit.blade.php | 36 + resources/views/qms/tickets/create.blade.php | 33 + resources/views/qms/tickets/index.blade.php | 29 + resources/views/qms/tickets/print.blade.php | 12 + resources/views/qms/tickets/show.blade.php | 21 + .../views/qms/workflows/create.blade.php | 50 + resources/views/qms/workflows/edit.blade.php | 22 + resources/views/qms/workflows/index.blade.php | 29 + resources/views/qms/workflows/show.blade.php | 21 + routes/api.php | 60 + routes/console.php | 12 + routes/web.php | 168 + tests/Feature/QmsQueueTest.php | 192 + tests/TestCase.php | 14 + tests/Unit/ExampleTest.php | 16 + vite.config.js | 18 + 297 files changed, 27263 insertions(+) create mode 100644 .editorconfig create mode 100644 .env.example create mode 100644 .gitattributes create mode 100644 .gitea/workflows/deploy.yml create mode 100644 .gitignore create mode 100644 DEPLOY.md create mode 100644 README.md create mode 100644 app/Console/Commands/MarkDevicesOfflineCommand.php create mode 100644 app/Console/Commands/SendAppointmentRemindersCommand.php create mode 100644 app/Events/ServiceEventOccurred.php create mode 100644 app/Http/Controllers/Api/AnalyticsController.php create mode 100644 app/Http/Controllers/Api/AppointmentController.php create mode 100644 app/Http/Controllers/Api/BranchController.php create mode 100644 app/Http/Controllers/Api/Concerns/ScopesApiToAccount.php create mode 100644 app/Http/Controllers/Api/CounterController.php create mode 100644 app/Http/Controllers/Api/DeviceHeartbeatController.php create mode 100644 app/Http/Controllers/Api/PublicQueueController.php create mode 100644 app/Http/Controllers/Api/QueueRuleController.php create mode 100644 app/Http/Controllers/Api/ReportController.php create mode 100644 app/Http/Controllers/Api/ServiceEventController.php create mode 100644 app/Http/Controllers/Api/ServiceQueueController.php create mode 100644 app/Http/Controllers/Api/TicketController.php create mode 100644 app/Http/Controllers/Api/WorkflowController.php create mode 100644 app/Http/Controllers/Auth/SsoLoginController.php create mode 100644 app/Http/Controllers/Controller.php create mode 100644 app/Http/Controllers/NotificationController.php create mode 100644 app/Http/Controllers/Qms/AnalyticsController.php create mode 100644 app/Http/Controllers/Qms/AppointmentController.php create mode 100644 app/Http/Controllers/Qms/AuditLogController.php create mode 100644 app/Http/Controllers/Qms/BranchController.php create mode 100644 app/Http/Controllers/Qms/Concerns/ScopesToAccount.php create mode 100644 app/Http/Controllers/Qms/ConsoleController.php create mode 100644 app/Http/Controllers/Qms/CounterController.php create mode 100644 app/Http/Controllers/Qms/DashboardController.php create mode 100644 app/Http/Controllers/Qms/DepartmentController.php create mode 100644 app/Http/Controllers/Qms/DeviceController.php create mode 100644 app/Http/Controllers/Qms/DisplayPublicController.php create mode 100644 app/Http/Controllers/Qms/DisplayScreenController.php create mode 100644 app/Http/Controllers/Qms/FeedbackAdminController.php create mode 100644 app/Http/Controllers/Qms/FeedbackController.php create mode 100644 app/Http/Controllers/Qms/KioskDeviceController.php create mode 100644 app/Http/Controllers/Qms/MemberController.php create mode 100644 app/Http/Controllers/Qms/MobileQueueController.php create mode 100644 app/Http/Controllers/Qms/OnboardingController.php create mode 100644 app/Http/Controllers/Qms/QueueBoardController.php create mode 100644 app/Http/Controllers/Qms/QueueRuleController.php create mode 100644 app/Http/Controllers/Qms/ReportController.php create mode 100644 app/Http/Controllers/Qms/ServiceQueueController.php create mode 100644 app/Http/Controllers/Qms/SettingsController.php create mode 100644 app/Http/Controllers/Qms/TicketController.php create mode 100644 app/Http/Controllers/Qms/WorkflowController.php create mode 100644 app/Http/Middleware/AuthenticateQmsDevice.php create mode 100644 app/Http/Middleware/AuthenticateService.php create mode 100644 app/Http/Middleware/EnsureOrganizationSetup.php create mode 100644 app/Http/Middleware/EnsurePlatformSession.php create mode 100644 app/Http/Middleware/EnsureQmsAbility.php create mode 100644 app/Http/Middleware/SetActingAccount.php create mode 100644 app/Listeners/PlatformServiceEventListener.php create mode 100644 app/Mail/ContactMessageMail.php create mode 100644 app/Models/AuditLog.php create mode 100644 app/Models/Branch.php create mode 100644 app/Models/Concerns/BelongsToOwner.php create mode 100644 app/Models/Counter.php create mode 100644 app/Models/CustomerFeedback.php create mode 100644 app/Models/Department.php create mode 100644 app/Models/Device.php create mode 100644 app/Models/DisplayScreen.php create mode 100644 app/Models/Member.php create mode 100644 app/Models/Organization.php create mode 100644 app/Models/QueueAppointment.php create mode 100644 app/Models/QueueRule.php create mode 100644 app/Models/ServiceQueue.php create mode 100644 app/Models/ServiceSession.php create mode 100644 app/Models/Ticket.php create mode 100644 app/Models/TicketEvent.php create mode 100644 app/Models/User.php create mode 100644 app/Models/VoiceAnnouncement.php create mode 100644 app/Models/Workflow.php create mode 100644 app/Models/WorkflowStep.php create mode 100644 app/Notifications/Qms/QueueStaffNotification.php create mode 100644 app/Providers/AppServiceProvider.php create mode 100644 app/Services/Billing/BillingClient.php create mode 100644 app/Services/Billing/OneTimePurchaseService.php create mode 100644 app/Services/Comms/EmailService.php create mode 100644 app/Services/Comms/SmsService.php create mode 100644 app/Services/CrossApp/CrossAppLinkService.php create mode 100644 app/Services/Events/ServiceEventSignature.php create mode 100644 app/Services/Qms/AnalyticsService.php create mode 100644 app/Services/Qms/AppointmentService.php create mode 100644 app/Services/Qms/AuditLogger.php create mode 100644 app/Services/Qms/DashboardStats.php create mode 100644 app/Services/Qms/DeviceService.php create mode 100644 app/Services/Qms/DisplayService.php create mode 100644 app/Services/Qms/OrganizationResolver.php create mode 100644 app/Services/Qms/PlanService.php create mode 100644 app/Services/Qms/QmsPermissions.php create mode 100644 app/Services/Qms/QueueEngine.php create mode 100644 app/Services/Qms/QueueNotificationService.php create mode 100644 app/Services/Qms/QueueRuleService.php create mode 100644 app/Services/Qms/ReportService.php create mode 100644 app/Services/Qms/ServiceSessionTracker.php create mode 100644 app/Services/Qms/StaffNotifier.php create mode 100644 app/Services/Qms/TicketPresenter.php create mode 100644 app/Services/Qms/VoiceAnnouncementService.php create mode 100644 app/Services/Qms/WorkflowService.php create mode 100644 app/Support/DatabaseTime.php create mode 100644 app/Support/LadillAppUrl.php create mode 100644 app/Support/MobileTopbar.php create mode 100644 app/Support/OrganizationBranding.php create mode 100644 app/Support/UserProfileMenu.php create mode 100644 app/Support/helpers.php create mode 100755 artisan create mode 100644 bootstrap/app.php create mode 100644 bootstrap/cache/.gitignore create mode 100644 bootstrap/providers.php create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 config/app.php create mode 100644 config/arkesel.php create mode 100644 config/auth.php create mode 100644 config/billing.php create mode 100644 config/cache.php create mode 100644 config/database.php create mode 100644 config/filesystems.php create mode 100644 config/identity.php create mode 100644 config/ladill.php create mode 100644 config/ladill_launcher.php create mode 100644 config/logging.php create mode 100644 config/mail.php create mode 100644 config/mobile-topbar.php create mode 100644 config/qms.php create mode 100644 config/queue.php create mode 100644 config/service_events.php create mode 100644 config/services.php create mode 100644 config/session.php create mode 100644 config/signed_out.php create mode 100644 database/.gitignore create mode 100644 database/migrations/0001_01_01_000000_create_users_table.php create mode 100644 database/migrations/0001_01_01_000001_create_cache_table.php create mode 100644 database/migrations/0001_01_01_000002_create_jobs_table.php create mode 100644 database/migrations/2026_06_30_100000_create_queue_core_tables.php create mode 100644 database/migrations/2026_06_30_110000_create_queue_domain_tables.php create mode 100644 database/migrations/2026_06_30_120000_create_notifications_table.php create mode 100755 deploy/bin/ladill-hosting-admin create mode 100755 deploy/bin/ladill-hosting-user create mode 100755 deploy/deploy.sh create mode 100644 deploy/sudoers.ladill-hosting.example create mode 100755 deployment/setup-service-subdomain-nginx.sh create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 phpunit.xml create mode 100644 public/.htaccess create mode 100644 public/favicon.ico create mode 100644 public/images/ladill-icons/bird.svg create mode 100644 public/images/ladill-icons/domains.svg create mode 100644 public/images/ladill-icons/events.svg create mode 100644 public/images/ladill-icons/pro.svg create mode 100644 public/images/ladill-icons/qrplus.svg create mode 100644 public/images/ladill-icons/server.svg create mode 100644 public/images/ladill-icons/wordpress.svg create mode 100644 public/images/launcher-icons/accounting.svg create mode 100644 public/images/launcher-icons/bird.svg create mode 100644 public/images/launcher-icons/care.svg create mode 100644 public/images/launcher-icons/crm.svg create mode 100644 public/images/launcher-icons/domains.svg create mode 100644 public/images/launcher-icons/email.svg create mode 100644 public/images/launcher-icons/events.svg create mode 100644 public/images/launcher-icons/frontdesk.svg create mode 100644 public/images/launcher-icons/give.svg create mode 100644 public/images/launcher-icons/hosting.svg create mode 100644 public/images/launcher-icons/invoice.svg create mode 100644 public/images/launcher-icons/link.svg create mode 100644 public/images/launcher-icons/mail.svg create mode 100644 public/images/launcher-icons/merchant.svg create mode 100644 public/images/launcher-icons/mini.svg create mode 100644 public/images/launcher-icons/pos.svg create mode 100644 public/images/launcher-icons/qrplus.svg create mode 100644 public/images/launcher-icons/queue.svg create mode 100644 public/images/launcher-icons/servers.svg create mode 100644 public/images/launcher-icons/sms.svg create mode 100644 public/images/launcher-icons/transfer.svg create mode 100644 public/images/logo/ladillcrm-logo.svg create mode 100644 public/images/logo/ladilldomains-logo-white.svg create mode 100644 public/images/logo/ladilldomains-logo.svg create mode 100644 public/images/logo/ladillemail-logo.svg create mode 100644 public/images/logo/ladillevents-logo.svg create mode 100644 public/images/logo/ladillfrontdesk-logo.svg create mode 100644 public/images/logo/ladillhosting-logo.svg create mode 100644 public/images/logo/ladillinvoice-logo.svg create mode 100644 public/images/logo/ladillmini-logo-email.png create mode 100644 public/images/logo/ladillmini-logo.svg create mode 100644 public/images/logo/ladillqrplus-logo-white.svg create mode 100644 public/images/logo/ladillqrplus-logo.svg create mode 100644 public/images/logo/ladillqueue-logo.svg create mode 100644 public/images/qr-icons/app.svg create mode 100644 public/images/qr-icons/business-profile.svg create mode 100644 public/images/qr-icons/facebook.svg create mode 100644 public/images/qr-icons/instagram.svg create mode 100644 public/images/qr-icons/linkedin.svg create mode 100644 public/images/qr-icons/list.svg create mode 100644 public/images/qr-icons/terms.svg create mode 100644 public/images/qr-icons/tik-tok.svg create mode 100644 public/images/qr-icons/twitter.svg create mode 100644 public/images/qr-icons/website.svg create mode 100644 public/images/qr-icons/whatsapp.svg create mode 100644 public/images/qr-icons/wifi.svg create mode 100644 public/images/qr-icons/youtube.svg create mode 100644 public/index.php create mode 100644 public/robots.txt create mode 100644 resources/css/app.css create mode 100644 resources/js/app.js create mode 100644 resources/js/kiosk-flow.js create mode 100644 resources/views/auth/signed-out.blade.php create mode 100644 resources/views/auth/sso-error.blade.php create mode 100644 resources/views/auth/sso-logout-bridge.blade.php create mode 100644 resources/views/components/app-layout.blade.php create mode 100644 resources/views/components/badge.blade.php create mode 100644 resources/views/components/btn/create.blade.php create mode 100644 resources/views/components/field.blade.php create mode 100644 resources/views/components/modal.blade.php create mode 100644 resources/views/email/contact-message.blade.php create mode 100644 resources/views/notifications/index.blade.php create mode 100644 resources/views/partials/afia-button.blade.php create mode 100644 resources/views/partials/afia.blade.php create mode 100644 resources/views/partials/boot-splash.blade.php create mode 100644 resources/views/partials/favicon.blade.php create mode 100644 resources/views/partials/flash.blade.php create mode 100644 resources/views/partials/launcher.blade.php create mode 100644 resources/views/partials/mobile-bottom-nav.blade.php create mode 100644 resources/views/partials/mobile-header-btn.blade.php create mode 100644 resources/views/partials/mobile-icon-link.blade.php create mode 100644 resources/views/partials/mobile-topbar-title.blade.php create mode 100644 resources/views/partials/notification-dropdown.blade.php create mode 100644 resources/views/partials/sidebar.blade.php create mode 100644 resources/views/partials/topbar-account-switcher.blade.php create mode 100644 resources/views/partials/topbar-desktop-widgets.blade.php create mode 100644 resources/views/partials/topbar.blade.php create mode 100644 resources/views/partials/user-profile-menu.blade.php create mode 100644 resources/views/partials/wallet-topup-modal.blade.php create mode 100644 resources/views/partials/wallet-widget.blade.php create mode 100644 resources/views/qms/admin/branches/create.blade.php create mode 100644 resources/views/qms/admin/branches/edit.blade.php create mode 100644 resources/views/qms/admin/branches/index.blade.php create mode 100644 resources/views/qms/admin/departments/create.blade.php create mode 100644 resources/views/qms/admin/departments/edit.blade.php create mode 100644 resources/views/qms/admin/departments/index.blade.php create mode 100644 resources/views/qms/admin/members/create.blade.php create mode 100644 resources/views/qms/admin/members/index.blade.php create mode 100644 resources/views/qms/analytics/index.blade.php create mode 100644 resources/views/qms/appointments/create.blade.php create mode 100644 resources/views/qms/appointments/edit.blade.php create mode 100644 resources/views/qms/appointments/index.blade.php create mode 100644 resources/views/qms/audit/index.blade.php create mode 100644 resources/views/qms/board/index.blade.php create mode 100644 resources/views/qms/console/show.blade.php create mode 100644 resources/views/qms/counters/create.blade.php create mode 100644 resources/views/qms/counters/edit.blade.php create mode 100644 resources/views/qms/counters/index.blade.php create mode 100644 resources/views/qms/counters/show.blade.php create mode 100644 resources/views/qms/dashboard.blade.php create mode 100644 resources/views/qms/devices/create.blade.php create mode 100644 resources/views/qms/devices/index.blade.php create mode 100644 resources/views/qms/display/public.blade.php create mode 100644 resources/views/qms/displays/create.blade.php create mode 100644 resources/views/qms/displays/edit.blade.php create mode 100644 resources/views/qms/displays/index.blade.php create mode 100644 resources/views/qms/displays/show.blade.php create mode 100644 resources/views/qms/feedback/index.blade.php create mode 100644 resources/views/qms/feedback/show.blade.php create mode 100644 resources/views/qms/kiosk/device.blade.php create mode 100644 resources/views/qms/mobile/join.blade.php create mode 100644 resources/views/qms/mobile/show.blade.php create mode 100644 resources/views/qms/onboarding/show.blade.php create mode 100644 resources/views/qms/queues/_form.blade.php create mode 100644 resources/views/qms/queues/create.blade.php create mode 100644 resources/views/qms/queues/edit.blade.php create mode 100644 resources/views/qms/queues/index.blade.php create mode 100644 resources/views/qms/queues/show.blade.php create mode 100644 resources/views/qms/reports/index.blade.php create mode 100644 resources/views/qms/reports/show.blade.php create mode 100644 resources/views/qms/rules/index.blade.php create mode 100644 resources/views/qms/settings/edit.blade.php create mode 100644 resources/views/qms/tickets/create.blade.php create mode 100644 resources/views/qms/tickets/index.blade.php create mode 100644 resources/views/qms/tickets/print.blade.php create mode 100644 resources/views/qms/tickets/show.blade.php create mode 100644 resources/views/qms/workflows/create.blade.php create mode 100644 resources/views/qms/workflows/edit.blade.php create mode 100644 resources/views/qms/workflows/index.blade.php create mode 100644 resources/views/qms/workflows/show.blade.php create mode 100644 routes/api.php create mode 100644 routes/console.php create mode 100644 routes/web.php create mode 100644 tests/Feature/QmsQueueTest.php create mode 100644 tests/TestCase.php create mode 100644 tests/Unit/ExampleTest.php create mode 100644 vite.config.js 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..aa2a2e8 --- /dev/null +++ b/.env.example @@ -0,0 +1,54 @@ +APP_NAME="Ladill Queue" +APP_ENV=production +APP_KEY= +APP_DEBUG=false +APP_URL=https://queue.ladill.com + +PLATFORM_URL=https://ladill.com +PLATFORM_DOMAIN=ladill.com + +LOG_CHANNEL=stack +LOG_LEVEL=error + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=ladill_queue +DB_USERNAME=ladill_queue +DB_PASSWORD= + +SESSION_DRIVER=database +# Idle web session length in minutes (1440 = 24 hours of inactivity). +SESSION_LIFETIME=1440 +CACHE_STORE=database +QUEUE_CONNECTION=database + +# --- Ladill SSO (Sign in with Ladill — auth.ladill.com OIDC client) --- +LADILL_SSO_CLIENT_ID= +LADILL_SSO_CLIENT_SECRET= + +# --- Platform APIs this app consumes (per-consumer service keys) --- +BILLING_API_URL=https://ladill.com/api/billing +BILLING_API_KEY_QUEUE= +IDENTITY_API_URL=https://ladill.com/api +IDENTITY_API_KEY_QUEUE= + +# Afia AI assistant (uses platform relay via IDENTITY_API_KEY when AFIA_API_KEY is unset) +AFIA_ENABLED=true +# AFIA_API_KEY= +# AFIA_PLATFORM_API_URL=https://ladill.com/api +# AFIA_PLATFORM_API_KEY= + +# Platform events webhook (user/org lifecycle from the monolith) +SERVICE_EVENTS_INBOUND_SECRET= + +# --- Inbound service API keys (sibling Ladill apps calling Queue) --- +QUEUE_API_KEY_POS= +QUEUE_API_KEY_CRM= +QUEUE_API_KEY_CARE= +QUEUE_API_KEY_FRONTDESK= + +# Optional: platform DB read for SSO user resolution (same host as monolith) +# PLATFORM_DB_DATABASE=ladilldb +# PLATFORM_DB_USERNAME= +# PLATFORM_DB_PASSWORD= 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/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..2f6f383 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,110 @@ +name: Deploy Ladill Queue + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: deploy-queue + cancel-in-progress: true + +jobs: + deploy: + runs-on: deploy + env: + NODE_ROOT: /tmp/ladill-node-22-r1 + NODE_VERSION: "22.14.0" + RELEASE_ARCHIVE: /tmp/ladill-queue-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz + WORKSPACE: /tmp/${{ gitea.repository_owner }}-queue-${{ gitea.run_id }}-${{ gitea.run_attempt }} + LADILL_APP_ROOT: /var/www/ladill-queue + steps: + - name: Checkout + shell: bash {0} + run: | + set -Eeuo pipefail + DEPLOY_GITEA_TOKEN="$(cat /home/deploy/.ladill-deploy-gitea-token)" + REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" + rm -rf "$WORKSPACE" + mkdir -p "$WORKSPACE" + export GIT_TERMINAL_PROMPT=0 + git \ + -c credential.helper= \ + -c http.extraHeader="Authorization: token ${DEPLOY_GITEA_TOKEN}" \ + clone --depth 1 --single-branch --no-tags --branch "${{ gitea.ref_name }}" \ + "$REPO_URL" "$WORKSPACE" + + - name: Setup Node.js + shell: bash {0} + run: | + set -Eeuo pipefail + if [ ! -x "$NODE_ROOT/bin/node" ]; then + rm -rf "$NODE_ROOT" + mkdir -p "$NODE_ROOT" + case "$(uname -m)" in + x86_64|amd64) NODE_ARCH="x64" ;; + aarch64|arm64) NODE_ARCH="arm64" ;; + *) echo "Unsupported architecture: $(uname -m)" >&2; exit 1 ;; + esac + curl -fsSL "https://nodejs.org/download/release/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.xz" \ + | tar -xJ --strip-components=1 -C "$NODE_ROOT" + fi + "$NODE_ROOT/bin/node" -v + + - name: Build frontend assets + shell: bash {0} + run: | + set -Eeuo pipefail + cd "$WORKSPACE" + export PATH="$NODE_ROOT/bin:$PATH" + npm ci --no-audit --no-fund + npm run build + + - name: Build release archive + shell: bash {0} + run: | + set -Eeuo pipefail + cd "$WORKSPACE" + printf '%s\n' "${{ gitea.sha }}" > REVISION + rm -f "$RELEASE_ARCHIVE" + tar -czf "$RELEASE_ARCHIVE" \ + --exclude=.git --exclude=.gitea --exclude=.github --exclude=.env \ + --exclude=node_modules --exclude=vendor --exclude=storage --exclude=tests . + + - name: Deploy release + shell: bash {0} + env: + LADILL_RELEASE_ARCHIVE: /tmp/ladill-queue-release-${{ gitea.run_id }}-${{ gitea.run_attempt }}.tgz + run: | + set -Eeuo pipefail + : "${LADILL_APP_ROOT:?Set LADILL_APP_ROOT}" + bash "$WORKSPACE/deploy/deploy.sh" + + - name: Ensure nginx vhost + shell: bash {0} + run: | + set -Eeuo pipefail + NGINX_SCRIPT="$WORKSPACE/deployment/setup-service-subdomain-nginx.sh" + if [ ! -f "$NGINX_SCRIPT" ]; then + NGINX_SCRIPT="/var/www/ladill.com/current/deployment/setup-service-subdomain-nginx.sh" + fi + if [ ! -f "$NGINX_SCRIPT" ]; then + echo "WARN: setup-service-subdomain-nginx.sh not found — configure queue.ladill.com vhost manually" + exit 0 + fi + if sudo -n bash "$NGINX_SCRIPT" queue --app /var/www/ladill-queue/current; then + echo "nginx vhost updated for queue.ladill.com" + else + echo "WARN: nginx vhost step skipped (deploy user cannot sudo) — vhost must already be provisioned" + fi + + - name: Cleanup + if: always() + shell: bash {0} + run: | + rm -rf "$WORKSPACE" + rm -f "$RELEASE_ARCHIVE" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd47ce8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +*.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/framework/views/* +!/storage/framework/views/.gitignore +/vendor +Homestead.json +Homestead.yaml +Thumbs.db + +# Native mobile apps — kept locally, not tracked in this repo +/apps + +/database/database.sqlite diff --git a/DEPLOY.md b/DEPLOY.md new file mode 100644 index 0000000..be24f6c --- /dev/null +++ b/DEPLOY.md @@ -0,0 +1,53 @@ +# Ladill Queue — deploy runbook + +Enterprise queue management at **queue.ladill.com** (tickets, counters, displays, appointments, analytics). + +## 1. Gitea repo + CI + +- Repo: **ladill-queue** (`isaacclad/ladill-queue`). +- Canonical repo: `/Users/isaacclad/Forty8Tech/ladill-queue` (not nested under the monorepo). +- App root on server: `/var/www/ladill-queue`. + +## 2. Server app-slot + database + +```bash +sudo install -d -o deploy -g www-data /var/www/ladill-queue +sudo install -d -o deploy -g www-data /var/www/ladill-queue/{releases,shared} +sudo chown -R deploy:www-data /var/www/ladill-queue +sudo mysql -e "CREATE DATABASE ladill_queue CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" +sudo mysql -e "CREATE USER 'ladill_queue'@'127.0.0.1' IDENTIFIED BY '';" +sudo mysql -e "GRANT ALL ON ladill_queue.* TO 'ladill_queue'@'127.0.0.1'; FLUSH PRIVILEGES;" +``` + +## 3. Platform wiring (monolith) + +```bash +cd /var/www/ladill.com/current +php artisan ladill:onboard-app queue --run-dns +php artisan passport:client --name="Ladill Queue" --redirect_uri=https://queue.ladill.com/sso/callback +php artisan ladill:launcher:sync --propagate +``` + +## 4. Shared `.env` (`/var/www/ladill-queue/shared/.env`) + +Set `APP_URL=https://queue.ladill.com`, MySQL `ladill_queue` credentials, SSO client, billing/identity keys, and `SERVICE_EVENTS_INBOUND_SECRET`. + +## 5. nginx + TLS + +```bash +sudo bash deployment/setup-service-subdomain-nginx.sh queue --app /var/www/ladill-queue/current +``` + +## 6. Scheduler + +Ensure cron runs `php artisan schedule:run` for: + +- `qms:mark-devices-offline` (every 5 min) +- `qms:send-appointment-reminders` (every 15 min) + +## 7. Verify + +```bash +curl -s https://queue.ladill.com/api/health +curl -sI https://queue.ladill.com/login | head -1 +``` diff --git a/README.md b/README.md new file mode 100644 index 0000000..f7a8b59 --- /dev/null +++ b/README.md @@ -0,0 +1,78 @@ +# Ladill CRM + +The Ladill **sales CRM** at `crm.ladill.com` — a full SSO web app for managing +**contacts, leads, deals, activities and products** — *and* the shared +Customers/Leads/Products service consumed over HTTP by Ladill Invoice, Merchant, +Mini and future apps, so contact + catalog data is owned in one place and reused +everywhere. + +Every record is scoped to one platform account via `owner_ref` (the user's +`public_id` / OIDC `sub`). + +## App (web UI — Sign in with Ladill) + +Authenticates against `auth.ladill.com` (OIDC Authorization Code + PKCE; see +`Auth\SsoLoginController`). Local session is subordinate to the platform session +(`platform.session` middleware) and joins Single Logout via +`/sso/logout-frontchannel`. + +- **Dashboard** — KPIs (contacts, open leads, open deals, pipeline value), + tasks due, recent activity. +- **Contacts** — the contact book, with a per-contact **timeline** (notes, + tasks, logged calls/meetings, sent email + SMS) and cross-product events + (invoices, payments, orders) pushed from sibling apps. +- **Leads** — list + **kanban board** (`new → contacted → qualified`), convert + to a contact. +- **Deals** — drag-free **pipeline** kanban across configurable stages + (`config/crm.pipeline_stages`), won/lost tracking. +- **Activities** — notes, tasks (with due dates / completion), calls, meetings. +- **Products & services** — reusable catalog items. +- **Comms** — email contacts (via the app mailer / Ladill Bird SMTP) and SMS + (Termii); each send is logged on the timeline. +- **Reports** — pipeline by stage, win rate, won value over time, leads by + status, activity mix. + +## Service API (first-party, service-key auth) + +Authenticate with a per-consumer service key: +`Authorization: Bearer ` (see `config/crm.php`, +`App\Http\Middleware\AuthenticateService`, alias `auth.service:crm`). Every +request must pass `owner` (query or body) to scope data to the end user. + +``` +GET /api/customers?owner=&search= +POST /api/customers {owner,name,email,phone,company,...} +... (show/update/destroy) + +GET /api/leads?owner=&status= +POST /api/leads {owner,name,status,estimated_value_minor,...} +POST /api/leads/{id}/convert {owner} -> creates/links a customer + +GET /api/products?owner=&type=&active= +POST /api/products {owner,name,type,unit_price_minor,currency,tax_rate} + +POST /api/timeline {owner,event,title,external_id,amount_minor, + currency,url,customer_id|customer_email,...} +``` + +`POST /api/timeline` is how sibling products push "what happened" events onto a +contact's timeline (`invoice.sent`, `payment.received`, `order.paid`). The +`source` is derived from the service key (never client-supplied) and the write +is idempotent per `(owner, source, external_id, event)`. Reference consumer: +`ladill-invoice` `App\Services\Crm\CrmClient::pushTimeline()`. + +No key → 401; missing `owner` → 422; cross-owner access → 404. + +## Local dev + +```bash +composer install +cp .env.example .env && php artisan key:generate +# sqlite for local: set DB_CONNECTION=sqlite and `touch database/database.sqlite` +php artisan migrate +npm install && npm run build # or `npm run dev` +php artisan serve +php artisan test +``` + +See `DEPLOY.md` for production cutover. diff --git a/app/Console/Commands/MarkDevicesOfflineCommand.php b/app/Console/Commands/MarkDevicesOfflineCommand.php new file mode 100644 index 0000000..fcfb60f --- /dev/null +++ b/app/Console/Commands/MarkDevicesOfflineCommand.php @@ -0,0 +1,22 @@ +markStaleOffline(); + + $this->info("Marked {$count} device(s) offline."); + + return self::SUCCESS; + } +} diff --git a/app/Console/Commands/SendAppointmentRemindersCommand.php b/app/Console/Commands/SendAppointmentRemindersCommand.php new file mode 100644 index 0000000..0a07b65 --- /dev/null +++ b/app/Console/Commands/SendAppointmentRemindersCommand.php @@ -0,0 +1,43 @@ +option('minutes'); + $from = now(); + $to = now()->addMinutes($minutes); + + $appointments = QueueAppointment::query() + ->where('status', 'scheduled') + ->whereBetween('scheduled_at', [$from, $to]) + ->where(function ($q) { + $q->whereNull('metadata') + ->orWhereNull('metadata->reminder_sent'); + }) + ->get(); + + $count = 0; + foreach ($appointments as $appointment) { + $notifications->appointmentReminder($appointment); + $metadata = $appointment->metadata ?? []; + $metadata['reminder_sent'] = now()->toIso8601String(); + $appointment->update(['metadata' => $metadata]); + $count++; + } + + $this->info("Sent {$count} appointment reminder(s)."); + + return self::SUCCESS; + } +} diff --git a/app/Events/ServiceEventOccurred.php b/app/Events/ServiceEventOccurred.php new file mode 100644 index 0000000..4381a80 --- /dev/null +++ b/app/Events/ServiceEventOccurred.php @@ -0,0 +1,19 @@ + $data + */ + public function __construct( + public readonly string $name, + public readonly array $data = [], + ) {} +} diff --git a/app/Http/Controllers/Api/AnalyticsController.php b/app/Http/Controllers/Api/AnalyticsController.php new file mode 100644 index 0000000..7f734f2 --- /dev/null +++ b/app/Http/Controllers/Api/AnalyticsController.php @@ -0,0 +1,27 @@ +authorizeAbility($request, 'reports.view'); + $organization = $this->organization($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + + return response()->json([ + 'data' => $analytics->overview($this->ownerRef($request), $organization->id, $branchScope), + 'trend' => $analytics->dailyTrend($this->ownerRef($request), $organization->id, 14, $branchScope), + ]); + } +} diff --git a/app/Http/Controllers/Api/AppointmentController.php b/app/Http/Controllers/Api/AppointmentController.php new file mode 100644 index 0000000..2d0d0e4 --- /dev/null +++ b/app/Http/Controllers/Api/AppointmentController.php @@ -0,0 +1,69 @@ +authorizeAbility($request, 'appointments.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $items = QueueAppointment::owned($owner) + ->where('organization_id', $organization->id) + ->orderBy('scheduled_at') + ->paginate(50); + + return response()->json(['data' => $items]); + } + + public function store(Request $request): JsonResponse + { + $this->authorizeAbility($request, 'appointments.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $validated = $request->validate([ + 'branch_id' => ['required', 'exists:queue_branches,id'], + 'service_queue_id' => ['nullable', 'exists:queue_service_queues,id'], + 'customer_name' => ['required', 'string', 'max:255'], + 'customer_phone' => ['nullable', 'string', 'max:50'], + 'customer_email' => ['nullable', 'email', 'max:255'], + 'scheduled_at' => ['required', 'date'], + ]); + + $appointment = QueueAppointment::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + ...$validated, + 'status' => 'scheduled', + 'reference' => 'APT-'.Str::upper(Str::random(6)), + ]); + + AuditLogger::record($owner, 'appointment.created', $organization->id, $owner, QueueAppointment::class, $appointment->id); + + return response()->json(['data' => $appointment], 201); + } + + public function checkIn(Request $request, QueueAppointment $appointment): JsonResponse + { + $this->authorizeAbility($request, 'appointments.manage'); + $this->authorizeOwner($request, $appointment); + + $ticket = app(AppointmentService::class)->checkIn($appointment, $this->ownerRef($request)); + + return response()->json(['data' => \App\Services\Qms\TicketPresenter::toArray($ticket)]); + } +} diff --git a/app/Http/Controllers/Api/BranchController.php b/app/Http/Controllers/Api/BranchController.php new file mode 100644 index 0000000..8fa4a47 --- /dev/null +++ b/app/Http/Controllers/Api/BranchController.php @@ -0,0 +1,55 @@ +authorizeAbility($request, 'admin.branches.view'); + $branches = Branch::owned($this->ownerRef($request)) + ->where('organization_id', $this->organization($request)->id) + ->orderBy('name') + ->get(); + + return response()->json(['data' => $branches]); + } + + public function store(Request $request): JsonResponse + { + $this->authorizeAbility($request, 'admin.branches.manage'); + $organization = $this->organization($request); + $owner = $this->ownerRef($request); + + $currentCount = Branch::owned($owner)->where('organization_id', $organization->id)->count(); + abort_unless(app(PlanService::class)->canAddBranch($organization, $currentCount), 422, 'Branch limit reached for current plan.'); + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'code' => ['nullable', 'string', 'max:50'], + 'address' => ['nullable', 'string', 'max:500'], + 'phone' => ['nullable', 'string', 'max:50'], + ]); + + $branch = Branch::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + ...$validated, + 'is_active' => true, + ]); + + AuditLogger::record($owner, 'branch.created', $organization->id, $owner, Branch::class, $branch->id); + + return response()->json(['data' => $branch], 201); + } +} diff --git a/app/Http/Controllers/Api/Concerns/ScopesApiToAccount.php b/app/Http/Controllers/Api/Concerns/ScopesApiToAccount.php new file mode 100644 index 0000000..c7a8ac0 --- /dev/null +++ b/app/Http/Controllers/Api/Concerns/ScopesApiToAccount.php @@ -0,0 +1,44 @@ +user()->public_id; + } + + protected function organization(Request $request): Organization + { + $organization = app(OrganizationResolver::class)->resolveForUser($request->user()); + abort_unless($organization, 404); + + return $organization; + } + + protected function member(Request $request): ?Member + { + return app(OrganizationResolver::class)->memberFor($request->user(), $this->organization($request)); + } + + protected function authorizeAbility(Request $request, string $ability): void + { + abort_unless( + app(QmsPermissions::class)->can($this->member($request), $ability), + 403, + ); + } + + protected function authorizeOwner(Request $request, Model $model): void + { + abort_unless($model->getAttribute('owner_ref') === $this->ownerRef($request), 404); + } +} diff --git a/app/Http/Controllers/Api/CounterController.php b/app/Http/Controllers/Api/CounterController.php new file mode 100644 index 0000000..2be405c --- /dev/null +++ b/app/Http/Controllers/Api/CounterController.php @@ -0,0 +1,74 @@ +authorizeAbility($request, 'counters.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $counters = Counter::owned($owner) + ->where('organization_id', $organization->id) + ->with('serviceQueues') + ->orderBy('name') + ->get() + ->map(fn (Counter $c) => [ + 'uuid' => $c->uuid, + 'name' => $c->name, + 'code' => $c->code, + 'status' => $c->status, + 'queues' => $c->serviceQueues->pluck('name'), + ]); + + return response()->json(['data' => $counters]); + } + + public function store(Request $request): JsonResponse + { + $this->authorizeAbility($request, 'counters.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'code' => ['nullable', 'string', 'max:50'], + 'branch_id' => ['required', 'integer'], + 'department_id' => ['nullable', 'integer'], + 'queue_ids' => ['nullable', 'array'], + 'queue_ids.*' => ['uuid'], + ]); + + $counter = Counter::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + 'branch_id' => $validated['branch_id'], + 'department_id' => $validated['department_id'] ?? null, + 'name' => $validated['name'], + 'code' => $validated['code'] ?? null, + 'status' => 'offline', + 'is_active' => true, + ]); + + if (! empty($validated['queue_ids'])) { + $queueIds = ServiceQueue::owned($owner)->whereIn('uuid', $validated['queue_ids'])->pluck('id'); + $counter->serviceQueues()->sync($queueIds); + } + + AuditLogger::record($owner, 'counter.created', $organization->id, $owner, Counter::class, $counter->id); + + return response()->json(['data' => ['uuid' => $counter->uuid, 'name' => $counter->name]], 201); + } +} diff --git a/app/Http/Controllers/Api/DeviceHeartbeatController.php b/app/Http/Controllers/Api/DeviceHeartbeatController.php new file mode 100644 index 0000000..782cd7e --- /dev/null +++ b/app/Http/Controllers/Api/DeviceHeartbeatController.php @@ -0,0 +1,32 @@ +bearerToken() ?? $request->input('device_token'); + abort_unless($token, 401, 'Device token required.'); + + $device = $this->devices->findByToken($token); + abort_unless($device, 401, 'Invalid device token.'); + + $this->devices->recordHeartbeat($device); + + return response()->json([ + 'status' => 'ok', + 'device_id' => $device->uuid, + 'server_time' => now()->toIso8601String(), + ]); + } +} diff --git a/app/Http/Controllers/Api/PublicQueueController.php b/app/Http/Controllers/Api/PublicQueueController.php new file mode 100644 index 0000000..270f66a --- /dev/null +++ b/app/Http/Controllers/Api/PublicQueueController.php @@ -0,0 +1,78 @@ +validate([ + 'queue_uuid' => ['required', 'uuid'], + 'customer_name' => ['nullable', 'string', 'max:255'], + 'customer_phone' => ['required', 'string', 'max:50'], + 'customer_email' => ['nullable', 'email'], + 'priority' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.ticket_priorities')))], + ]); + + $queue = ServiceQueue::where('uuid', $validated['queue_uuid']) + ->where('is_active', true) + ->where('is_paused', false) + ->firstOrFail(); + + $ticket = $this->engine->issueTicket($queue, $queue->owner_ref, [ + 'customer_name' => $validated['customer_name'] ?? null, + 'customer_phone' => $validated['customer_phone'], + 'customer_email' => $validated['customer_email'] ?? null, + 'priority' => $validated['priority'] ?? 'walk_in', + 'source' => 'mobile', + ]); + + return response()->json(['data' => TicketPresenter::toArray($ticket)], 201); + } + + public function show(string $qrToken): JsonResponse + { + $ticket = Ticket::where('qr_token', $qrToken)->with(['serviceQueue', 'counter'])->firstOrFail(); + + $ahead = Ticket::query() + ->where('service_queue_id', $ticket->service_queue_id) + ->where('status', 'waiting') + ->where('issued_at', '<', $ticket->issued_at) + ->count(); + + $data = TicketPresenter::toArray($ticket, false); + $data['customers_ahead'] = $ahead; + + return response()->json(['data' => $data]); + } + + public function delay(Request $request, string $qrToken): JsonResponse + { + $ticket = Ticket::where('qr_token', $qrToken)->whereIn('status', ['waiting', 'on_hold'])->firstOrFail(); + + $validated = $request->validate(['minutes' => ['required', 'integer', 'min:5', 'max:120']]); + $ticket = $this->engine->delayArrival($ticket, $validated['minutes']); + + return response()->json(['data' => TicketPresenter::toArray($ticket)]); + } + + public function cancel(string $qrToken): JsonResponse + { + $ticket = Ticket::where('qr_token', $qrToken)->whereIn('status', ['waiting', 'on_hold', 'called'])->firstOrFail(); + $ticket = $this->engine->cancel($ticket); + + return response()->json(['data' => TicketPresenter::toArray($ticket)]); + } +} diff --git a/app/Http/Controllers/Api/QueueRuleController.php b/app/Http/Controllers/Api/QueueRuleController.php new file mode 100644 index 0000000..7b7c84e --- /dev/null +++ b/app/Http/Controllers/Api/QueueRuleController.php @@ -0,0 +1,52 @@ +authorizeAbility($request, 'rules.view'); + $this->authorizeOwner($request, $serviceQueue); + + $rules = QueueRule::owned($this->ownerRef($request)) + ->where('service_queue_id', $serviceQueue->id) + ->orderBy('sort_order') + ->get(); + + return response()->json(['data' => $rules]); + } + + public function store(Request $request, ServiceQueue $serviceQueue): JsonResponse + { + $this->authorizeAbility($request, 'rules.manage'); + $this->authorizeOwner($request, $serviceQueue); + + $validated = $request->validate([ + 'rule_type' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.rule_types')))], + 'conditions' => ['nullable', 'array'], + 'actions' => ['nullable', 'array'], + ]); + + $rule = QueueRule::create([ + 'owner_ref' => $this->ownerRef($request), + 'service_queue_id' => $serviceQueue->id, + 'rule_type' => $validated['rule_type'], + 'conditions' => $validated['conditions'] ?? [], + 'actions' => $validated['actions'] ?? [], + 'sort_order' => QueueRule::where('service_queue_id', $serviceQueue->id)->max('sort_order') + 1, + 'is_active' => true, + ]); + + return response()->json(['data' => $rule], 201); + } +} diff --git a/app/Http/Controllers/Api/ReportController.php b/app/Http/Controllers/Api/ReportController.php new file mode 100644 index 0000000..6eaac44 --- /dev/null +++ b/app/Http/Controllers/Api/ReportController.php @@ -0,0 +1,41 @@ +authorizeAbility($request, 'reports.view'); + + $organization = $this->organization($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + $branchId = $request->input('branch_id') ? (int) $request->input('branch_id') : $branchScope; + $from = Carbon::parse($request->input('from', now()->subDays(30)->toDateString()))->startOfDay(); + $to = Carbon::parse($request->input('to', now()->toDateString()))->endOfDay(); + $owner = $this->ownerRef($request); + + $data = match ($type) { + 'tickets' => $reports->ticketsReport($owner, $organization->id, $from, $to, $branchId), + 'wait_times' => $reports->waitTimesReport($owner, $organization->id, $from, $to, $branchId), + 'counters' => $reports->countersReport($owner, $organization->id, $from, $to, $branchId), + 'appointments' => $reports->appointmentsReport($owner, $organization->id, $from, $to, $branchId), + 'feedback' => $reports->feedbackReport($owner, $organization->id, $from, $to, $branchId), + 'service_sessions' => $reports->serviceSessionsReport($owner, $organization->id, $from, $to, $branchId), + default => abort(404), + }; + + return response()->json(['data' => $data, 'from' => $from->toDateString(), 'to' => $to->toDateString()]); + } +} diff --git a/app/Http/Controllers/Api/ServiceEventController.php b/app/Http/Controllers/Api/ServiceEventController.php new file mode 100644 index 0000000..3324f9d --- /dev/null +++ b/app/Http/Controllers/Api/ServiceEventController.php @@ -0,0 +1,35 @@ +header('X-Ladill-Signature', ''); + + if (! ServiceEventSignature::verify($request->getContent(), $signature, $secret)) { + return response()->json(['error' => 'invalid signature'], 401); + } + + $eventId = (string) $request->header('X-Ladill-Event-Id', (string) $request->input('id', '')); + if ($eventId !== '') { + if (Cache::has("svcevt:{$eventId}")) { + return response()->json(['status' => 'duplicate']); + } + Cache::put("svcevt:{$eventId}", true, now()->addDay()); + } + + event(new ServiceEventOccurred((string) $request->input('event'), (array) $request->input('data', []))); + + return response()->json(['status' => 'accepted']); + } +} diff --git a/app/Http/Controllers/Api/ServiceQueueController.php b/app/Http/Controllers/Api/ServiceQueueController.php new file mode 100644 index 0000000..e59c91d --- /dev/null +++ b/app/Http/Controllers/Api/ServiceQueueController.php @@ -0,0 +1,71 @@ +authorizeAbility($request, 'queues.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $queues = ServiceQueue::owned($owner) + ->where('organization_id', $organization->id) + ->with(['branch', 'department']) + ->orderBy('name') + ->get() + ->map(fn (ServiceQueue $q) => [ + 'uuid' => $q->uuid, + 'name' => $q->name, + 'prefix' => $q->prefix, + 'strategy' => $q->strategy, + 'is_active' => $q->is_active, + 'is_paused' => $q->is_paused, + 'branch' => $q->branch?->name, + ]); + + return response()->json(['data' => $queues]); + } + + public function waiting(Request $request, ServiceQueue $serviceQueue): JsonResponse + { + $this->authorizeAbility($request, 'queues.view'); + $this->authorizeOwner($request, $serviceQueue); + + $tickets = app(\App\Services\Qms\QueueEngine::class)->waitingTickets($serviceQueue); + + return response()->json([ + 'data' => array_map(fn ($t) => \App\Services\Qms\TicketPresenter::toArray($t), $tickets), + ]); + } + + public function pause(Request $request, ServiceQueue $serviceQueue): JsonResponse + { + $this->authorizeAbility($request, 'queues.manage'); + $this->authorizeOwner($request, $serviceQueue); + + $queue = app(\App\Services\Qms\QueueEngine::class)->pauseQueue($serviceQueue, $this->ownerRef($request)); + + return response()->json(['data' => ['uuid' => $queue->uuid, 'is_paused' => $queue->is_paused]]); + } + + public function resume(Request $request, ServiceQueue $serviceQueue): JsonResponse + { + $this->authorizeAbility($request, 'queues.manage'); + $this->authorizeOwner($request, $serviceQueue); + + $queue = app(\App\Services\Qms\QueueEngine::class)->resumeQueue($serviceQueue, $this->ownerRef($request)); + + return response()->json(['data' => ['uuid' => $queue->uuid, 'is_paused' => $queue->is_paused]]); + } +} diff --git a/app/Http/Controllers/Api/TicketController.php b/app/Http/Controllers/Api/TicketController.php new file mode 100644 index 0000000..c8e7f18 --- /dev/null +++ b/app/Http/Controllers/Api/TicketController.php @@ -0,0 +1,129 @@ +authorizeAbility($request, 'tickets.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $tickets = Ticket::owned($owner) + ->where('organization_id', $organization->id) + ->when($request->query('queue'), fn ($q, $uuid) => $q->whereHas('serviceQueue', fn ($sq) => $sq->where('uuid', $uuid))) + ->when($request->query('status'), fn ($q, $status) => $q->where('status', $status)) + ->with(['serviceQueue', 'counter']) + ->latest('issued_at') + ->paginate(50); + + return response()->json([ + 'data' => $tickets->getCollection()->map(fn (Ticket $t) => TicketPresenter::toArray($t)), + 'meta' => [ + 'current_page' => $tickets->currentPage(), + 'last_page' => $tickets->lastPage(), + 'total' => $tickets->total(), + ], + ]); + } + + public function store(Request $request): JsonResponse + { + $this->authorizeAbility($request, 'tickets.issue'); + $owner = $this->ownerRef($request); + + $validated = $request->validate([ + 'service_queue_id' => ['required', 'uuid'], + 'customer_name' => ['nullable', 'string', 'max:255'], + 'customer_phone' => ['nullable', 'string', 'max:50'], + 'customer_email' => ['nullable', 'email', 'max:255'], + 'priority' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.ticket_priorities')))], + 'source' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.ticket_sources')))], + ]); + + $queue = ServiceQueue::where('uuid', $validated['service_queue_id'])->firstOrFail(); + $this->authorizeOwner($request, $queue); + + $ticket = $this->engine->issueTicket($queue, $owner, [ + ...$validated, + 'source' => $validated['source'] ?? 'api', + 'actor_ref' => $owner, + ]); + + return response()->json(['data' => TicketPresenter::toArray($ticket)], 201); + } + + public function show(Request $request, Ticket $ticket): JsonResponse + { + $this->authorizeAbility($request, 'tickets.view'); + $this->authorizeOwner($request, $ticket); + + return response()->json(['data' => TicketPresenter::toArray($ticket->load(['serviceQueue', 'counter']))]); + } + + public function callNext(Request $request, ServiceQueue $serviceQueue): JsonResponse + { + $this->authorizeAbility($request, 'console.use'); + $this->authorizeOwner($request, $serviceQueue); + + $validated = $request->validate([ + 'counter_id' => ['required', 'uuid'], + ]); + + $counter = \App\Models\Counter::where('uuid', $validated['counter_id'])->firstOrFail(); + $this->authorizeOwner($request, $counter); + + $ticket = $this->engine->callNext($serviceQueue, $counter, $this->ownerRef($request)); + + return response()->json(['data' => $ticket ? TicketPresenter::toArray($ticket) : null]); + } + + public function action(Request $request, Ticket $ticket): JsonResponse + { + $this->authorizeAbility($request, 'tickets.manage'); + $this->authorizeOwner($request, $ticket); + $actor = $this->ownerRef($request); + + $validated = $request->validate([ + 'action' => ['required', 'string', 'in:recall,start,hold,skip,complete,no_show,cancel,delay'], + 'minutes' => ['nullable', 'integer', 'min:5', 'max:120'], + 'to_queue_id' => ['nullable', 'uuid'], + 'reason' => ['nullable', 'string', 'max:500'], + ]); + + $result = match ($validated['action']) { + 'recall' => $this->engine->recall($ticket, $actor), + 'start' => $this->engine->startServing($ticket, $actor), + 'hold' => $this->engine->hold($ticket, $actor), + 'skip' => $this->engine->skip($ticket, $actor), + 'complete' => $this->engine->completeTicket($ticket, $actor), + 'no_show' => $this->engine->markNoShow($ticket, $actor), + 'cancel' => $this->engine->cancel($ticket, $actor), + 'delay' => $this->engine->delayArrival($ticket, (int) ($validated['minutes'] ?? 15), $actor), + default => $ticket, + }; + + if ($validated['action'] === 'transfer' && ! empty($validated['to_queue_id'])) { + $toQueue = ServiceQueue::where('uuid', $validated['to_queue_id'])->firstOrFail(); + $result = $this->engine->transfer($ticket, $toQueue, null, $validated['reason'] ?? null, $actor); + } + + return response()->json(['data' => TicketPresenter::toArray($result->load(['serviceQueue', 'counter']))]); + } +} diff --git a/app/Http/Controllers/Api/WorkflowController.php b/app/Http/Controllers/Api/WorkflowController.php new file mode 100644 index 0000000..b432998 --- /dev/null +++ b/app/Http/Controllers/Api/WorkflowController.php @@ -0,0 +1,34 @@ +authorizeAbility($request, 'workflows.view'); + $workflows = Workflow::owned($this->ownerRef($request)) + ->where('organization_id', $this->organization($request)->id) + ->with('steps.serviceQueue') + ->orderBy('name') + ->get(); + + return response()->json(['data' => $workflows]); + } + + public function show(Request $request, Workflow $workflow): JsonResponse + { + $this->authorizeAbility($request, 'workflows.view'); + $this->authorizeOwner($request, $workflow); + + return response()->json(['data' => $workflow->load('steps.serviceQueue')]); + } +} diff --git a/app/Http/Controllers/Auth/SsoLoginController.php b/app/Http/Controllers/Auth/SsoLoginController.php new file mode 100644 index 0000000..a8488fa --- /dev/null +++ b/app/Http/Controllers/Auth/SsoLoginController.php @@ -0,0 +1,293 @@ +query('redirect', route('qms.dashboard')); + + if (Auth::check()) { + return $this->safeRedirect($intended, route('qms.dashboard')); + } + + if (! $request->boolean('fallback')) { + $request->session()->forget('sso.attempts'); + } + + if ($this->attemptSilentRefresh($request, $intended)) { + return $this->safeRedirect($intended, route('qms.dashboard')); + } + + $verifier = Str::random(64); + $state = Str::random(40); + $request->session()->put('sso.verifier', $verifier); + $request->session()->put('sso.state', $state); + $request->session()->put('sso.intended', $intended); + + $challenge = rtrim(strtr(base64_encode(hash('sha256', $verifier, true)), '+/', '-_'), '='); + + $query = [ + 'response_type' => 'code', + 'client_id' => (string) config('services.ladill_sso.client_id'), + 'redirect_uri' => (string) config('services.ladill_sso.redirect'), + 'scope' => 'openid profile email', + 'state' => $state, + 'code_challenge' => $challenge, + 'code_challenge_method' => 'S256', + ]; + + $loginHint = (string) $request->session()->get('sso.login_hint', ''); + if ($loginHint !== '') { + $query['login_hint'] = $loginHint; + } + + if (! $request->boolean('interactive')) { + $query['prompt'] = 'none'; + } + + $authorizeUrl = rtrim((string) config('services.ladill_sso.issuer'), '/').'/oauth/authorize?'.http_build_query($query); + + return redirect()->away($authorizeUrl); + } + + public function callback(Request $request): RedirectResponse + { + $intended = (string) $request->session()->get('sso.intended', route('qms.dashboard')); + + if ($request->filled('error')) { + if (in_array($request->query('error'), ['login_required', 'interaction_required', 'consent_required'], true) + && ! $request->boolean('interactive')) { + return redirect()->away((string) config('ladill.marketing_url')); + } + + return $this->finishCallback($request, $intended, (string) $request->query('error_description', $request->query('error'))); + } + + if (! $request->filled('code') + || $request->query('state') !== $request->session()->pull('sso.state')) { + return $this->finishCallback($request, $intended, 'invalid_state'); + } + + $issuer = rtrim((string) config('services.ladill_sso.issuer'), '/'); + + $tokenRes = Http::asForm()->post($issuer.'/oauth/token', [ + 'grant_type' => 'authorization_code', + 'client_id' => (string) config('services.ladill_sso.client_id'), + 'client_secret' => (string) config('services.ladill_sso.client_secret'), + 'redirect_uri' => (string) config('services.ladill_sso.redirect'), + 'code' => (string) $request->query('code'), + 'code_verifier' => (string) $request->session()->pull('sso.verifier'), + ]); + if ($tokenRes->failed()) { + return $this->finishCallback($request, $intended, 'token_exchange_failed'); + } + + $user = $this->loginFromTokenResponse($request, $tokenRes); + if (! $user) { + return $this->finishCallback($request, $intended, 'userinfo_failed'); + } + + Auth::login($user, remember: true); + $request->session()->regenerate(); + $request->session()->forget('sso.attempts'); + + return $this->finishCallback($request, $intended, null); + } + + public function failed(Request $request): View + { + return view('auth.sso-error', [ + 'reason' => (string) $request->session()->get('sso.error', ''), + ]); + } + + public function logout(Request $request): RedirectResponse + { + Auth::logout(); + $request->session()->invalidate(); + $request->session()->regenerateToken(); + + // Per-app sign-out: end only this app's session and keep the platform + // (auth.ladill.com) SSO session alive so "Sign in again" re-auths silently. + return redirect()->route('qms.signed-out'); + } + + /** Platform session ended — clear this app and offer silent sign-in again. */ + public function platformSignedOut(Request $request): RedirectResponse + { + Auth::logout(); + $request->session()->invalidate(); + $request->session()->regenerateToken(); + + return redirect()->route('sso.connect', [ + 'redirect' => (string) $request->query('redirect', ''), + ]); + } + + public function logoutBridge(Request $request): View + { + $return = $this->safeReturnUrl((string) $request->query('return', '')); + $hubUrl = 'https://'.config('app.auth_domain').'/logout/sso/hub?'.http_build_query([ + 'embedded' => 1, + 'return' => $return, + ]); + + return view('auth.sso-logout-bridge', [ + 'hubUrl' => $hubUrl, + 'return' => $return, + 'authOrigin' => 'https://'.config('app.auth_domain'), + ]); + } + + public function frontchannelLogout(Request $request): Response|RedirectResponse + { + Auth::logout(); + $request->session()->invalidate(); + $request->session()->regenerateToken(); + + $return = (string) $request->query('return', ''); + $root = (string) config('app.platform_domain', 'ladill.com'); + $host = parse_url($return, PHP_URL_HOST); + if (str_starts_with($return, 'https://') && is_string($host) && ($host === $root || str_ends_with($host, '.'.$root))) { + return redirect()->away($return); + } + + return response('', 204); + } + + private function attemptSilentRefresh(Request $request, string $intended): bool + { + $refreshToken = (string) $request->session()->get('sso.refresh_token', ''); + if ($refreshToken === '') { + return false; + } + + $issuer = rtrim((string) config('services.ladill_sso.issuer'), '/'); + $tokenRes = Http::asForm()->post($issuer.'/oauth/token', [ + 'grant_type' => 'refresh_token', + 'refresh_token' => $refreshToken, + 'client_id' => (string) config('services.ladill_sso.client_id'), + 'client_secret' => (string) config('services.ladill_sso.client_secret'), + 'scope' => 'openid profile email', + ]); + + if ($tokenRes->failed()) { + $request->session()->forget('sso.refresh_token'); + + return false; + } + + $user = $this->loginFromTokenResponse($request, $tokenRes); + + if (! $user) { + return false; + } + + Auth::login($user, remember: true); + $request->session()->put('sso.intended', $intended); + + return true; + } + + private function loginFromTokenResponse(Request $request, HttpResponse $tokenRes): ?User + { + $refreshToken = (string) $tokenRes->json('refresh_token', ''); + if ($refreshToken !== '') { + $request->session()->put('sso.refresh_token', $refreshToken); + } + + $issuer = rtrim((string) config('services.ladill_sso.issuer'), '/'); + $claims = Http::withToken((string) $tokenRes->json('access_token'))->acceptJson()->get($issuer.'/oauth/userinfo'); + if ($claims->failed() || ! $claims->json('sub')) { + return null; + } + + $email = (string) ($claims->json('email') ?: ''); + if ($email !== '') { + $request->session()->put('sso.login_hint', $email); + } + + return User::updateOrCreate( + ['public_id' => (string) $claims->json('sub')], + [ + 'name' => $claims->json('name'), + 'email' => $email !== '' ? $email : (string) $claims->json('sub').'@users.ladill.com', + 'avatar_url' => $claims->json('picture'), + ], + ); + } + + private function finishCallback(Request $request, string $intended, ?string $error = null): RedirectResponse + { + if ($error) { + $attempts = (int) $request->session()->get('sso.attempts', 0) + 1; + + if ($attempts >= self::MAX_SSO_ATTEMPTS) { + $request->session()->forget(['sso.attempts', 'sso.state', 'sso.verifier', 'sso.intended']); + $request->session()->flash('sso.error', $error); + + return redirect()->route('sso.failed'); + } + + $request->session()->put('sso.attempts', $attempts); + + return redirect()->route('sso.connect', [ + 'redirect' => $intended, + 'interactive' => 1, + 'fallback' => 1, + ]); + } + + return $this->safeRedirect($intended, route('qms.dashboard')); + } + + private function safeReturnUrl(string $url): string + { + $host = parse_url($url, PHP_URL_HOST); + $root = (string) config('app.platform_domain', 'ladill.com'); + + if (is_string($host) && str_starts_with($url, 'https://') + && ($host === $root || str_ends_with($host, '.'.$root))) { + return $url; + } + + return route('qms.signed-out'); + } + + private function safeRedirect(string $url, string $fallback): RedirectResponse + { + $host = parse_url($url, PHP_URL_HOST); + $root = (string) config('app.platform_domain', 'ladill.com'); + + if (is_string($host) && str_starts_with($url, 'https://') + && ($host === $root || str_ends_with($host, '.'.$root))) { + return redirect()->away($url); + } + + return redirect()->away($fallback); + } +} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..e7f7c94 --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,10 @@ +user() + ->notifications() + ->latest() + ->paginate(20); + + return view('notifications.index', compact('notifications')); + } + + public function unread(Request $request): JsonResponse + { + $notifications = $request->user() + ->unreadNotifications() + ->latest() + ->take(10) + ->get() + ->map(fn ($n) => [ + 'id' => $n->id, + 'type' => class_basename($n->type), + 'title' => $n->data['title'] ?? 'Notification', + 'message' => $n->data['message'] ?? '', + 'icon' => $n->data['icon'] ?? 'bell', + 'url' => $n->data['url'] ?? null, + 'created_at' => $n->created_at->diffForHumans(), + ]); + + return response()->json([ + 'notifications' => $notifications, + 'unread_count' => $request->user()->unreadNotifications()->count(), + ]); + } + + public function markAsRead(Request $request, string $id): JsonResponse + { + $notification = $request->user() + ->notifications() + ->where('id', $id) + ->first(); + + if ($notification) { + $notification->markAsRead(); + } + + return response()->json(['success' => true]); + } + + public function markAllAsRead(Request $request): JsonResponse + { + $request->user()->unreadNotifications->markAsRead(); + + return response()->json(['success' => true]); + } +} diff --git a/app/Http/Controllers/Qms/AnalyticsController.php b/app/Http/Controllers/Qms/AnalyticsController.php new file mode 100644 index 0000000..ab837e0 --- /dev/null +++ b/app/Http/Controllers/Qms/AnalyticsController.php @@ -0,0 +1,38 @@ +authorizeAbility($request, 'reports.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + + $overview = $this->analytics->overview($owner, $organization->id, $branchScope); + $trend = $this->analytics->dailyTrend($owner, $organization->id, 14, $branchScope); + + $branches = Branch::owned($owner) + ->where('organization_id', $organization->id) + ->orderBy('name') + ->get(); + + return view('qms.analytics.index', compact('overview', 'trend', 'organization', 'branches', 'branchScope')); + } +} diff --git a/app/Http/Controllers/Qms/AppointmentController.php b/app/Http/Controllers/Qms/AppointmentController.php new file mode 100644 index 0000000..3992f80 --- /dev/null +++ b/app/Http/Controllers/Qms/AppointmentController.php @@ -0,0 +1,148 @@ +authorizeAbility($request, 'appointments.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + + $appointments = QueueAppointment::owned($owner) + ->where('organization_id', $organization->id) + ->when($branchScope, fn ($q) => $q->where('branch_id', $branchScope)) + ->when($request->query('status'), fn ($q, $s) => $q->where('status', $s)) + ->with(['serviceQueue', 'branch', 'ticket']) + ->orderBy('scheduled_at') + ->paginate(30); + + return view('qms.appointments.index', compact('appointments', 'organization')); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'appointments.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $branches = Branch::owned($owner)->where('organization_id', $organization->id)->where('is_active', true)->orderBy('name')->get(); + $queues = ServiceQueue::owned($owner)->where('organization_id', $organization->id)->where('is_active', true)->orderBy('name')->get(); + + return view('qms.appointments.create', [ + 'organization' => $organization, + 'branches' => $branches, + 'queues' => $queues, + 'modes' => config('qms.appointment_modes'), + ]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'appointments.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $validated = $request->validate([ + 'branch_id' => ['required', 'exists:queue_branches,id'], + 'service_queue_id' => ['nullable', 'exists:queue_service_queues,id'], + 'customer_name' => ['required', 'string', 'max:255'], + 'customer_phone' => ['nullable', 'string', 'max:50'], + 'customer_email' => ['nullable', 'email', 'max:255'], + 'scheduled_at' => ['required', 'date'], + 'mode' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.appointment_modes')))], + ]); + + $appointment = QueueAppointment::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + ...$validated, + 'mode' => $validated['mode'] ?? $organization->settings['appointment_mode'] ?? 'hybrid', + 'status' => 'scheduled', + 'reference' => 'APT-'.Str::upper(Str::random(6)), + ]); + + AuditLogger::record($owner, 'appointment.created', $organization->id, $owner, QueueAppointment::class, $appointment->id); + + return redirect()->route('qms.appointments.index')->with('success', 'Appointment scheduled.'); + } + + public function edit(Request $request, QueueAppointment $appointment): View + { + $this->authorizeAbility($request, 'appointments.manage'); + $this->authorizeOwner($request, $appointment); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + return view('qms.appointments.edit', [ + 'appointment' => $appointment, + 'branches' => Branch::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->get(), + 'queues' => ServiceQueue::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->get(), + 'modes' => config('qms.appointment_modes'), + ]); + } + + public function update(Request $request, QueueAppointment $appointment): RedirectResponse + { + $this->authorizeAbility($request, 'appointments.manage'); + $this->authorizeOwner($request, $appointment); + abort_unless($appointment->status === 'scheduled', 422, 'Only scheduled appointments can be edited.'); + + $validated = $request->validate([ + 'branch_id' => ['required', 'exists:queue_branches,id'], + 'service_queue_id' => ['nullable', 'exists:queue_service_queues,id'], + 'customer_name' => ['required', 'string', 'max:255'], + 'customer_phone' => ['nullable', 'string', 'max:50'], + 'customer_email' => ['nullable', 'email', 'max:255'], + 'scheduled_at' => ['required', 'date'], + 'mode' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.appointment_modes')))], + ]); + + $appointment->update($validated); + AuditLogger::record($this->ownerRef($request), 'appointment.created', $appointment->organization_id, $this->ownerRef($request), QueueAppointment::class, $appointment->id, ['updated' => true]); + + return redirect()->route('qms.appointments.index')->with('success', 'Appointment updated.'); + } + + public function checkIn(Request $request, QueueAppointment $appointment): RedirectResponse + { + $this->authorizeAbility($request, 'appointments.manage'); + $this->authorizeOwner($request, $appointment); + + $ticket = $this->appointments->checkIn($appointment, $this->ownerRef($request)); + + return redirect()->route('qms.tickets.show', $ticket)->with('success', 'Appointment checked in. Ticket issued.'); + } + + public function cancel(Request $request, QueueAppointment $appointment): RedirectResponse + { + $this->authorizeAbility($request, 'appointments.manage'); + $this->authorizeOwner($request, $appointment); + + $appointment->update(['status' => 'cancelled']); + AuditLogger::record($this->ownerRef($request), 'appointment.cancelled', $appointment->organization_id, $this->ownerRef($request), QueueAppointment::class, $appointment->id); + + return back()->with('success', 'Appointment cancelled.'); + } +} diff --git a/app/Http/Controllers/Qms/AuditLogController.php b/app/Http/Controllers/Qms/AuditLogController.php new file mode 100644 index 0000000..a1067c4 --- /dev/null +++ b/app/Http/Controllers/Qms/AuditLogController.php @@ -0,0 +1,76 @@ +authorizeAbility($request, 'audit.view'); + $organization = $this->organization($request); + + $logs = $this->query($request, $organization)->paginate(50)->withQueryString(); + + return view('qms.audit.index', [ + 'logs' => $logs, + 'organization' => $organization, + 'actions' => config('qms.audit_actions'), + 'canExport' => app(QmsPermissions::class)->can($this->member($request), 'audit.export'), + ]); + } + + public function export(Request $request): StreamedResponse + { + $this->authorizeAbility($request, 'audit.export'); + $organization = $this->organization($request); + + $filename = 'queue-audit-'.now()->format('Y-m-d-His').'.csv'; + + return response()->streamDownload(function () use ($request, $organization) { + $handle = fopen('php://output', 'w'); + fputcsv($handle, ['Time', 'Action', 'Actor', 'Subject', 'Metadata', 'IP']); + + $this->query($request, $organization)->chunk(200, function ($logs) use ($handle) { + foreach ($logs as $log) { + fputcsv($handle, [ + $log->created_at?->toDateTimeString(), + $log->action, + $log->actor_ref ?? '—', + $log->subject_type ? class_basename($log->subject_type).' #'.$log->subject_id : '—', + json_encode($log->metadata ?? []), + $log->ip_address ?? '—', + ]); + } + }); + + fclose($handle); + }, $filename, ['Content-Type' => 'text/csv']); + } + + protected function query(Request $request, $organization) + { + return AuditLog::owned($this->ownerRef($request)) + ->where('organization_id', $organization->id) + ->when($request->action, fn ($q, $action) => $q->where('action', $action)) + ->when($request->from, fn ($q, $from) => $q->where('created_at', '>=', Carbon::parse($from)->startOfDay())) + ->when($request->to, fn ($q, $to) => $q->where('created_at', '<=', Carbon::parse($to)->endOfDay())) + ->when($request->q, function ($q, $search) { + $q->where(function ($inner) use ($search) { + $inner->where('action', 'like', "%{$search}%") + ->orWhere('metadata', 'like', "%{$search}%"); + }); + }) + ->orderByDesc('created_at'); + } +} diff --git a/app/Http/Controllers/Qms/BranchController.php b/app/Http/Controllers/Qms/BranchController.php new file mode 100644 index 0000000..d064ebf --- /dev/null +++ b/app/Http/Controllers/Qms/BranchController.php @@ -0,0 +1,102 @@ +authorizeAbility($request, 'admin.branches.view'); + $organization = $this->organization($request); + + $branches = Branch::owned($this->ownerRef($request)) + ->where('organization_id', $organization->id) + ->withCount('departments') + ->orderBy('name') + ->get(); + + return view('qms.admin.branches.index', compact('branches', 'organization')); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'admin.branches.manage'); + + return view('qms.admin.branches.create', ['organization' => $this->organization($request)]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'admin.branches.manage'); + $organization = $this->organization($request); + $owner = $this->ownerRef($request); + + $currentCount = Branch::owned($owner) + ->where('organization_id', $organization->id) + ->count(); + + if (! app(PlanService::class)->canAddBranch($organization, $currentCount)) { + return back()->withInput()->with('error', 'Your plan allows one branch. Upgrade to Pro for unlimited branches.'); + } + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'code' => ['nullable', 'string', 'max:50'], + 'address' => ['nullable', 'string', 'max:500'], + 'phone' => ['nullable', 'string', 'max:50'], + ]); + + $branch = Branch::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + ...$validated, + 'is_active' => true, + ]); + + AuditLogger::record($owner, 'branch.created', $organization->id, $owner, Branch::class, $branch->id); + + return redirect()->route('qms.branches.index')->with('success', 'Branch created.'); + } + + public function edit(Request $request, Branch $branch): View + { + $this->authorizeAbility($request, 'admin.branches.manage'); + $this->authorizeOwner($request, $branch); + + return view('qms.admin.branches.edit', compact('branch')); + } + + public function update(Request $request, Branch $branch): RedirectResponse + { + $this->authorizeAbility($request, 'admin.branches.manage'); + $this->authorizeOwner($request, $branch); + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'code' => ['nullable', 'string', 'max:50'], + 'address' => ['nullable', 'string', 'max:500'], + 'phone' => ['nullable', 'string', 'max:50'], + 'is_active' => ['boolean'], + ]); + + $branch->update([ + ...$validated, + 'is_active' => $request->boolean('is_active', true), + ]); + + AuditLogger::record($this->ownerRef($request), 'branch.updated', $branch->organization_id, $this->ownerRef($request), Branch::class, $branch->id); + + return redirect()->route('qms.branches.index')->with('success', 'Branch updated.'); + } +} diff --git a/app/Http/Controllers/Qms/Concerns/ScopesToAccount.php b/app/Http/Controllers/Qms/Concerns/ScopesToAccount.php new file mode 100644 index 0000000..e24efa8 --- /dev/null +++ b/app/Http/Controllers/Qms/Concerns/ScopesToAccount.php @@ -0,0 +1,59 @@ +user()->public_id; + } + + protected function organization(Request $request): Organization + { + $organization = $request->attributes->get('qms.organization') + ?? app(OrganizationResolver::class)->resolveForUser($request->user()); + + abort_unless($organization, 404); + + return $organization; + } + + protected function member(Request $request): ?Member + { + return $request->attributes->get('qms.member') + ?? app(OrganizationResolver::class)->memberFor($request->user(), $this->organization($request)); + } + + protected function authorizeAbility(Request $request, string $ability): void + { + abort_unless( + app(QmsPermissions::class)->can($this->member($request), $ability), + 403, + ); + } + + protected function authorizeOwner(Request $request, Model $model): void + { + abort_unless($model->getAttribute('owner_ref') === $this->ownerRef($request), 404); + } + + protected function scopeToBranch(Request $request, Builder $query, string $column = 'branch_id'): Builder + { + $branchId = app(OrganizationResolver::class)->branchScope($this->member($request)); + + if ($branchId !== null) { + $query->where($column, $branchId); + } + + return $query; + } +} diff --git a/app/Http/Controllers/Qms/ConsoleController.php b/app/Http/Controllers/Qms/ConsoleController.php new file mode 100644 index 0000000..a17b318 --- /dev/null +++ b/app/Http/Controllers/Qms/ConsoleController.php @@ -0,0 +1,117 @@ +authorizeAbility($request, 'console.use'); + $this->authorizeOwner($request, $counter); + $owner = $this->ownerRef($request); + + $counter->load(['serviceQueues', 'branch']); + $queues = $counter->serviceQueues; + + $currentTicket = Ticket::owned($owner) + ->where('counter_id', $counter->id) + ->whereIn('status', ['called', 'serving', 'on_hold']) + ->with('serviceQueue') + ->latest('called_at') + ->first(); + + $waitingByQueue = collect($queues)->mapWithKeys(function (ServiceQueue $queue) { + return [$queue->id => $this->engine->waitingTickets($queue, 10)]; + }); + + $allQueues = ServiceQueue::owned($owner) + ->where('organization_id', $counter->organization_id) + ->where('branch_id', $counter->branch_id) + ->where('is_active', true) + ->orderBy('name') + ->get(); + + return view('qms.console.show', compact('counter', 'queues', 'currentTicket', 'waitingByQueue', 'allQueues')); + } + + public function action(Request $request, Counter $counter): RedirectResponse + { + $this->authorizeAbility($request, 'console.use'); + $this->authorizeOwner($request, $counter); + $actor = $this->ownerRef($request); + + $validated = $request->validate([ + 'action' => ['required', 'string'], + 'queue_id' => ['nullable', 'integer'], + 'ticket_id' => ['nullable', 'integer'], + 'to_queue_id' => ['nullable', 'integer'], + 'reason' => ['nullable', 'string', 'max:500'], + ]); + + match ($validated['action']) { + 'call_next' => $this->handleCallNext($counter, (int) $validated['queue_id'], $actor), + 'recall' => $this->handleTicketAction($validated['ticket_id'], 'recall', $actor), + 'start' => $this->handleTicketAction($validated['ticket_id'], 'start', $actor), + 'hold' => $this->handleTicketAction($validated['ticket_id'], 'hold', $actor), + 'skip' => $this->handleTicketAction($validated['ticket_id'], 'skip', $actor), + 'complete' => $this->handleTicketAction($validated['ticket_id'], 'complete', $actor), + 'no_show' => $this->handleTicketAction($validated['ticket_id'], 'no_show', $actor), + 'transfer' => $this->handleTransfer($validated['ticket_id'], (int) $validated['to_queue_id'], $counter, $validated['reason'] ?? null, $actor), + 'available' => $counter->update(['status' => 'available']), + 'offline' => $counter->update(['status' => 'offline']), + default => null, + }; + + return back(); + } + + protected function handleCallNext(Counter $counter, int $queueId, string $actor): void + { + $queue = ServiceQueue::findOrFail($queueId); + $this->engine->callNext($queue, $counter, $actor); + } + + protected function handleTicketAction(?int $ticketId, string $action, string $actor): void + { + if (! $ticketId) { + return; + } + $ticket = Ticket::findOrFail($ticketId); + match ($action) { + 'recall' => $this->engine->recall($ticket, $actor), + 'start' => $this->engine->startServing($ticket, $actor), + 'hold' => $this->engine->hold($ticket, $actor), + 'skip' => $this->engine->skip($ticket, $actor), + 'complete' => $this->engine->completeTicket($ticket, $actor), + 'no_show' => $this->engine->markNoShow($ticket, $actor), + default => null, + }; + } + + protected function handleTransfer(?int $ticketId, int $toQueueId, Counter $counter, ?string $reason, string $actor): void + { + if (! $ticketId || ! $toQueueId) { + return; + } + $ticket = Ticket::findOrFail($ticketId); + $toQueue = ServiceQueue::findOrFail($toQueueId); + $this->engine->transfer($ticket, $toQueue, $counter, $reason, $actor); + } +} diff --git a/app/Http/Controllers/Qms/CounterController.php b/app/Http/Controllers/Qms/CounterController.php new file mode 100644 index 0000000..2491215 --- /dev/null +++ b/app/Http/Controllers/Qms/CounterController.php @@ -0,0 +1,128 @@ +authorizeAbility($request, 'counters.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $counters = Counter::owned($owner) + ->where('organization_id', $organization->id) + ->with(['branch', 'serviceQueues']) + ->when(true, fn ($q) => $this->scopeToBranch($request, $q)) + ->orderBy('name') + ->paginate(20); + + return view('qms.counters.index', compact('counters', 'organization')); + } + + public function show(Request $request, Counter $counter): View + { + $this->authorizeAbility($request, 'counters.view'); + $this->authorizeOwner($request, $counter); + $counter->load(['branch', 'serviceQueues']); + + return view('qms.counters.show', compact('counter')); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'counters.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $branches = Branch::owned($owner)->where('organization_id', $organization->id)->where('is_active', true)->orderBy('name')->get(); + $queues = ServiceQueue::owned($owner)->where('organization_id', $organization->id)->where('is_active', true)->orderBy('name')->get(); + + return view('qms.counters.create', compact('organization', 'branches', 'queues')); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'counters.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $validated = $this->validatedCounter($request); + + $counter = Counter::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + 'branch_id' => $validated['branch_id'], + 'name' => $validated['name'], + 'code' => $validated['code'] ?? null, + 'status' => 'available', + 'is_active' => true, + ]); + + if (! empty($validated['queue_ids'])) { + $counter->serviceQueues()->sync($validated['queue_ids']); + } + + AuditLogger::record($owner, 'counter.created', $organization->id, $owner, Counter::class, $counter->id); + + return redirect()->route('qms.counters.show', $counter)->with('success', 'Counter created.'); + } + + public function edit(Request $request, Counter $counter): View + { + $this->authorizeAbility($request, 'counters.manage'); + $this->authorizeOwner($request, $counter); + $owner = $this->ownerRef($request); + + return view('qms.counters.edit', [ + 'counter' => $counter->load('serviceQueues'), + 'branches' => Branch::owned($owner)->where('organization_id', $counter->organization_id)->orderBy('name')->get(), + 'queues' => ServiceQueue::owned($owner)->where('organization_id', $counter->organization_id)->orderBy('name')->get(), + ]); + } + + public function update(Request $request, Counter $counter): RedirectResponse + { + $this->authorizeAbility($request, 'counters.manage'); + $this->authorizeOwner($request, $counter); + + $validated = $this->validatedCounter($request); + $counter->update([ + 'name' => $validated['name'], + 'code' => $validated['code'] ?? null, + 'branch_id' => $validated['branch_id'], + 'is_active' => $request->boolean('is_active', $counter->is_active), + ]); + $counter->serviceQueues()->sync($validated['queue_ids'] ?? []); + + AuditLogger::record($this->ownerRef($request), 'counter.updated', $counter->organization_id, $this->ownerRef($request), Counter::class, $counter->id); + + return redirect()->route('qms.counters.show', $counter)->with('success', 'Counter updated.'); + } + + /** + * @return array + */ + protected function validatedCounter(Request $request): array + { + return $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'code' => ['nullable', 'string', 'max:50'], + 'branch_id' => ['required', 'exists:queue_branches,id'], + 'queue_ids' => ['nullable', 'array'], + 'queue_ids.*' => ['integer', 'exists:queue_service_queues,id'], + ]); + } +} diff --git a/app/Http/Controllers/Qms/DashboardController.php b/app/Http/Controllers/Qms/DashboardController.php new file mode 100644 index 0000000..a6781ec --- /dev/null +++ b/app/Http/Controllers/Qms/DashboardController.php @@ -0,0 +1,48 @@ +authorizeAbility($request, 'dashboard.view'); + $organization = $this->organization($request); + $owner = $this->ownerRef($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + + $branchQuery = Branch::owned($owner)->where('organization_id', $organization->id); + $this->scopeToBranch($request, $branchQuery); + + $orgStats = [ + 'branches' => (clone $branchQuery)->where('is_active', true)->count(), + 'team_members' => Member::owned($owner)->where('organization_id', $organization->id)->count(), + 'queues' => ServiceQueue::owned($owner) + ->where('organization_id', $organization->id) + ->when($branchScope, fn ($q) => $q->where('branch_id', $branchScope)) + ->where('is_active', true) + ->count(), + ]; + + $operational = $this->stats->forOrganization($owner, $organization->id, $branchScope); + $branches = (clone $branchQuery)->withCount('serviceQueues')->orderBy('name')->get(); + + return view('qms.dashboard', compact('organization', 'orgStats', 'branches', 'operational')); + } +} diff --git a/app/Http/Controllers/Qms/DepartmentController.php b/app/Http/Controllers/Qms/DepartmentController.php new file mode 100644 index 0000000..85be0fc --- /dev/null +++ b/app/Http/Controllers/Qms/DepartmentController.php @@ -0,0 +1,136 @@ +authorizeAbility($request, 'admin.departments.view'); + $organization = $this->organization($request); + $owner = $this->ownerRef($request); + + $departments = Department::owned($owner) + ->whereHas('branch', fn ($q) => $q->where('organization_id', $organization->id)) + ->with('branch') + ->orderBy('name') + ->get(); + + return view('qms.admin.departments.index', [ + 'departments' => $departments, + 'organization' => $organization, + 'types' => config('qms.department_types'), + ]); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'admin.departments.manage'); + $organization = $this->organization($request); + + $branches = Branch::owned($this->ownerRef($request)) + ->where('organization_id', $organization->id) + ->where('is_active', true) + ->orderBy('name') + ->get(); + + return view('qms.admin.departments.create', [ + 'organization' => $organization, + 'branches' => $branches, + 'types' => config('qms.department_types'), + ]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'admin.departments.manage'); + $organization = $this->organization($request); + $owner = $this->ownerRef($request); + + $validated = $request->validate([ + 'branch_id' => ['required', 'integer', 'exists:queue_branches,id'], + 'name' => ['required', 'string', 'max:255'], + 'type' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.department_types')))], + ]); + + $branch = Branch::owned($owner)->findOrFail($validated['branch_id']); + abort_unless($branch->organization_id === $organization->id, 404); + + $department = Department::create([ + 'owner_ref' => $owner, + 'branch_id' => $branch->id, + 'name' => $validated['name'], + 'type' => $validated['type'], + 'is_active' => true, + ]); + + AuditLogger::record($owner, 'department.created', $organization->id, $owner, Department::class, $department->id); + + return redirect()->route('qms.departments.index')->with('success', 'Department created.'); + } + + public function edit(Request $request, Department $department): View + { + $this->authorizeAbility($request, 'admin.departments.manage'); + $this->authorizeOwner($request, $department); + + return view('qms.admin.departments.edit', [ + 'department' => $department, + 'types' => config('qms.department_types'), + ]); + } + + public function update(Request $request, Department $department): RedirectResponse + { + $this->authorizeAbility($request, 'admin.departments.manage'); + $this->authorizeOwner($request, $department); + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'type' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.department_types')))], + 'is_active' => ['boolean'], + ]); + + $department->update([ + ...$validated, + 'is_active' => $request->boolean('is_active', true), + ]); + + AuditLogger::record( + $this->ownerRef($request), + 'department.updated', + $department->branch->organization_id, + $this->ownerRef($request), + Department::class, + $department->id, + ); + + return redirect()->route('qms.departments.index')->with('success', 'Department updated.'); + } + + public function destroy(Request $request, Department $department): RedirectResponse + { + $this->authorizeAbility($request, 'admin.departments.manage'); + $this->authorizeOwner($request, $department); + + $department->load('branch'); + $organizationId = $department->branch->organization_id; + $departmentId = $department->id; + $department->delete(); + + AuditLogger::record($this->ownerRef($request), 'department.deleted', $organizationId, $this->ownerRef($request), Department::class, $departmentId); + + return redirect()->route('qms.departments.index')->with('success', 'Department removed.'); + } +} diff --git a/app/Http/Controllers/Qms/DeviceController.php b/app/Http/Controllers/Qms/DeviceController.php new file mode 100644 index 0000000..161362b --- /dev/null +++ b/app/Http/Controllers/Qms/DeviceController.php @@ -0,0 +1,89 @@ +authorizeAbility($request, 'displays.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $devices = Device::owned($owner) + ->where('organization_id', $organization->id) + ->orderBy('name') + ->paginate(20); + + return view('qms.devices.index', compact('devices', 'organization')); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'displays.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + $branches = Branch::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->get(); + + return view('qms.devices.create', [ + 'organization' => $organization, + 'branches' => $branches, + 'deviceTypes' => config('qms.device_types'), + ]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'displays.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'type' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.device_types')))], + 'branch_id' => ['nullable', 'exists:queue_branches,id'], + ]); + + $device = Device::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + 'branch_id' => $validated['branch_id'] ?? null, + 'name' => $validated['name'], + 'type' => $validated['type'], + 'status' => 'offline', + ]); + + $token = $this->devices->generateToken($device); + AuditLogger::record($owner, 'device.created', $organization->id, $owner, Device::class, $device->id); + + return redirect()->route('qms.devices.index') + ->with('success', 'Device registered. Token: '.$token); + } + + public function regenerateToken(Request $request, Device $device): RedirectResponse + { + $this->authorizeAbility($request, 'displays.manage'); + $this->authorizeOwner($request, $device); + + $token = $this->devices->generateToken($device); + + return back()->with('success', 'New device token: '.$token); + } +} diff --git a/app/Http/Controllers/Qms/DisplayPublicController.php b/app/Http/Controllers/Qms/DisplayPublicController.php new file mode 100644 index 0000000..064afe1 --- /dev/null +++ b/app/Http/Controllers/Qms/DisplayPublicController.php @@ -0,0 +1,47 @@ +displays->findByToken($token) ?? abort(404); + $this->displays->touch($screen); + + return view('qms.display.public', [ + 'screen' => $screen, + 'dataUrl' => route('qms.display.data', $token), + ]); + } + + public function data(string $token): JsonResponse + { + $screen = $this->displays->findByToken($token) ?? abort(404); + $this->displays->touch($screen); + + $payload = $this->displays->payload($screen); + + foreach ($payload['announcements'] as $announcement) { + if (isset($announcement['id'])) { + $model = \App\Models\VoiceAnnouncement::find($announcement['id']); + if ($model) { + $this->voice->markPlayed($model); + } + } + } + + return response()->json($payload); + } +} diff --git a/app/Http/Controllers/Qms/DisplayScreenController.php b/app/Http/Controllers/Qms/DisplayScreenController.php new file mode 100644 index 0000000..d4096a8 --- /dev/null +++ b/app/Http/Controllers/Qms/DisplayScreenController.php @@ -0,0 +1,126 @@ +authorizeAbility($request, 'displays.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $screens = DisplayScreen::owned($owner) + ->where('organization_id', $organization->id) + ->orderBy('name') + ->paginate(20); + + return view('qms.displays.index', compact('screens', 'organization')); + } + + public function show(Request $request, DisplayScreen $display): View + { + $this->authorizeAbility($request, 'displays.view'); + $this->authorizeOwner($request, $display); + $display->load('branch'); + + return view('qms.displays.show', compact('display')); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'displays.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + return view('qms.displays.create', [ + 'organization' => $organization, + 'branches' => Branch::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->get(), + 'queues' => ServiceQueue::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->get(), + 'layouts' => config('qms.display_layouts'), + ]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'displays.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $validated = $this->validatedDisplay($request); + + $screen = DisplayScreen::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + 'branch_id' => $validated['branch_id'], + 'name' => $validated['name'], + 'layout' => $validated['layout'], + 'service_queue_ids' => $validated['queue_ids'] ?? [], + 'is_active' => true, + ]); + + AuditLogger::record($owner, 'display.created', $organization->id, $owner, DisplayScreen::class, $screen->id); + + return redirect()->route('qms.displays.show', $screen) + ->with('success', 'Display created. URL: '.route('qms.display.public', $screen->access_token)); + } + + public function edit(Request $request, DisplayScreen $display): View + { + $this->authorizeAbility($request, 'displays.manage'); + $this->authorizeOwner($request, $display); + $owner = $this->ownerRef($request); + + return view('qms.displays.edit', [ + 'display' => $display, + 'branches' => Branch::owned($owner)->where('organization_id', $display->organization_id)->orderBy('name')->get(), + 'queues' => ServiceQueue::owned($owner)->where('organization_id', $display->organization_id)->orderBy('name')->get(), + 'layouts' => config('qms.display_layouts'), + ]); + } + + public function update(Request $request, DisplayScreen $display): RedirectResponse + { + $this->authorizeAbility($request, 'displays.manage'); + $this->authorizeOwner($request, $display); + + $validated = $this->validatedDisplay($request); + $display->update([ + 'name' => $validated['name'], + 'branch_id' => $validated['branch_id'], + 'layout' => $validated['layout'], + 'service_queue_ids' => $validated['queue_ids'] ?? [], + 'is_active' => $request->boolean('is_active', $display->is_active), + ]); + + AuditLogger::record($this->ownerRef($request), 'display.updated', $display->organization_id, $this->ownerRef($request), DisplayScreen::class, $display->id); + + return redirect()->route('qms.displays.show', $display)->with('success', 'Display updated.'); + } + + /** + * @return array + */ + protected function validatedDisplay(Request $request): array + { + return $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'branch_id' => ['required', 'exists:queue_branches,id'], + 'layout' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.display_layouts')))], + 'queue_ids' => ['nullable', 'array'], + 'queue_ids.*' => ['integer', 'exists:queue_service_queues,id'], + ]); + } +} diff --git a/app/Http/Controllers/Qms/FeedbackAdminController.php b/app/Http/Controllers/Qms/FeedbackAdminController.php new file mode 100644 index 0000000..08133bb --- /dev/null +++ b/app/Http/Controllers/Qms/FeedbackAdminController.php @@ -0,0 +1,41 @@ +authorizeAbility($request, 'feedback.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + + $feedback = CustomerFeedback::owned($owner) + ->where('organization_id', $organization->id) + ->when($branchScope, fn ($q) => $q->whereHas('ticket', fn ($t) => $t->where('branch_id', $branchScope))) + ->with(['ticket', 'counter']) + ->latest() + ->paginate(30); + + $avgRating = CustomerFeedback::owned($owner) + ->where('organization_id', $organization->id) + ->when($branchScope, fn ($q) => $q->whereHas('ticket', fn ($t) => $t->where('branch_id', $branchScope))) + ->avg('rating'); + + return view('qms.feedback.index', [ + 'feedback' => $feedback, + 'organization' => $organization, + 'avgRating' => round((float) $avgRating, 1), + ]); + } +} diff --git a/app/Http/Controllers/Qms/FeedbackController.php b/app/Http/Controllers/Qms/FeedbackController.php new file mode 100644 index 0000000..77133b4 --- /dev/null +++ b/app/Http/Controllers/Qms/FeedbackController.php @@ -0,0 +1,51 @@ +firstOrFail(); + abort_unless($ticket->status === 'completed', 404); + + $existing = CustomerFeedback::where('ticket_id', $ticket->id)->first(); + + return view('qms.feedback.show', compact('ticket', 'existing')); + } + + public function store(Request $request, string $qrToken): RedirectResponse + { + $ticket = Ticket::where('qr_token', $qrToken)->firstOrFail(); + abort_unless($ticket->status === 'completed', 404); + abort_if(CustomerFeedback::where('ticket_id', $ticket->id)->exists(), 422, 'Feedback already submitted.'); + + $validated = $request->validate([ + 'rating' => ['required', 'integer', 'min:1', 'max:5'], + 'service_quality' => ['nullable', 'integer', 'min:1', 'max:5'], + 'wait_experience' => ['nullable', 'integer', 'min:1', 'max:5'], + 'staff_professionalism' => ['nullable', 'integer', 'min:1', 'max:5'], + 'comments' => ['nullable', 'string', 'max:2000'], + ]); + + $feedback = CustomerFeedback::create([ + 'owner_ref' => $ticket->owner_ref, + 'organization_id' => $ticket->organization_id, + 'ticket_id' => $ticket->id, + 'counter_id' => $ticket->counter_id, + ...$validated, + ]); + + AuditLogger::record($ticket->owner_ref, 'feedback.submitted', $ticket->organization_id, null, CustomerFeedback::class, $feedback->id); + + return back()->with('success', 'Thank you for your feedback.'); + } +} diff --git a/app/Http/Controllers/Qms/KioskDeviceController.php b/app/Http/Controllers/Qms/KioskDeviceController.php new file mode 100644 index 0000000..3b43a71 --- /dev/null +++ b/app/Http/Controllers/Qms/KioskDeviceController.php @@ -0,0 +1,60 @@ +attributes->get('qms.device'); + $queues = ServiceQueue::query() + ->where('organization_id', $device->organization_id) + ->when($device->branch_id, fn ($q) => $q->where('branch_id', $device->branch_id)) + ->where('is_active', true) + ->orderBy('name') + ->get(); + + $this->devices->recordHeartbeat($device); + + return view('qms.kiosk.device', compact('device', 'queues')); + } + + public function issue(Request $request): JsonResponse + { + $device = $request->attributes->get('qms.device'); + $this->devices->recordHeartbeat($device); + + $validated = $request->validate([ + 'queue_id' => ['required', 'integer', 'exists:queue_service_queues,id'], + 'customer_name' => ['nullable', 'string', 'max:255'], + 'customer_phone' => ['nullable', 'string', 'max:50'], + 'priority' => ['nullable', 'string'], + ]); + + $queue = ServiceQueue::findOrFail($validated['queue_id']); + abort_unless($queue->organization_id === $device->organization_id, 403); + + $ticket = $this->engine->issueTicket($queue, $device->owner_ref, [ + 'customer_name' => $validated['customer_name'] ?? null, + 'customer_phone' => $validated['customer_phone'] ?? null, + 'priority' => $validated['priority'] ?? 'walk_in', + 'source' => 'kiosk', + ]); + + return response()->json(['data' => TicketPresenter::toArray($ticket)]); + } +} diff --git a/app/Http/Controllers/Qms/MemberController.php b/app/Http/Controllers/Qms/MemberController.php new file mode 100644 index 0000000..a7b9eac --- /dev/null +++ b/app/Http/Controllers/Qms/MemberController.php @@ -0,0 +1,98 @@ +authorizeAbility($request, 'admin.members.view'); + $organization = $this->organization($request); + + $members = Member::owned($this->ownerRef($request)) + ->where('organization_id', $organization->id) + ->with('branch') + ->orderBy('created_at') + ->get(); + + return view('qms.admin.members.index', [ + 'members' => $members, + 'organization' => $organization, + 'roles' => config('qms.roles'), + ]); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'admin.members.manage'); + $organization = $this->organization($request); + + $branches = Branch::owned($this->ownerRef($request)) + ->where('organization_id', $organization->id) + ->where('is_active', true) + ->orderBy('name') + ->get(); + + return view('qms.admin.members.create', [ + 'organization' => $organization, + 'branches' => $branches, + 'roles' => config('qms.roles'), + ]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'admin.members.manage'); + $organization = $this->organization($request); + $owner = $this->ownerRef($request); + + $validated = $request->validate([ + 'user_ref' => ['required', 'string', 'max:255'], + 'role' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.roles')))], + 'branch_id' => ['nullable', 'integer', 'exists:queue_branches,id'], + ]); + + $member = Member::updateOrCreate( + [ + 'organization_id' => $organization->id, + 'user_ref' => $validated['user_ref'], + ], + [ + 'owner_ref' => $owner, + 'role' => $validated['role'], + 'branch_id' => $validated['branch_id'] ?? null, + ], + ); + + AuditLogger::record($owner, 'member.created', $organization->id, $owner, Member::class, $member->id); + + return redirect()->route('qms.members.index')->with('success', 'Member saved.'); + } + + public function destroy(Request $request, Member $member): RedirectResponse + { + $this->authorizeAbility($request, 'admin.members.manage'); + $this->authorizeOwner($request, $member); + + abort_if($member->user_ref === $this->ownerRef($request), 422, 'You cannot remove yourself.'); + + $memberId = $member->id; + $organizationId = $member->organization_id; + $member->delete(); + + AuditLogger::record($this->ownerRef($request), 'member.deleted', $organizationId, $this->ownerRef($request), Member::class, $memberId); + + return redirect()->route('qms.members.index')->with('success', 'Member removed.'); + } +} diff --git a/app/Http/Controllers/Qms/MobileQueueController.php b/app/Http/Controllers/Qms/MobileQueueController.php new file mode 100644 index 0000000..58925cb --- /dev/null +++ b/app/Http/Controllers/Qms/MobileQueueController.php @@ -0,0 +1,93 @@ +validate([ + 'queue_uuid' => ['required', 'uuid'], + 'customer_name' => ['nullable', 'string', 'max:255'], + 'customer_phone' => ['required', 'string', 'max:50'], + ]); + + $queue = ServiceQueue::where('uuid', $validated['queue_uuid'])->where('is_active', true)->firstOrFail(); + + $ticket = $this->engine->issueTicket($queue, $queue->owner_ref, [ + 'customer_name' => $validated['customer_name'] ?? null, + 'customer_phone' => $validated['customer_phone'], + 'source' => 'mobile', + ]); + + return redirect()->route('qms.mobile.show', $ticket->qr_token); + } + + public function show(string $qrToken): View + { + $ticket = Ticket::where('qr_token', $qrToken)->with(['serviceQueue', 'counter'])->firstOrFail(); + + $ahead = Ticket::query() + ->where('service_queue_id', $ticket->service_queue_id) + ->where('status', 'waiting') + ->where('issued_at', '<', $ticket->issued_at) + ->count(); + + return view('qms.mobile.show', [ + 'ticket' => $ticket, + 'presented' => TicketPresenter::toArray($ticket, false), + 'customersAhead' => $ahead, + 'pollUrl' => route('qms.mobile.data', $qrToken), + ]); + } + + public function data(string $qrToken): \Illuminate\Http\JsonResponse + { + $ticket = Ticket::where('qr_token', $qrToken)->with(['serviceQueue', 'counter'])->firstOrFail(); + $ahead = Ticket::query() + ->where('service_queue_id', $ticket->service_queue_id) + ->where('status', 'waiting') + ->where('issued_at', '<', $ticket->issued_at) + ->count(); + + return response()->json([ + 'data' => TicketPresenter::toArray($ticket, false), + 'customers_ahead' => $ahead, + ]); + } + + public function delay(Request $request, string $qrToken): RedirectResponse + { + $ticket = Ticket::where('qr_token', $qrToken)->whereIn('status', ['waiting', 'on_hold'])->firstOrFail(); + $validated = $request->validate(['minutes' => ['required', 'integer', 'min:5', 'max:120']]); + $this->engine->delayArrival($ticket, $validated['minutes']); + + return back()->with('success', 'Arrival delayed.'); + } + + public function cancel(string $qrToken): RedirectResponse + { + $ticket = Ticket::where('qr_token', $qrToken)->whereIn('status', ['waiting', 'on_hold', 'called'])->firstOrFail(); + $this->engine->cancel($ticket); + + return redirect()->route('qms.mobile.join')->with('success', 'Ticket cancelled.'); + } +} diff --git a/app/Http/Controllers/Qms/OnboardingController.php b/app/Http/Controllers/Qms/OnboardingController.php new file mode 100644 index 0000000..aa7104c --- /dev/null +++ b/app/Http/Controllers/Qms/OnboardingController.php @@ -0,0 +1,62 @@ +organizations->isOnboarded($request->user())) { + return redirect()->route('qms.dashboard'); + } + + return view('qms.onboarding.show', [ + 'user' => $request->user(), + 'timezones' => timezone_identifiers_list(), + 'industries' => config('qms.industry_templates'), + 'appointmentModes' => config('qms.appointment_modes'), + ]); + } + + public function store(Request $request): RedirectResponse + { + if ($this->organizations->isOnboarded($request->user())) { + return redirect()->route('qms.dashboard'); + } + + $validated = $request->validate([ + 'organization_name' => ['required', 'string', 'max:255'], + 'industry' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.industry_templates')))], + 'appointment_mode' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.appointment_modes')))], + 'branch_name' => ['required', 'string', 'max:255'], + 'branch_address' => ['nullable', 'string', 'max:500'], + 'branch_phone' => ['nullable', 'string', 'max:50'], + 'timezone' => ['required', 'timezone'], + 'logo' => ['nullable', 'image', 'mimes:jpeg,png,jpg,webp,svg', 'max:2048'], + ]); + + $organization = $this->organizations->completeOnboarding($request->user(), $validated); + + if ($request->hasFile('logo')) { + $organization->update([ + 'logo_path' => OrganizationBranding::storeLogo($organization, $request->file('logo')), + ]); + } + + return redirect()->route('qms.dashboard')->with('success', 'Welcome to Ladill Queue!'); + } +} diff --git a/app/Http/Controllers/Qms/QueueBoardController.php b/app/Http/Controllers/Qms/QueueBoardController.php new file mode 100644 index 0000000..de17beb --- /dev/null +++ b/app/Http/Controllers/Qms/QueueBoardController.php @@ -0,0 +1,52 @@ +authorizeAbility($request, 'queues.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + + $queues = ServiceQueue::owned($owner) + ->where('organization_id', $organization->id) + ->when($branchScope, fn ($q) => $q->where('branch_id', $branchScope)) + ->where('is_active', true) + ->with('branch') + ->orderBy('name') + ->get(); + + $waiting = Ticket::owned($owner) + ->where('organization_id', $organization->id) + ->where('status', 'waiting') + ->when($branchScope, fn ($q) => $q->where('branch_id', $branchScope)) + ->with('serviceQueue') + ->orderBy('issued_at') + ->limit(100) + ->get(); + + $serving = Ticket::owned($owner) + ->where('organization_id', $organization->id) + ->whereIn('status', ['called', 'serving']) + ->when($branchScope, fn ($q) => $q->where('branch_id', $branchScope)) + ->with(['serviceQueue', 'counter']) + ->orderByDesc('called_at') + ->limit(20) + ->get(); + + return view('qms.board.index', compact('organization', 'queues', 'waiting', 'serving')); + } +} diff --git a/app/Http/Controllers/Qms/QueueRuleController.php b/app/Http/Controllers/Qms/QueueRuleController.php new file mode 100644 index 0000000..9477d34 --- /dev/null +++ b/app/Http/Controllers/Qms/QueueRuleController.php @@ -0,0 +1,81 @@ +authorizeAbility($request, 'rules.view'); + $this->authorizeOwner($request, $serviceQueue); + + $rules = QueueRule::owned($this->ownerRef($request)) + ->where('service_queue_id', $serviceQueue->id) + ->orderBy('sort_order') + ->get(); + + return view('qms.rules.index', [ + 'queue' => $serviceQueue, + 'rules' => $rules, + 'ruleTypes' => config('qms.rule_types'), + ]); + } + + public function store(Request $request, ServiceQueue $serviceQueue): RedirectResponse + { + $this->authorizeAbility($request, 'rules.manage'); + $this->authorizeOwner($request, $serviceQueue); + + $validated = $request->validate([ + 'rule_type' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.rule_types')))], + 'waiting_threshold' => ['nullable', 'integer', 'min:1'], + 'overflow_queue_id' => ['nullable', 'exists:queue_service_queues,id'], + 'priority' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.ticket_priorities')))], + 'source' => ['nullable', 'string'], + ]); + + $conditions = []; + $actions = []; + + if ($validated['rule_type'] === 'overflow') { + $conditions['waiting_threshold'] = (int) ($validated['waiting_threshold'] ?? 10); + $actions['overflow_queue_id'] = $validated['overflow_queue_id'] ?? null; + } elseif ($validated['rule_type'] === 'priority_boost') { + $conditions['source'] = $validated['source'] ?? null; + $actions['priority'] = $validated['priority'] ?? 'vip'; + } + + QueueRule::create([ + 'owner_ref' => $this->ownerRef($request), + 'service_queue_id' => $serviceQueue->id, + 'rule_type' => $validated['rule_type'], + 'conditions' => $conditions, + 'actions' => $actions, + 'sort_order' => QueueRule::where('service_queue_id', $serviceQueue->id)->max('sort_order') + 1, + 'is_active' => true, + ]); + + return back()->with('success', 'Rule added.'); + } + + public function destroy(Request $request, ServiceQueue $serviceQueue, QueueRule $rule): RedirectResponse + { + $this->authorizeAbility($request, 'rules.manage'); + $this->authorizeOwner($request, $serviceQueue); + abort_unless($rule->service_queue_id === $serviceQueue->id, 404); + + $rule->delete(); + + return back()->with('success', 'Rule removed.'); + } +} diff --git a/app/Http/Controllers/Qms/ReportController.php b/app/Http/Controllers/Qms/ReportController.php new file mode 100644 index 0000000..1bc499b --- /dev/null +++ b/app/Http/Controllers/Qms/ReportController.php @@ -0,0 +1,142 @@ +authorizeAbility($request, 'reports.view'); + $organization = $this->organization($request); + + $branches = Branch::owned($this->ownerRef($request)) + ->where('organization_id', $organization->id) + ->where('is_active', true) + ->orderBy('name') + ->get(); + + return view('qms.reports.index', [ + 'organization' => $organization, + 'branches' => $branches, + 'reports' => config('qms.report_types'), + ]); + } + + public function show(Request $request, string $type): View + { + $this->authorizeReport($request, $type); + $organization = $this->organization($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + $branchId = $request->input('branch_id') ? (int) $request->input('branch_id') : $branchScope; + [$from, $to] = $this->dateRange($request); + $owner = $this->ownerRef($request); + + $data = match ($type) { + 'tickets' => $this->reports->ticketsReport($owner, $organization->id, $from, $to, $branchId), + 'wait_times' => $this->reports->waitTimesReport($owner, $organization->id, $from, $to, $branchId), + 'counters' => $this->reports->countersReport($owner, $organization->id, $from, $to, $branchId), + 'appointments' => $this->reports->appointmentsReport($owner, $organization->id, $from, $to, $branchId), + 'feedback' => $this->reports->feedbackReport($owner, $organization->id, $from, $to, $branchId), + 'service_sessions' => $this->reports->serviceSessionsReport($owner, $organization->id, $from, $to, $branchId), + default => abort(404), + }; + + $branches = Branch::owned($owner) + ->where('organization_id', $organization->id) + ->orderBy('name') + ->get(); + + return view('qms.reports.show', [ + 'type' => $type, + 'label' => config('qms.report_types')[$type] ?? $type, + 'data' => $data, + 'from' => $from->toDateString(), + 'to' => $to->toDateString(), + 'branchId' => $branchId, + 'branches' => $branches, + 'canExport' => app(QmsPermissions::class)->can($this->member($request), 'reports.export'), + ]); + } + + public function export(Request $request, string $type): StreamedResponse + { + $this->authorizeReport($request, $type); + abort_unless(app(QmsPermissions::class)->can($this->member($request), 'reports.export'), 403); + + $organization = $this->organization($request); + $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); + $branchId = $request->input('branch_id') ? (int) $request->input('branch_id') : $branchScope; + [$from, $to] = $this->dateRange($request); + $owner = $this->ownerRef($request); + + $data = match ($type) { + 'tickets' => $this->reports->ticketsReport($owner, $organization->id, $from, $to, $branchId), + 'wait_times' => $this->reports->waitTimesReport($owner, $organization->id, $from, $to, $branchId), + 'counters' => $this->reports->countersReport($owner, $organization->id, $from, $to, $branchId), + 'appointments' => $this->reports->appointmentsReport($owner, $organization->id, $from, $to, $branchId), + 'feedback' => $this->reports->feedbackReport($owner, $organization->id, $from, $to, $branchId), + 'service_sessions' => $this->reports->serviceSessionsReport($owner, $organization->id, $from, $to, $branchId), + default => abort(404), + }; + + $filename = "queue-report-{$type}-".now()->format('Y-m-d').'.csv'; + + return response()->streamDownload(function () use ($data, $type) { + $handle = fopen('php://output', 'w'); + if ($type === 'wait_times' && isset($data['hourly'])) { + fputcsv($handle, ['Hour', 'Avg wait (seconds)']); + foreach ($data['hourly'] as $row) { + fputcsv($handle, [$row['hour'], $row['avg_wait_seconds']]); + } + } elseif ($type === 'counters' && isset($data['counters'])) { + fputcsv($handle, ['Counter', 'Served']); + foreach ($data['counters'] as $row) { + fputcsv($handle, [$row['name'], $row['served']]); + } + } else { + fputcsv($handle, ['Metric', 'Value']); + foreach ($data as $key => $value) { + if (is_array($value)) { + continue; + } + fputcsv($handle, [$key, $value]); + } + } + fclose($handle); + }, $filename, ['Content-Type' => 'text/csv']); + } + + protected function authorizeReport(Request $request, string $type): void + { + abort_unless(array_key_exists($type, config('qms.report_types')), 404); + $this->authorizeAbility($request, 'reports.view'); + } + + /** + * @return array{0: Carbon, 1: Carbon} + */ + protected function dateRange(Request $request): array + { + $from = Carbon::parse($request->input('from', now()->subDays(30)->toDateString()))->startOfDay(); + $to = Carbon::parse($request->input('to', now()->toDateString()))->endOfDay(); + + return [$from, $to]; + } +} diff --git a/app/Http/Controllers/Qms/ServiceQueueController.php b/app/Http/Controllers/Qms/ServiceQueueController.php new file mode 100644 index 0000000..9f008de --- /dev/null +++ b/app/Http/Controllers/Qms/ServiceQueueController.php @@ -0,0 +1,170 @@ +authorizeAbility($request, 'queues.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $queues = ServiceQueue::owned($owner) + ->where('organization_id', $organization->id) + ->with(['branch', 'department']) + ->when(true, fn ($q) => $this->scopeToBranch($request, $q)) + ->orderBy('name') + ->paginate(20); + + return view('qms.queues.index', compact('queues', 'organization')); + } + + public function show(Request $request, ServiceQueue $serviceQueue): View + { + $this->authorizeAbility($request, 'queues.view'); + $this->authorizeOwner($request, $serviceQueue); + $serviceQueue->load(['branch', 'department']); + + $waiting = Ticket::owned($this->ownerRef($request)) + ->where('service_queue_id', $serviceQueue->id) + ->where('status', 'waiting') + ->count(); + + return view('qms.queues.show', [ + 'queue' => $serviceQueue, + 'waiting' => $waiting, + ]); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'queues.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $branches = Branch::owned($owner) + ->where('organization_id', $organization->id) + ->where('is_active', true) + ->orderBy('name') + ->get(); + + return view('qms.queues.create', [ + 'organization' => $organization, + 'branches' => $branches, + 'strategies' => config('qms.queue_strategies'), + ]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'queues.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $currentCount = ServiceQueue::owned($owner)->where('organization_id', $organization->id)->count(); + if (! app(PlanService::class)->canAddQueue($organization, $currentCount)) { + return back()->withInput()->with('error', 'Your plan allows '.$currentCount.' queues. Upgrade to Pro for unlimited queues.'); + } + + $validated = $this->validatedQueue($request); + + abort_unless( + Branch::owned($owner)->where('organization_id', $organization->id)->where('id', $validated['branch_id'])->exists(), + 404, + ); + + $queue = ServiceQueue::create([ + ...$validated, + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + 'color' => $validated['color'] ?? '#4f46e5', + 'avg_service_seconds' => $validated['avg_service_seconds'] ?? 300, + 'is_active' => $request->boolean('is_active', true), + ]); + + AuditLogger::record($owner, 'service_queue.created', $organization->id, $owner, ServiceQueue::class, $queue->id); + + return redirect()->route('qms.queues.show', $queue)->with('success', 'Queue created.'); + } + + public function edit(Request $request, ServiceQueue $serviceQueue): View + { + $this->authorizeAbility($request, 'queues.manage'); + $this->authorizeOwner($request, $serviceQueue); + $owner = $this->ownerRef($request); + + return view('qms.queues.edit', [ + 'queue' => $serviceQueue, + 'branches' => Branch::owned($owner)->where('organization_id', $serviceQueue->organization_id)->orderBy('name')->get(), + 'strategies' => config('qms.queue_strategies'), + ]); + } + + public function update(Request $request, ServiceQueue $serviceQueue): RedirectResponse + { + $this->authorizeAbility($request, 'queues.manage'); + $this->authorizeOwner($request, $serviceQueue); + + $validated = $this->validatedQueue($request, updating: true); + $serviceQueue->update([ + ...$validated, + 'color' => $validated['color'] ?? $serviceQueue->color, + 'is_active' => $request->boolean('is_active', $serviceQueue->is_active), + ]); + + AuditLogger::record($this->ownerRef($request), 'service_queue.updated', $serviceQueue->organization_id, $this->ownerRef($request), ServiceQueue::class, $serviceQueue->id); + + return redirect()->route('qms.queues.show', $serviceQueue)->with('success', 'Queue updated.'); + } + + public function pause(Request $request, ServiceQueue $serviceQueue): RedirectResponse + { + $this->authorizeAbility($request, 'queues.manage'); + $this->authorizeOwner($request, $serviceQueue); + app(\App\Services\Qms\QueueEngine::class)->pauseQueue($serviceQueue, $this->ownerRef($request)); + + return back()->with('success', 'Queue paused.'); + } + + public function resume(Request $request, ServiceQueue $serviceQueue): RedirectResponse + { + $this->authorizeAbility($request, 'queues.manage'); + $this->authorizeOwner($request, $serviceQueue); + app(\App\Services\Qms\QueueEngine::class)->resumeQueue($serviceQueue, $this->ownerRef($request)); + + return back()->with('success', 'Queue resumed.'); + } + + /** + * @return array + */ + protected function validatedQueue(Request $request, bool $updating = false): array + { + return $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'description' => ['nullable', 'string', 'max:1000'], + 'branch_id' => ['required', 'exists:queue_branches,id'], + 'department_id' => ['nullable', 'exists:queue_departments,id'], + 'color' => ['nullable', 'string', 'max:20'], + 'prefix' => [$updating ? 'sometimes' : 'required', 'string', 'max:10'], + 'strategy' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.queue_strategies')))], + 'avg_service_seconds' => ['nullable', 'integer', 'min:60', 'max:7200'], + 'max_capacity' => ['nullable', 'integer', 'min:1'], + 'is_active' => ['boolean'], + ]); + } +} diff --git a/app/Http/Controllers/Qms/SettingsController.php b/app/Http/Controllers/Qms/SettingsController.php new file mode 100644 index 0000000..57de73b --- /dev/null +++ b/app/Http/Controllers/Qms/SettingsController.php @@ -0,0 +1,66 @@ +authorizeAbility($request, 'settings.view'); + $organization = $this->organization($request); + $canManage = app(QmsPermissions::class)->can($this->member($request), 'settings.manage'); + + $branchCount = Branch::owned($this->ownerRef($request)) + ->where('organization_id', $organization->id) + ->count(); + + return view('qms.settings.edit', [ + 'organization' => $organization, + 'canManage' => $canManage, + 'branchCount' => $branchCount, + 'appointmentModes' => config('qms.appointment_modes'), + 'industries' => config('qms.industry_templates'), + ]); + } + + public function update(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'settings.manage'); + $organization = $this->organization($request); + $owner = $this->ownerRef($request); + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'timezone' => ['required', 'timezone'], + 'appointment_mode' => ['required', 'string', 'in:'.implode(',', array_keys(config('qms.appointment_modes')))], + 'industry' => ['nullable', 'string'], + 'notifications_enabled' => ['boolean'], + ]); + + $settings = $organization->settings ?? []; + $settings['appointment_mode'] = $validated['appointment_mode']; + $settings['industry'] = $validated['industry'] ?? $settings['industry'] ?? null; + $settings['notifications_enabled'] = $request->boolean('notifications_enabled', true); + + $organization->update([ + 'name' => $validated['name'], + 'timezone' => $validated['timezone'], + 'settings' => $settings, + ]); + + AuditLogger::record($owner, 'organization.updated', $organization->id, $owner, \App\Models\Organization::class, $organization->id); + + return back()->with('success', 'Settings saved.'); + } +} diff --git a/app/Http/Controllers/Qms/TicketController.php b/app/Http/Controllers/Qms/TicketController.php new file mode 100644 index 0000000..efa18f3 --- /dev/null +++ b/app/Http/Controllers/Qms/TicketController.php @@ -0,0 +1,101 @@ +authorizeAbility($request, 'tickets.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $tickets = Ticket::owned($owner) + ->where('organization_id', $organization->id) + ->with(['serviceQueue', 'counter']) + ->when($request->query('status'), fn ($q, $s) => $q->where('status', $s)) + ->latest('issued_at') + ->paginate(30); + + $queues = ServiceQueue::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->get(); + + return view('qms.tickets.index', compact('tickets', 'queues', 'organization')); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'tickets.issue'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $queues = ServiceQueue::owned($owner) + ->where('organization_id', $organization->id) + ->where('is_active', true) + ->orderBy('name') + ->get(); + + return view('qms.tickets.create', compact('queues', 'organization')); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'tickets.issue'); + $owner = $this->ownerRef($request); + + $validated = $request->validate([ + 'service_queue_id' => ['required', 'exists:queue_service_queues,id'], + 'customer_name' => ['nullable', 'string', 'max:255'], + 'customer_phone' => ['nullable', 'string', 'max:50'], + 'priority' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.ticket_priorities')))], + ]); + + $queue = ServiceQueue::findOrFail($validated['service_queue_id']); + $this->authorizeOwner($request, $queue); + + $ticket = $this->engine->issueTicket($queue, $owner, [ + ...$validated, + 'source' => 'reception', + 'actor_ref' => $owner, + ]); + + return redirect()->route('qms.tickets.show', $ticket)->with('success', 'Ticket issued.'); + } + + public function show(Request $request, Ticket $ticket): View + { + $this->authorizeAbility($request, 'tickets.view'); + $this->authorizeOwner($request, $ticket); + + $ticket->load(['serviceQueue', 'counter', 'events']); + + return view('qms.tickets.show', [ + 'ticket' => $ticket, + 'presented' => TicketPresenter::toArray($ticket), + ]); + } + + public function print(Request $request, Ticket $ticket): View + { + $this->authorizeAbility($request, 'tickets.view'); + $this->authorizeOwner($request, $ticket); + $ticket->load(['serviceQueue', 'branch']); + + return view('qms.tickets.print', compact('ticket')); + } +} diff --git a/app/Http/Controllers/Qms/WorkflowController.php b/app/Http/Controllers/Qms/WorkflowController.php new file mode 100644 index 0000000..7902229 --- /dev/null +++ b/app/Http/Controllers/Qms/WorkflowController.php @@ -0,0 +1,162 @@ +authorizeAbility($request, 'workflows.view'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $workflows = Workflow::owned($owner) + ->where('organization_id', $organization->id) + ->withCount('steps') + ->orderBy('name') + ->get(); + + return view('qms.workflows.index', compact('workflows', 'organization')); + } + + public function create(Request $request): View + { + $this->authorizeAbility($request, 'workflows.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + return view('qms.workflows.create', [ + 'organization' => $organization, + 'branches' => Branch::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->get(), + 'queues' => ServiceQueue::owned($owner)->where('organization_id', $organization->id)->orderBy('name')->get(), + 'templates' => config('qms.industry_templates'), + 'workflowTemplates' => config('qms.workflow_templates'), + ]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorizeAbility($request, 'workflows.manage'); + $owner = $this->ownerRef($request); + $organization = $this->organization($request); + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'description' => ['nullable', 'string'], + 'branch_id' => ['nullable', 'exists:queue_branches,id'], + 'industry_template' => ['nullable', 'string'], + 'steps' => ['required', 'array', 'min:1'], + 'steps.*.name' => ['required', 'string', 'max:255'], + 'steps.*.service_queue_id' => ['nullable', 'exists:queue_service_queues,id'], + ]); + + $workflow = Workflow::create([ + 'owner_ref' => $owner, + 'organization_id' => $organization->id, + 'name' => $validated['name'], + 'description' => $validated['description'] ?? null, + 'branch_id' => $validated['branch_id'] ?? null, + 'industry_template' => $validated['industry_template'] ?? null, + 'is_active' => true, + ]); + + foreach ($validated['steps'] as $i => $step) { + WorkflowStep::create([ + 'workflow_id' => $workflow->id, + 'name' => $step['name'], + 'service_queue_id' => $step['service_queue_id'] ?? null, + 'sort_order' => $i + 1, + ]); + } + + AuditLogger::record($owner, 'workflow.created', $organization->id, $owner, Workflow::class, $workflow->id); + + return redirect()->route('qms.workflows.index')->with('success', 'Workflow created.'); + } + + public function show(Request $request, Workflow $workflow): View + { + $this->authorizeAbility($request, 'workflows.view'); + $this->authorizeOwner($request, $workflow); + $workflow->load(['steps.serviceQueue', 'branch']); + + return view('qms.workflows.show', compact('workflow')); + } + + public function edit(Request $request, Workflow $workflow): View + { + $this->authorizeAbility($request, 'workflows.manage'); + $this->authorizeOwner($request, $workflow); + $owner = $this->ownerRef($request); + + return view('qms.workflows.edit', [ + 'workflow' => $workflow->load('steps'), + 'branches' => Branch::owned($owner)->where('organization_id', $workflow->organization_id)->orderBy('name')->get(), + 'queues' => ServiceQueue::owned($owner)->where('organization_id', $workflow->organization_id)->orderBy('name')->get(), + ]); + } + + public function update(Request $request, Workflow $workflow): RedirectResponse + { + $this->authorizeAbility($request, 'workflows.manage'); + $this->authorizeOwner($request, $workflow); + + $validated = $request->validate([ + 'name' => ['required', 'string', 'max:255'], + 'description' => ['nullable', 'string'], + 'branch_id' => ['nullable', 'exists:queue_branches,id'], + 'is_active' => ['boolean'], + 'steps' => ['required', 'array', 'min:1'], + 'steps.*.name' => ['required', 'string', 'max:255'], + 'steps.*.service_queue_id' => ['nullable', 'exists:queue_service_queues,id'], + ]); + + $workflow->update([ + 'name' => $validated['name'], + 'description' => $validated['description'] ?? null, + 'branch_id' => $validated['branch_id'] ?? null, + 'is_active' => $request->boolean('is_active', $workflow->is_active), + ]); + + $workflow->steps()->delete(); + foreach ($validated['steps'] as $i => $step) { + WorkflowStep::create([ + 'workflow_id' => $workflow->id, + 'name' => $step['name'], + 'service_queue_id' => $step['service_queue_id'] ?? null, + 'sort_order' => $i + 1, + ]); + } + + AuditLogger::record($this->ownerRef($request), 'workflow.updated', $workflow->organization_id, $this->ownerRef($request), Workflow::class, $workflow->id); + + return redirect()->route('qms.workflows.show', $workflow)->with('success', 'Workflow updated.'); + } + + public function destroy(Request $request, Workflow $workflow): RedirectResponse + { + $this->authorizeAbility($request, 'workflows.manage'); + $this->authorizeOwner($request, $workflow); + $workflow->delete(); + + return redirect()->route('qms.workflows.index')->with('success', 'Workflow removed.'); + } +} diff --git a/app/Http/Middleware/AuthenticateQmsDevice.php b/app/Http/Middleware/AuthenticateQmsDevice.php new file mode 100644 index 0000000..9691f8e --- /dev/null +++ b/app/Http/Middleware/AuthenticateQmsDevice.php @@ -0,0 +1,31 @@ +route('token') ?? $request->header('X-Device-Token', '')); + + $device = $this->devices->findByToken($token); + abort_unless($device, 401); + + if ($type && $device->type !== $type) { + abort(403); + } + + $request->attributes->set('qms.device', $device); + + return $next($request); + } +} diff --git a/app/Http/Middleware/AuthenticateService.php b/app/Http/Middleware/AuthenticateService.php new file mode 100644 index 0000000..b9f5781 --- /dev/null +++ b/app/Http/Middleware/AuthenticateService.php @@ -0,0 +1,38 @@ +bearerToken(); + $caller = null; + + if ($token !== '') { + foreach ((array) config("{$namespace}.service_api_keys", []) as $name => $key) { + if (is_string($key) && $key !== '' && hash_equals($key, $token)) { + $caller = $name; + break; + } + } + } + + if ($caller === null) { + return response()->json(['error' => 'Unauthorized.'], 401); + } + + $request->attributes->set('service_caller', $caller); + + return $next($request); + } +} diff --git a/app/Http/Middleware/EnsureOrganizationSetup.php b/app/Http/Middleware/EnsureOrganizationSetup.php new file mode 100644 index 0000000..0ae4150 --- /dev/null +++ b/app/Http/Middleware/EnsureOrganizationSetup.php @@ -0,0 +1,33 @@ +user(); + if (! $user) { + return $next($request); + } + + if ($request->routeIs('qms.onboarding*')) { + return $next($request); + } + + if (! $this->organizations->isOnboarded($user)) { + return redirect()->route('qms.onboarding.show'); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/EnsurePlatformSession.php b/app/Http/Middleware/EnsurePlatformSession.php new file mode 100644 index 0000000..db642f5 --- /dev/null +++ b/app/Http/Middleware/EnsurePlatformSession.php @@ -0,0 +1,58 @@ +headers->get('Cookie', ''); + if ($cookieHeader === '') { + return $this->clearAppSession($request); + } + + try { + $response = Http::withHeaders(['Cookie' => $cookieHeader]) + ->timeout(3) + ->get('https://'.$authDomain.'/sso/ping'); + } catch (\Throwable) { + return $next($request); + } + + if ($response->status() === 401) { + return $this->clearAppSession($request); + } + + return $next($request); + } + + private function clearAppSession(Request $request): Response + { + Auth::logout(); + $request->session()->invalidate(); + $request->session()->regenerateToken(); + + return redirect()->route('sso.connect', [ + 'redirect' => $request->fullUrl(), + ]); + } +} diff --git a/app/Http/Middleware/EnsureQmsAbility.php b/app/Http/Middleware/EnsureQmsAbility.php new file mode 100644 index 0000000..9ea429e --- /dev/null +++ b/app/Http/Middleware/EnsureQmsAbility.php @@ -0,0 +1,34 @@ +user(); + abort_unless($user, 403); + + $organization = $this->organizations->resolveForUser($user); + abort_unless($organization, 403); + + $member = $this->organizations->memberFor($user, $organization); + abort_unless($this->permissions->can($member, $ability), 403); + + $request->attributes->set('qms.organization', $organization); + $request->attributes->set('qms.member', $member); + + return $next($request); + } +} diff --git a/app/Http/Middleware/SetActingAccount.php b/app/Http/Middleware/SetActingAccount.php new file mode 100644 index 0000000..7e1d5c0 --- /dev/null +++ b/app/Http/Middleware/SetActingAccount.php @@ -0,0 +1,29 @@ +user()) { + $request->attributes->set('actingAccount', $user); + + if (! $request->is('api/*')) { + View::share('actingAccount', $user); + } + } + + return $next($request); + } +} diff --git a/app/Listeners/PlatformServiceEventListener.php b/app/Listeners/PlatformServiceEventListener.php new file mode 100644 index 0000000..a2da030 --- /dev/null +++ b/app/Listeners/PlatformServiceEventListener.php @@ -0,0 +1,82 @@ +name) { + 'user.deleted' => $this->handleUserDeleted($event), + 'user.suspended' => $this->handleUserSuspended($event), + 'organization.updated' => $this->handleOrganizationUpdated($event), + default => null, + }; + } + + protected function handleUserDeleted(ServiceEventOccurred $event): void + { + $publicId = (string) ($event->data['user'] ?? ''); + if ($publicId === '') { + return; + } + + DB::transaction(function () use ($publicId) { + Member::where('user_ref', $publicId)->delete(); + User::where('public_id', $publicId)->delete(); + }); + + Log::info('PlatformServiceEventListener: user deleted', ['public_id' => $publicId]); + } + + protected function handleUserSuspended(ServiceEventOccurred $event): void + { + $publicId = (string) ($event->data['user'] ?? ''); + if ($publicId === '') { + return; + } + + $user = User::where('public_id', $publicId)->first(); + if ($user) { + $user->tokens()->delete(); + } + + Log::info('PlatformServiceEventListener: user suspended', ['public_id' => $publicId]); + } + + protected function handleOrganizationUpdated(ServiceEventOccurred $event): void + { + $ownerRef = (string) ($event->data['owner'] ?? $event->data['user'] ?? ''); + if ($ownerRef === '') { + return; + } + + $organization = Organization::owned($ownerRef)->first(); + if (! $organization) { + return; + } + + $updates = array_filter([ + 'name' => $event->data['name'] ?? null, + 'timezone' => $event->data['timezone'] ?? null, + ], fn ($value) => $value !== null && $value !== ''); + + if ($updates === []) { + return; + } + + $organization->update($updates); + + Log::info('PlatformServiceEventListener: organization updated', [ + 'organization_id' => $organization->id, + 'owner_ref' => $ownerRef, + ]); + } +} diff --git a/app/Mail/ContactMessageMail.php b/app/Mail/ContactMessageMail.php new file mode 100644 index 0000000..8081ad8 --- /dev/null +++ b/app/Mail/ContactMessageMail.php @@ -0,0 +1,40 @@ +subjectLine, + replyTo: $this->replyToAddress ? [$this->replyToAddress] : [], + ); + } + + public function content(): Content + { + return new Content( + view: 'email.contact-message', + with: [ + 'bodyText' => $this->bodyText, + 'fromName' => $this->fromName, + ], + ); + } +} diff --git a/app/Models/AuditLog.php b/app/Models/AuditLog.php new file mode 100644 index 0000000..b3d3c33 --- /dev/null +++ b/app/Models/AuditLog.php @@ -0,0 +1,56 @@ + 'array', + 'created_at' => 'datetime', + ]; + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public static function record( + string $ownerRef, + string $action, + ?int $organizationId = null, + ?string $actorRef = null, + ?string $subjectType = null, + ?int $subjectId = null, + ?array $metadata = null, + ): self { + return static::create([ + 'owner_ref' => $ownerRef, + 'organization_id' => $organizationId, + 'actor_ref' => $actorRef, + 'action' => $action, + 'subject_type' => $subjectType, + 'subject_id' => $subjectId, + 'metadata' => $metadata, + 'ip_address' => request()?->ip(), + 'created_at' => now(), + ]); + } +} diff --git a/app/Models/Branch.php b/app/Models/Branch.php new file mode 100644 index 0000000..eb172ec --- /dev/null +++ b/app/Models/Branch.php @@ -0,0 +1,45 @@ + 'boolean']; + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public function departments(): HasMany + { + return $this->hasMany(Department::class, 'branch_id'); + } + + public function serviceQueues(): HasMany + { + return $this->hasMany(ServiceQueue::class, 'branch_id'); + } + + public function counters(): HasMany + { + return $this->hasMany(Counter::class, 'branch_id'); + } +} diff --git a/app/Models/Concerns/BelongsToOwner.php b/app/Models/Concerns/BelongsToOwner.php new file mode 100644 index 0000000..4d95386 --- /dev/null +++ b/app/Models/Concerns/BelongsToOwner.php @@ -0,0 +1,13 @@ +where($this->getTable().'.owner_ref', $ownerRef); + } +} diff --git a/app/Models/Counter.php b/app/Models/Counter.php new file mode 100644 index 0000000..f2843ee --- /dev/null +++ b/app/Models/Counter.php @@ -0,0 +1,64 @@ + 'array', + 'is_active' => 'boolean', + ]; + } + + protected static function booted(): void + { + static::creating(function (self $counter) { + $counter->uuid ??= (string) Str::uuid(); + }); + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } + + public function department(): BelongsTo + { + return $this->belongsTo(Department::class, 'department_id'); + } + + public function serviceQueues(): BelongsToMany + { + return $this->belongsToMany(ServiceQueue::class, 'queue_counter_service_queue', 'counter_id', 'service_queue_id') + ->withPivot('priority'); + } + + public function tickets(): HasMany + { + return $this->hasMany(Ticket::class, 'counter_id'); + } +} diff --git a/app/Models/CustomerFeedback.php b/app/Models/CustomerFeedback.php new file mode 100644 index 0000000..d21d57a --- /dev/null +++ b/app/Models/CustomerFeedback.php @@ -0,0 +1,37 @@ +uuid ??= (string) Str::uuid(); + }); + } + + public function ticket(): BelongsTo + { + return $this->belongsTo(Ticket::class, 'ticket_id'); + } + + public function counter(): BelongsTo + { + return $this->belongsTo(Counter::class, 'counter_id'); + } +} diff --git a/app/Models/Department.php b/app/Models/Department.php new file mode 100644 index 0000000..309ff80 --- /dev/null +++ b/app/Models/Department.php @@ -0,0 +1,29 @@ + 'boolean']; + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } +} diff --git a/app/Models/Device.php b/app/Models/Device.php new file mode 100644 index 0000000..1398b98 --- /dev/null +++ b/app/Models/Device.php @@ -0,0 +1,46 @@ + 'array', + 'last_online_at' => 'datetime', + ]; + } + + protected static function booted(): void + { + static::creating(function (self $device) { + $device->uuid ??= (string) Str::uuid(); + }); + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } +} diff --git a/app/Models/DisplayScreen.php b/app/Models/DisplayScreen.php new file mode 100644 index 0000000..17403aa --- /dev/null +++ b/app/Models/DisplayScreen.php @@ -0,0 +1,49 @@ + 'array', + 'settings' => 'array', + 'is_active' => 'boolean', + 'last_seen_at' => 'datetime', + ]; + } + + protected static function booted(): void + { + static::creating(function (self $screen) { + $screen->uuid ??= (string) Str::uuid(); + $screen->access_token ??= Str::random(48); + }); + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } +} diff --git a/app/Models/Member.php b/app/Models/Member.php new file mode 100644 index 0000000..3674b55 --- /dev/null +++ b/app/Models/Member.php @@ -0,0 +1,31 @@ +belongsTo(Organization::class, 'organization_id'); + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } + + public function hasRole(string ...$roles): bool + { + return in_array($this->role, $roles, true); + } +} diff --git a/app/Models/Organization.php b/app/Models/Organization.php new file mode 100644 index 0000000..90c0a5b --- /dev/null +++ b/app/Models/Organization.php @@ -0,0 +1,39 @@ + 'array']; + } + + public function branches(): HasMany + { + return $this->hasMany(Branch::class, 'organization_id'); + } + + public function members(): HasMany + { + return $this->hasMany(Member::class, 'organization_id'); + } + + public function serviceQueues(): HasMany + { + return $this->hasMany(ServiceQueue::class, 'organization_id'); + } +} diff --git a/app/Models/QueueAppointment.php b/app/Models/QueueAppointment.php new file mode 100644 index 0000000..eb5475b --- /dev/null +++ b/app/Models/QueueAppointment.php @@ -0,0 +1,58 @@ + 'datetime', + 'checked_in_at' => 'datetime', + 'metadata' => 'array', + ]; + } + + protected static function booted(): void + { + static::creating(function (self $model) { + $model->uuid ??= (string) Str::uuid(); + }); + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } + + public function serviceQueue(): BelongsTo + { + return $this->belongsTo(ServiceQueue::class, 'service_queue_id'); + } + + public function ticket(): BelongsTo + { + return $this->belongsTo(Ticket::class, 'ticket_id'); + } +} diff --git a/app/Models/QueueRule.php b/app/Models/QueueRule.php new file mode 100644 index 0000000..f697cb0 --- /dev/null +++ b/app/Models/QueueRule.php @@ -0,0 +1,32 @@ + 'array', + 'actions' => 'array', + 'is_active' => 'boolean', + ]; + } + + public function serviceQueue(): BelongsTo + { + return $this->belongsTo(ServiceQueue::class, 'service_queue_id'); + } +} diff --git a/app/Models/ServiceQueue.php b/app/Models/ServiceQueue.php new file mode 100644 index 0000000..bd08760 --- /dev/null +++ b/app/Models/ServiceQueue.php @@ -0,0 +1,69 @@ + 'array', + 'priority_rules' => 'array', + 'settings' => 'array', + 'is_active' => 'boolean', + 'is_paused' => 'boolean', + ]; + } + + protected static function booted(): void + { + static::creating(function (self $queue) { + $queue->uuid ??= (string) Str::uuid(); + }); + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } + + public function department(): BelongsTo + { + return $this->belongsTo(Department::class, 'department_id'); + } + + public function tickets(): HasMany + { + return $this->hasMany(Ticket::class, 'service_queue_id'); + } + + public function counters(): BelongsToMany + { + return $this->belongsToMany(Counter::class, 'queue_counter_service_queue', 'service_queue_id', 'counter_id') + ->withPivot('priority'); + } +} diff --git a/app/Models/ServiceSession.php b/app/Models/ServiceSession.php new file mode 100644 index 0000000..36eb6da --- /dev/null +++ b/app/Models/ServiceSession.php @@ -0,0 +1,37 @@ + 'datetime', + 'ended_at' => 'datetime', + ]; + } + + public function ticket(): BelongsTo + { + return $this->belongsTo(Ticket::class, 'ticket_id'); + } + + public function counter(): BelongsTo + { + return $this->belongsTo(Counter::class, 'counter_id'); + } +} diff --git a/app/Models/Ticket.php b/app/Models/Ticket.php new file mode 100644 index 0000000..187cfe5 --- /dev/null +++ b/app/Models/Ticket.php @@ -0,0 +1,68 @@ + 'array', + 'issued_at' => 'datetime', + 'called_at' => 'datetime', + 'serving_started_at' => 'datetime', + 'completed_at' => 'datetime', + ]; + } + + protected static function booted(): void + { + static::creating(function (self $ticket) { + $ticket->uuid ??= (string) Str::uuid(); + $ticket->qr_token ??= Str::random(32); + }); + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } + + public function serviceQueue(): BelongsTo + { + return $this->belongsTo(ServiceQueue::class, 'service_queue_id'); + } + + public function counter(): BelongsTo + { + return $this->belongsTo(Counter::class, 'counter_id'); + } + + public function events(): HasMany + { + return $this->hasMany(TicketEvent::class, 'ticket_id'); + } +} diff --git a/app/Models/TicketEvent.php b/app/Models/TicketEvent.php new file mode 100644 index 0000000..5231c7f --- /dev/null +++ b/app/Models/TicketEvent.php @@ -0,0 +1,38 @@ + 'array', + 'created_at' => 'datetime', + ]; + } + + public function ticket(): BelongsTo + { + return $this->belongsTo(Ticket::class, 'ticket_id'); + } + + public function counter(): BelongsTo + { + return $this->belongsTo(Counter::class, 'counter_id'); + } +} diff --git a/app/Models/User.php b/app/Models/User.php new file mode 100644 index 0000000..5eae3a0 --- /dev/null +++ b/app/Models/User.php @@ -0,0 +1,42 @@ + 'datetime', + 'last_app_active_at' => 'datetime', + 'password' => 'hashed', + ]; + } + + /** The owner reference used to scope every CRM record to this account. */ + public function ownerRef(): string + { + return (string) $this->public_id; + } + + public function avatarUrl(): ?string + { + $url = trim((string) $this->avatar_url); + + return $url !== '' ? $url : null; + } +} diff --git a/app/Models/VoiceAnnouncement.php b/app/Models/VoiceAnnouncement.php new file mode 100644 index 0000000..7628fb8 --- /dev/null +++ b/app/Models/VoiceAnnouncement.php @@ -0,0 +1,31 @@ + 'datetime', + ]; + } + + public function ticket(): BelongsTo + { + return $this->belongsTo(Ticket::class, 'ticket_id'); + } +} diff --git a/app/Models/Workflow.php b/app/Models/Workflow.php new file mode 100644 index 0000000..09f2128 --- /dev/null +++ b/app/Models/Workflow.php @@ -0,0 +1,52 @@ + 'array', + 'is_active' => 'boolean', + ]; + } + + protected static function booted(): void + { + static::creating(function (self $model) { + $model->uuid ??= (string) Str::uuid(); + }); + } + + public function organization(): BelongsTo + { + return $this->belongsTo(Organization::class, 'organization_id'); + } + + public function branch(): BelongsTo + { + return $this->belongsTo(Branch::class, 'branch_id'); + } + + public function steps(): HasMany + { + return $this->hasMany(WorkflowStep::class, 'workflow_id')->orderBy('sort_order'); + } +} diff --git a/app/Models/WorkflowStep.php b/app/Models/WorkflowStep.php new file mode 100644 index 0000000..66213f9 --- /dev/null +++ b/app/Models/WorkflowStep.php @@ -0,0 +1,30 @@ + 'array']; + } + + public function workflow(): BelongsTo + { + return $this->belongsTo(Workflow::class, 'workflow_id'); + } + + public function serviceQueue(): BelongsTo + { + return $this->belongsTo(ServiceQueue::class, 'service_queue_id'); + } +} diff --git a/app/Notifications/Qms/QueueStaffNotification.php b/app/Notifications/Qms/QueueStaffNotification.php new file mode 100644 index 0000000..7dff8c6 --- /dev/null +++ b/app/Notifications/Qms/QueueStaffNotification.php @@ -0,0 +1,40 @@ + + */ + public function via(object $notifiable): array + { + return ['database']; + } + + /** + * @return array + */ + public function toArray(object $notifiable): array + { + return [ + 'title' => $this->title, + 'message' => $this->message, + 'url' => $this->url, + 'icon' => $this->icon, + ]; + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..1185430 --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,35 @@ +route('token') ?? $request->ip(); + + return Limit::perMinute(30)->by((string) $key); + }); + + View::composer(['partials.topbar'], function ($view) { + $view->with(\App\Support\MobileTopbar::resolve()); + }); + } +} diff --git a/app/Services/Billing/BillingClient.php b/app/Services/Billing/BillingClient.php new file mode 100644 index 0000000..4b97295 --- /dev/null +++ b/app/Services/Billing/BillingClient.php @@ -0,0 +1,64 @@ +token())->acceptJson()->timeout(8) + ->get($this->base().'/balance', ['user' => $publicId]); + $res->throw(); + + return (int) ($res->json('balance_minor') ?? 0); + } + + public function canAfford(string $publicId, int $amountMinor): bool + { + $res = Http::withToken($this->token())->acceptJson()->timeout(8) + ->get($this->base().'/can-afford', ['user' => $publicId, 'amount_minor' => $amountMinor]); + $res->throw(); + + return (bool) ($res->json('affordable') ?? false); + } + + /** + * Debit the wallet. Returns true on success, false on insufficient balance + * (HTTP 402). Idempotent by $reference. + */ + public function debit(string $publicId, int $amountMinor, string $source, string $reference, ?string $description = null): bool + { + $res = Http::withToken($this->token())->acceptJson()->timeout(10)->post($this->base().'/debit', array_filter([ + 'user' => $publicId, + 'amount_minor' => $amountMinor, + 'service' => (string) config('billing.service', 'crm'), + 'source' => $source, + 'reference' => $reference, + 'description' => $description, + ], static fn ($v) => $v !== null)); + + if ($res->status() === 402) { + return false; + } + $res->throw(); + + return true; + } +} diff --git a/app/Services/Billing/OneTimePurchaseService.php b/app/Services/Billing/OneTimePurchaseService.php new file mode 100644 index 0000000..6fd9aa7 --- /dev/null +++ b/app/Services/Billing/OneTimePurchaseService.php @@ -0,0 +1,76 @@ +|null */ + public function product(string $productKey): ?array + { + $product = config('crm_products.'.$productKey); + + return is_array($product) ? $product : null; + } + + public function hasPurchased(string $ownerRef, string $productKey): bool + { + return CrmPurchase::has($ownerRef, $productKey); + } + + public function priceMinor(string $productKey): int + { + return (int) ($this->product($productKey)['price_minor'] ?? 0); + } + + public function purchase(string $ownerRef, string $productKey): bool + { + if ($this->hasPurchased($ownerRef, $productKey)) { + return true; + } + + $product = $this->product($productKey); + if (! $product) { + return false; + } + + $costMinor = (int) ($product['price_minor'] ?? 0); + + if ($costMinor > 0) { + try { + if (! $this->billing->canAfford($ownerRef, $costMinor)) { + return false; + } + + $charged = $this->billing->debit( + $ownerRef, + $costMinor, + 'purchase', + 'crm-purchase-'.$productKey.'-'.$ownerRef, + 'CRM: '.($product['name'] ?? $productKey), + ); + + if (! $charged) { + return false; + } + } catch (\Throwable) { + return false; + } + } + + CrmPurchase::create([ + 'owner_ref' => $ownerRef, + 'product_key' => $productKey, + 'cost_minor' => $costMinor, + 'purchased_at' => now(), + ]); + + return true; + } +} diff --git a/app/Services/Comms/EmailService.php b/app/Services/Comms/EmailService.php new file mode 100644 index 0000000..bf33e0b --- /dev/null +++ b/app/Services/Comms/EmailService.php @@ -0,0 +1,32 @@ +send(new ContactMessageMail($subject, $body, $fromName, $replyTo)); + + return true; + } catch (\Throwable $e) { + Log::warning('CRM email send failed', ['to' => $to, 'error' => $e->getMessage()]); + + return false; + } + } +} diff --git a/app/Services/Comms/SmsService.php b/app/Services/Comms/SmsService.php new file mode 100644 index 0000000..4bea672 --- /dev/null +++ b/app/Services/Comms/SmsService.php @@ -0,0 +1,67 @@ +normalise($to); + if ($apiKey === '' || $msisdn === null) { + return false; + } + + try { + $res = Http::timeout(20) + ->withHeaders(['api-key' => $apiKey]) + ->acceptJson() + ->post(rtrim((string) config('arkesel.base_url', 'https://sms.arkesel.com'), '/').'/api/v2/sms/send', [ + 'sender' => $sender, + 'message' => $message, + 'recipients' => [$msisdn], + ]); + + return $res->successful() && ($res->json('status') === 'success'); + } catch (\Throwable $e) { + Log::warning('CRM SMS send failed', ['to' => $msisdn, 'error' => $e->getMessage()]); + + return false; + } + } + + /** Normalise to E.164-without-plus (e.g. 233XXXXXXXXX). */ + private function normalise(string $to): ?string + { + $digits = preg_replace('/\D+/', '', $to) ?? ''; + $country = (string) config('arkesel.default_country_code', '233'); + + if (strlen($digits) < 9) { + return null; + } + + if (str_starts_with($digits, $country)) { + return $digits; + } + + if (str_starts_with($digits, '0')) { + return $country.substr($digits, 1); + } + + if (strlen($digits) === 9) { + return $country.$digits; + } + + return $digits; + } +} diff --git a/app/Services/CrossApp/CrossAppLinkService.php b/app/Services/CrossApp/CrossAppLinkService.php new file mode 100644 index 0000000..02ff916 --- /dev/null +++ b/app/Services/CrossApp/CrossAppLinkService.php @@ -0,0 +1,112 @@ +loadMissing(['customer', 'lines']); + + $customer = $deal->customer; + $lines = $deal->lines->map(fn ($line) => [ + 'description' => $line->description, + 'quantity' => (float) $line->quantity, + 'unit_price' => number_format($line->unit_price_minor / 100, 2, '.', ''), + ])->values()->all(); + + if ($lines === [] && (int) $deal->value_minor > 0) { + $lines = [[ + 'description' => $deal->title, + 'quantity' => 1, + 'unit_price' => number_format($deal->value_minor / 100, 2, '.', ''), + ]]; + } + + $prefill = CrmPrefillCodec::encode([ + 'kind' => 'invoice', + 'crm_customer_id' => $customer?->id, + 'client_name' => $customer?->name ?: $deal->title, + 'client_email' => $customer?->email, + 'client_address' => $customer ? $this->formatAddress($customer) : null, + 'notes' => 'Invoice for CRM deal: '.$deal->title, + 'payment_enabled' => true, + 'lines' => $lines, + ]); + + return LadillAppUrl::connect('invoice', '/invoices/create?prefill='.urlencode($prefill)); + } + + public function merchantStorefrontFromDeal(Deal $deal): string + { + $deal->loadMissing('customer'); + + $amount = number_format(((int) $deal->value_minor) / 100, 2, '.', ''); + $itemName = $deal->title; + + $prefill = CrmPrefillCodec::encode([ + 'kind' => 'merchant_storefront', + 'type' => 'shop', + 'label' => 'Payment — '.$deal->title, + 'shop_title' => $deal->customer?->company ?: $deal->title, + 'sections' => [[ + 'name' => 'Payment', + 'items' => [[ + 'name' => $itemName, + 'description' => $deal->notes ?: 'Payment for '.$deal->title, + 'price' => $amount, + 'image_path' => '', + ]], + ]], + 'accepts_payment' => true, + ]); + + return LadillAppUrl::connect('merchant', '/storefronts/create?prefill='.urlencode($prefill)); + } + + public function businessQrFromContact(Customer $contact): string + { + $prefill = CrmPrefillCodec::encode([ + 'kind' => 'qr_business', + 'type' => 'business', + 'label' => 'Card — '.$contact->name, + 'name' => $contact->company ?: $contact->name, + 'phone' => $contact->phone, + 'email' => $contact->email, + 'address' => $this->formatAddress($contact, singleLine: true), + ]); + + return LadillAppUrl::connect('qrplus', '/qr-codes/create?prefill='.urlencode($prefill)); + } + + public function eventsHubForContact(Customer $contact): string + { + $query = http_build_query(array_filter([ + 'search' => $contact->company ?: $contact->name, + ])); + + return LadillAppUrl::connect('events', '/attendees'.($query !== '' ? '?'.$query : '')); + } + + private function formatAddress(Customer $contact, bool $singleLine = false): ?string + { + $parts = array_filter([ + $contact->address_line1, + $contact->address_line2, + trim(implode(', ', array_filter([$contact->city, $contact->region, $contact->country]))), + ]); + + if ($parts === []) { + return null; + } + + return $singleLine + ? implode(', ', $parts) + : implode("\n", $parts); + } +} diff --git a/app/Services/Events/ServiceEventSignature.php b/app/Services/Events/ServiceEventSignature.php new file mode 100644 index 0000000..524859b --- /dev/null +++ b/app/Services/Events/ServiceEventSignature.php @@ -0,0 +1,20 @@ + + */ + public function overview(string $ownerRef, int $organizationId, ?int $branchId = null): array + { + $stats = $this->dashboard->forOrganization($ownerRef, $organizationId, $branchId); + + $today = Ticket::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->whereDate('issued_at', today()); + + $bySource = (clone $today) + ->selectRaw('source, COUNT(*) as total') + ->groupBy('source') + ->pluck('total', 'source') + ->all(); + + $byPriority = (clone $today) + ->selectRaw('priority, COUNT(*) as total') + ->groupBy('priority') + ->pluck('total', 'priority') + ->all(); + + $appointmentsToday = QueueAppointment::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->whereDate('scheduled_at', today()) + ->count(); + + $feedbackAvg = CustomerFeedback::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->whereHas('ticket', fn ($t) => $t->where('branch_id', $branchId))) + ->where('created_at', '>=', now()->subDays(30)) + ->avg('rating'); + + $queueLoad = ServiceQueue::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->where('is_active', true) + ->withCount(['tickets as waiting_count' => fn ($q) => $q->where('status', 'waiting')]) + ->orderByDesc('waiting_count') + ->limit(5) + ->get() + ->map(fn ($q) => ['name' => $q->name, 'waiting' => $q->waiting_count]) + ->all(); + + return array_merge($stats, [ + 'tickets_by_source' => $bySource, + 'tickets_by_priority' => $byPriority, + 'appointments_today' => $appointmentsToday, + 'feedback_avg_30d' => round((float) $feedbackAvg, 1), + 'busiest_queues' => $queueLoad, + ]); + } + + /** + * @return list + */ + public function dailyTrend(string $ownerRef, int $organizationId, int $days = 14, ?int $branchId = null): array + { + $from = now()->subDays($days - 1)->startOfDay(); + + $issued = Ticket::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->where('issued_at', '>=', $from) + ->selectRaw('DATE(issued_at) as d, COUNT(*) as c') + ->groupBy('d') + ->pluck('c', 'd'); + + $completed = Ticket::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->where('status', 'completed') + ->where('completed_at', '>=', $from) + ->selectRaw('DATE(completed_at) as d, COUNT(*) as c') + ->groupBy('d') + ->pluck('c', 'd'); + + $trend = []; + for ($i = 0; $i < $days; $i++) { + $date = $from->copy()->addDays($i)->toDateString(); + $trend[] = [ + 'date' => $date, + 'issued' => (int) ($issued[$date] ?? 0), + 'completed' => (int) ($completed[$date] ?? 0), + ]; + } + + return $trend; + } +} diff --git a/app/Services/Qms/AppointmentService.php b/app/Services/Qms/AppointmentService.php new file mode 100644 index 0000000..0a81fa0 --- /dev/null +++ b/app/Services/Qms/AppointmentService.php @@ -0,0 +1,64 @@ +status === 'scheduled', 422, 'Appointment cannot be checked in.'); + + $queue = $appointment->serviceQueue ?? $this->defaultQueue($appointment); + abort_unless($queue, 422, 'No queue configured for this appointment.'); + + $ticket = $this->engine->issueTicket($queue, $appointment->owner_ref, [ + 'customer_name' => $appointment->customer_name, + 'customer_phone' => $appointment->customer_phone, + 'customer_email' => $appointment->customer_email, + 'priority' => 'appointment', + 'source' => 'appointment', + 'actor_ref' => $actorRef, + 'metadata' => ['appointment_id' => $appointment->id], + ]); + + $appointment->update([ + 'status' => 'checked_in', + 'checked_in_at' => now(), + 'ticket_id' => $ticket->id, + 'service_queue_id' => $queue->id, + ]); + + AuditLogger::record($appointment->owner_ref, 'appointment.checked_in', $appointment->organization_id, $actorRef, QueueAppointment::class, $appointment->id); + + $org = $appointment->organization; + if ($org) { + app(StaffNotifier::class)->queueEvent( + $org, + 'Appointment checked in', + "{$appointment->customer_name} checked in for {$appointment->scheduled_at->format('H:i')}.", + route('qms.tickets.show', $ticket), + 'calendar', + ); + } + + return $ticket; + } + + protected function defaultQueue(QueueAppointment $appointment): ?ServiceQueue + { + return ServiceQueue::owned($appointment->owner_ref) + ->where('branch_id', $appointment->branch_id) + ->where('is_active', true) + ->orderBy('name') + ->first(); + } +} diff --git a/app/Services/Qms/AuditLogger.php b/app/Services/Qms/AuditLogger.php new file mode 100644 index 0000000..ddf1921 --- /dev/null +++ b/app/Services/Qms/AuditLogger.php @@ -0,0 +1,29 @@ + + */ + public function forOrganization(string $ownerRef, int $organizationId, ?int $branchId = null): array + { + $ticketQuery = Ticket::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)); + + $todayQuery = (clone $ticketQuery)->whereDate('issued_at', today()); + + $waiting = (clone $ticketQuery)->where('status', 'waiting')->count(); + $serving = (clone $ticketQuery)->whereIn('status', ['called', 'serving'])->count(); + $servedToday = (clone $todayQuery)->where('status', 'completed')->count(); + $noShowsToday = (clone $todayQuery)->where('status', 'no_show')->count(); + + $waitDiff = DatabaseTime::diffSeconds('issued_at', 'called_at'); + $avgWait = (clone $todayQuery) + ->where('status', 'completed') + ->whereNotNull('called_at') + ->selectRaw("AVG({$waitDiff}) as avg_wait") + ->value('avg_wait'); + + $activeBranches = Branch::owned($ownerRef) + ->where('organization_id', $organizationId) + ->where('is_active', true) + ->when($branchId, fn ($q) => $q->where('id', $branchId)) + ->count(); + + return [ + 'waiting' => $waiting, + 'serving' => $serving, + 'served_today' => $servedToday, + 'no_shows_today' => $noShowsToday, + 'avg_wait_seconds' => (int) round((float) $avgWait), + 'active_branches' => $activeBranches, + ]; + } +} diff --git a/app/Services/Qms/DeviceService.php b/app/Services/Qms/DeviceService.php new file mode 100644 index 0000000..c4f3615 --- /dev/null +++ b/app/Services/Qms/DeviceService.php @@ -0,0 +1,44 @@ +where('device_token', $token) + ->first(); + } + + public function recordHeartbeat(Device $device): void + { + $device->update([ + 'status' => 'online', + 'last_online_at' => now(), + ]); + } + + public function markStaleOffline(int $minutes = 10): int + { + return Device::query() + ->where('status', 'online') + ->where(function ($q) use ($minutes) { + $q->whereNull('last_online_at') + ->orWhere('last_online_at', '<', now()->subMinutes($minutes)); + }) + ->update(['status' => 'offline']); + } + + public function generateToken(Device $device): string + { + $token = Str::random(48); + $device->update(['device_token' => $token]); + + return $token; + } +} diff --git a/app/Services/Qms/DisplayService.php b/app/Services/Qms/DisplayService.php new file mode 100644 index 0000000..c2c6242 --- /dev/null +++ b/app/Services/Qms/DisplayService.php @@ -0,0 +1,78 @@ +where('access_token', $token) + ->where('is_active', true) + ->first(); + } + + public function touch(DisplayScreen $screen): void + { + $screen->update(['last_seen_at' => now()]); + } + + /** + * @return array + */ + public function payload(DisplayScreen $screen): array + { + $queueIds = $screen->service_queue_ids ?? []; + $queues = ServiceQueue::query() + ->whereIn('id', $queueIds) + ->where('is_active', true) + ->get(); + + $nowServing = Ticket::query() + ->whereIn('service_queue_id', $queueIds) + ->whereIn('status', ['called', 'serving']) + ->with(['counter', 'serviceQueue']) + ->orderByDesc('called_at') + ->limit(5) + ->get() + ->map(fn (Ticket $t) => [ + 'ticket_number' => $t->ticket_number, + 'queue_name' => $t->serviceQueue?->name, + 'counter' => $t->counter?->name, + ]); + + $waiting = Ticket::query() + ->whereIn('service_queue_id', $queueIds) + ->where('status', 'waiting') + ->count(); + + $avgWait = (int) Ticket::query() + ->whereIn('service_queue_id', $queueIds) + ->where('status', 'completed') + ->whereDate('issued_at', today()) + ->whereNotNull('called_at') + ->selectRaw('AVG(TIMESTAMPDIFF(SECOND, issued_at, called_at)) as avg_wait') + ->value('avg_wait'); + + return [ + 'screen' => [ + 'name' => $screen->name, + 'layout' => $screen->layout, + ], + 'now_serving' => $nowServing, + 'waiting_count' => $waiting, + 'estimated_wait_minutes' => $avgWait > 0 ? (int) ceil($avgWait / 60) : null, + 'queues' => $queues->map(fn (ServiceQueue $q) => [ + 'name' => $q->name, + 'prefix' => $q->prefix, + 'is_paused' => $q->is_paused, + ]), + 'announcements' => app(VoiceAnnouncementService::class)->pendingForBranch((int) $screen->branch_id), + 'updated_at' => now()->toIso8601String(), + ]; + } +} diff --git a/app/Services/Qms/OrganizationResolver.php b/app/Services/Qms/OrganizationResolver.php new file mode 100644 index 0000000..8adb5eb --- /dev/null +++ b/app/Services/Qms/OrganizationResolver.php @@ -0,0 +1,122 @@ +ownerRef(); + + $member = Member::where('user_ref', $ref)->first(); + if ($member) { + return Organization::find($member->organization_id); + } + + return Organization::owned($ref)->first(); + } + + public function forUser(User $user): Organization + { + return $this->resolveForUser($user) + ?? throw new \RuntimeException('No organization for user.'); + } + + public function isOnboarded(User $user): bool + { + $organization = $this->resolveForUser($user); + + return $organization !== null + && (bool) data_get($organization->settings, 'onboarded', false); + } + + public function memberFor(User $user, ?Organization $organization = null): ?Member + { + $organization ??= $this->resolveForUser($user); + if (! $organization) { + return null; + } + + return Member::where('organization_id', $organization->id) + ->where('user_ref', $user->ownerRef()) + ->first(); + } + + public function ensureOwnerMember(User $user, Organization $organization): Member + { + return Member::firstOrCreate( + [ + 'organization_id' => $organization->id, + 'user_ref' => $user->ownerRef(), + ], + [ + 'owner_ref' => $user->ownerRef(), + 'role' => 'org_admin', + ], + ); + } + + /** + * @param array $data + */ + public function completeOnboarding(User $user, array $data): Organization + { + $ref = $user->ownerRef(); + + $organization = Organization::create([ + 'owner_ref' => $ref, + 'name' => $data['organization_name'], + 'slug' => Str::slug($data['organization_name']).'-'.substr($ref, 0, 6), + 'timezone' => $data['timezone'] ?? config('app.timezone', 'UTC'), + 'settings' => [ + 'onboarded' => true, + 'industry' => $data['industry'] ?? 'custom', + 'appointment_mode' => $data['appointment_mode'] ?? 'hybrid', + ], + ]); + + $this->ensureOwnerMember($user, $organization); + + $branch = Branch::create([ + 'owner_ref' => $ref, + 'organization_id' => $organization->id, + 'name' => $data['branch_name'], + 'address' => $data['branch_address'] ?? null, + 'phone' => $data['branch_phone'] ?? null, + 'is_active' => true, + ]); + + Department::create([ + 'owner_ref' => $ref, + 'branch_id' => $branch->id, + 'name' => 'General Reception', + 'type' => 'reception', + 'is_active' => true, + ]); + + AuditLogger::record($ref, 'organization.created', $organization->id, $ref, Organization::class, $organization->id); + AuditLogger::record($ref, 'branch.created', $organization->id, $ref, Branch::class, $branch->id); + + return $organization; + } + + public function branchScope(?Member $member): ?int + { + if ($member === null) { + return null; + } + + if (in_array($member->role, ['super_admin', 'org_admin', 'supervisor'], true)) { + return null; + } + + return $member->branch_id; + } +} diff --git a/app/Services/Qms/PlanService.php b/app/Services/Qms/PlanService.php new file mode 100644 index 0000000..fceb085 --- /dev/null +++ b/app/Services/Qms/PlanService.php @@ -0,0 +1,42 @@ +settings, 'plan', 'free'); + } + + public function isPro(Organization $organization): bool + { + return $this->plan($organization) === 'pro'; + } + + public function maxBranches(Organization $organization): ?int + { + return config('qms.plans.'.$this->plan($organization).'.max_branches'); + } + + public function maxQueues(Organization $organization): ?int + { + return config('qms.plans.'.$this->plan($organization).'.max_queues'); + } + + public function canAddBranch(Organization $organization, int $currentCount): bool + { + $max = $this->maxBranches($organization); + + return $max === null || $currentCount < $max; + } + + public function canAddQueue(Organization $organization, int $currentCount): bool + { + $max = $this->maxQueues($organization); + + return $max === null || $currentCount < $max; + } +} diff --git a/app/Services/Qms/QmsPermissions.php b/app/Services/Qms/QmsPermissions.php new file mode 100644 index 0000000..9be31f0 --- /dev/null +++ b/app/Services/Qms/QmsPermissions.php @@ -0,0 +1,65 @@ +> */ + protected array $roleAbilities = [ + 'super_admin' => ['*'], + 'org_admin' => ['*'], + 'branch_manager' => [ + 'dashboard.view', 'queues.view', 'queues.manage', 'tickets.view', 'tickets.manage', + 'counters.view', 'counters.manage', 'console.use', 'displays.view', 'displays.manage', + 'appointments.view', 'appointments.manage', 'workflows.view', 'workflows.manage', + 'rules.view', 'rules.manage', 'reports.view', 'reports.export', 'feedback.view', + 'admin.branches.view', 'admin.branches.manage', 'admin.departments.view', 'admin.departments.manage', + 'admin.members.view', 'admin.members.manage', 'settings.view', 'settings.manage', 'audit.view', 'audit.export', + ], + 'receptionist' => [ + 'dashboard.view', 'queues.view', 'tickets.view', 'tickets.issue', + 'appointments.view', 'appointments.manage', + ], + 'queue_operator' => [ + 'dashboard.view', 'queues.view', 'queues.manage', 'tickets.view', 'tickets.manage', + 'console.use', 'displays.view', + ], + 'counter_staff' => [ + 'dashboard.view', 'queues.view', 'tickets.view', 'console.use', + ], + 'department_manager' => [ + 'dashboard.view', 'queues.view', 'queues.manage', 'tickets.view', 'tickets.manage', + 'counters.view', 'console.use', 'reports.view', + ], + 'security' => [ + 'dashboard.view', 'tickets.view', + ], + 'supervisor' => [ + 'dashboard.view', 'queues.view', 'tickets.view', 'tickets.manage', + 'counters.view', 'console.use', 'reports.view', 'reports.export', + 'feedback.view', 'audit.view', 'audit.export', + ], + ]; + + public function can(?Member $member, string $ability): bool + { + if ($member === null) { + return false; + } + + $abilities = $this->roleAbilities[$member->role] ?? []; + + if (in_array('*', $abilities, true)) { + return true; + } + + return in_array($ability, $abilities, true); + } + + public function isAdmin(?Member $member): bool + { + return $member !== null && in_array($member->role, ['super_admin', 'org_admin'], true); + } +} diff --git a/app/Services/Qms/QueueEngine.php b/app/Services/Qms/QueueEngine.php new file mode 100644 index 0000000..42a3ba9 --- /dev/null +++ b/app/Services/Qms/QueueEngine.php @@ -0,0 +1,386 @@ +lockForUpdate()->findOrFail($queue->id); + + if ($queue->is_paused || ! $queue->is_active) { + throw new \RuntimeException('Queue is not accepting tickets.'); + } + + $sourceQueueId = $queue->id; + [$queue, $attributes] = app(QueueRuleService::class)->apply($queue, $attributes); + app(WorkflowService::class)->attachOnIssue($queue, $attributes); + + if ($queue->id !== $sourceQueueId) { + $queue = ServiceQueue::query()->lockForUpdate()->findOrFail($queue->id); + } + + if ($queue->is_paused || ! $queue->is_active) { + throw new \RuntimeException('Queue is not accepting tickets.'); + } + + if ($queue->max_capacity) { + $waiting = Ticket::query() + ->where('service_queue_id', $queue->id) + ->whereIn('status', ['waiting', 'called', 'serving', 'on_hold']) + ->count(); + if ($waiting >= $queue->max_capacity) { + throw new \RuntimeException('Queue has reached maximum capacity.'); + } + } + + $queue->increment('ticket_sequence'); + $queue->refresh(); + + $number = sprintf('%s%03d', $queue->prefix, $queue->ticket_sequence); + $waitingCount = Ticket::query() + ->where('service_queue_id', $queue->id) + ->where('status', 'waiting') + ->count(); + $estimatedWait = $waitingCount * (int) $queue->avg_service_seconds; + + $ticket = Ticket::create([ + 'owner_ref' => $ownerRef, + 'organization_id' => $queue->organization_id, + 'branch_id' => $queue->branch_id, + 'service_queue_id' => $queue->id, + 'ticket_number' => $number, + 'status' => 'waiting', + 'priority' => $attributes['priority'] ?? 'walk_in', + 'position' => $waitingCount + 1, + 'customer_name' => $attributes['customer_name'] ?? null, + 'customer_phone' => $attributes['customer_phone'] ?? null, + 'customer_email' => $attributes['customer_email'] ?? null, + 'source' => $attributes['source'] ?? 'kiosk', + 'barcode' => $attributes['barcode'] ?? Str::upper(Str::random(10)), + 'estimated_wait_seconds' => $estimatedWait, + 'issued_at' => now(), + 'metadata' => $attributes['metadata'] ?? null, + ]); + + $this->recordEvent($ticket, 'issued', $attributes['actor_ref'] ?? null); + + AuditLogger::record( + $ownerRef, + 'ticket.issued', + $queue->organization_id, + $attributes['actor_ref'] ?? null, + Ticket::class, + $ticket->id, + ['ticket_number' => $number, 'queue' => $queue->name], + ); + + $ticket = $ticket->fresh(['serviceQueue', 'branch']); + app(QueueNotificationService::class)->ticketIssued($ticket); + + return $ticket; + }); + } + + public function callNext(ServiceQueue $queue, Counter $counter, ?string $actorRef = null): ?Ticket + { + $ticket = $this->nextWaitingTicket($queue); + if (! $ticket) { + return null; + } + + return $this->callTicket($ticket, $counter, $actorRef); + } + + public function callTicket(Ticket $ticket, Counter $counter, ?string $actorRef = null): Ticket + { + $ticket->update([ + 'status' => 'called', + 'counter_id' => $counter->id, + 'called_at' => now(), + ]); + + $counter->update(['status' => 'busy']); + $this->recordEvent($ticket, 'called', $actorRef, $counter->id); + $this->audit($ticket, 'ticket.called', $actorRef, ['counter_id' => $counter->id]); + + app(VoiceAnnouncementService::class)->announceCalled($ticket, $counter); + + $ticket = $ticket->fresh(['serviceQueue', 'counter']); + app(QueueNotificationService::class)->ticketCalled($ticket); + $this->notifyWaitingPositions($ticket->serviceQueue); + + return $ticket; + } + + public function recall(Ticket $ticket, ?string $actorRef = null): Ticket + { + $ticket->load(['serviceQueue', 'counter']); + $this->recordEvent($ticket, 'recalled', $actorRef, $ticket->counter_id); + $this->audit($ticket, 'ticket.recalled', $actorRef); + + if ($ticket->counter) { + app(VoiceAnnouncementService::class)->announceCalled($ticket, $ticket->counter); + } + + return $ticket->fresh(['serviceQueue', 'counter']); + } + + public function startServing(Ticket $ticket, ?string $actorRef = null): Ticket + { + $ticket->update([ + 'status' => 'serving', + 'serving_started_at' => now(), + ]); + $this->recordEvent($ticket, 'serving', $actorRef, $ticket->counter_id); + app(ServiceSessionTracker::class)->start($ticket, $actorRef); + + return $ticket->fresh(); + } + + public function hold(Ticket $ticket, ?string $actorRef = null): Ticket + { + $ticket->update(['status' => 'on_hold']); + $this->recordEvent($ticket, 'held', $actorRef, $ticket->counter_id); + $this->audit($ticket, 'ticket.held', $actorRef); + + return $ticket->fresh(); + } + + public function skip(Ticket $ticket, ?string $actorRef = null): Ticket + { + $ticket->update([ + 'status' => 'waiting', + 'counter_id' => null, + 'called_at' => null, + ]); + $this->recordEvent($ticket, 'skipped', $actorRef); + $this->audit($ticket, 'ticket.skipped', $actorRef); + + return $ticket->fresh(); + } + + public function completeTicket(Ticket $ticket, ?string $actorRef = null): Ticket + { + $ticket->update([ + 'status' => 'completed', + 'completed_at' => now(), + ]); + + if ($ticket->counter_id) { + Counter::where('id', $ticket->counter_id)->update(['status' => 'available']); + } + + $this->recordEvent($ticket, 'completed', $actorRef, $ticket->counter_id); + $this->audit($ticket, 'ticket.completed', $actorRef); + app(ServiceSessionTracker::class)->endForTicket($ticket); + + $ticket = $ticket->fresh(['serviceQueue', 'counter']); + app(QueueNotificationService::class)->ticketCompleted($ticket); + app(WorkflowService::class)->advanceAfterCompletion($ticket); + + return $ticket; + } + + public function markNoShow(Ticket $ticket, ?string $actorRef = null): Ticket + { + $ticket->update([ + 'status' => 'no_show', + 'completed_at' => now(), + ]); + + if ($ticket->counter_id) { + Counter::where('id', $ticket->counter_id)->update(['status' => 'available']); + } + + $this->recordEvent($ticket, 'no_show', $actorRef, $ticket->counter_id); + $this->audit($ticket, 'ticket.no_show', $actorRef); + + $ticket = $ticket->fresh(['serviceQueue', 'counter']); + app(QueueNotificationService::class)->ticketMissed($ticket); + + return $ticket; + } + + public function cancel(Ticket $ticket, ?string $actorRef = null): Ticket + { + $ticket->update(['status' => 'cancelled', 'completed_at' => now()]); + $this->recordEvent($ticket, 'cancelled', $actorRef, $ticket->counter_id); + $this->audit($ticket, 'ticket.cancelled', $actorRef); + + return $ticket->fresh(); + } + + public function transfer( + Ticket $ticket, + ServiceQueue $toQueue, + ?Counter $counter = null, + ?string $reason = null, + ?string $actorRef = null, + ): Ticket { + $fromQueueId = $ticket->service_queue_id; + + $ticket->update([ + 'service_queue_id' => $toQueue->id, + 'branch_id' => $toQueue->branch_id, + 'status' => 'waiting', + 'counter_id' => null, + 'called_at' => null, + 'serving_started_at' => null, + ]); + + DB::table('queue_ticket_transfers')->insert([ + 'owner_ref' => $ticket->owner_ref, + 'ticket_id' => $ticket->id, + 'from_service_queue_id' => $fromQueueId, + 'to_service_queue_id' => $toQueue->id, + 'from_counter_id' => $counter?->id, + 'reason' => $reason, + 'transferred_by' => $actorRef, + 'transferred_at' => now(), + ]); + + $this->recordEvent($ticket, 'transferred', $actorRef, $counter?->id, [ + 'to_queue_id' => $toQueue->id, + 'reason' => $reason, + ]); + $this->audit($ticket, 'ticket.transferred', $actorRef, ['to_queue' => $toQueue->name]); + + return $ticket->fresh(['serviceQueue']); + } + + public function pauseQueue(ServiceQueue $queue, ?string $actorRef = null): ServiceQueue + { + $queue->update(['is_paused' => true]); + AuditLogger::record($queue->owner_ref, 'service_queue.paused', $queue->organization_id, $actorRef, ServiceQueue::class, $queue->id); + + $org = Organization::find($queue->organization_id); + if ($org) { + app(StaffNotifier::class)->queueEvent( + $org, + 'Queue paused', + "{$queue->name} is no longer accepting tickets.", + route('qms.queues.show', $queue), + 'pause', + ); + } + + return $queue->fresh(); + } + + public function resumeQueue(ServiceQueue $queue, ?string $actorRef = null): ServiceQueue + { + $queue->update(['is_paused' => false]); + AuditLogger::record($queue->owner_ref, 'service_queue.resumed', $queue->organization_id, $actorRef, ServiceQueue::class, $queue->id); + + return $queue->fresh(); + } + + public function delayArrival(Ticket $ticket, int $minutes, ?string $actorRef = null): Ticket + { + $metadata = $ticket->metadata ?? []; + $metadata['delayed_until'] = now()->addMinutes($minutes)->toIso8601String(); + $ticket->update(['metadata' => $metadata]); + $this->recordEvent($ticket, 'delayed', $actorRef, null, ['minutes' => $minutes]); + + return $ticket->fresh(); + } + + /** + * @return list + */ + public function waitingTickets(ServiceQueue $queue, int $limit = 50): array + { + return Ticket::query() + ->where('service_queue_id', $queue->id) + ->where('status', 'waiting') + ->orderByRaw($this->priorityOrderSql()) + ->orderBy('issued_at') + ->limit($limit) + ->get() + ->all(); + } + + protected function nextWaitingTicket(ServiceQueue $queue): ?Ticket + { + return Ticket::query() + ->where('service_queue_id', $queue->id) + ->where('status', 'waiting') + ->orderByRaw($this->priorityOrderSql()) + ->orderBy('issued_at') + ->first(); + } + + protected function priorityOrderSql(): string + { + $priorityOrder = array_keys(config('qms.ticket_priorities')); + + if (\Illuminate\Support\Facades\DB::connection()->getDriverName() === 'sqlite') { + $cases = collect($priorityOrder) + ->map(fn ($p, $i) => "WHEN priority = '{$p}' THEN {$i}") + ->implode(' '); + + return "CASE {$cases} ELSE 99 END"; + } + + return 'FIELD(priority, '.implode(',', array_map(fn ($p) => "'{$p}'", $priorityOrder)).')'; + } + + protected function notifyWaitingPositions(?ServiceQueue $queue): void + { + if (! $queue) { + return; + } + + $notifications = app(QueueNotificationService::class); + foreach ($this->waitingTickets($queue, 20) as $position => $waitingTicket) { + $notifications->customersAhead($waitingTicket, $position); + } + } + + protected function audit(Ticket $ticket, string $action, ?string $actorRef, ?array $metadata = null): void + { + AuditLogger::record( + $ticket->owner_ref, + $action, + $ticket->organization_id, + $actorRef, + Ticket::class, + $ticket->id, + $metadata, + ); + } + + /** + * @param array|null $metadata + */ + protected function recordEvent( + Ticket $ticket, + string $event, + ?string $actorRef = null, + ?int $counterId = null, + ?array $metadata = null, + ): void { + TicketEvent::create([ + 'owner_ref' => $ticket->owner_ref, + 'ticket_id' => $ticket->id, + 'event' => $event, + 'actor_ref' => $actorRef, + 'counter_id' => $counterId, + 'metadata' => $metadata, + 'created_at' => now(), + ]); + } +} diff --git a/app/Services/Qms/QueueNotificationService.php b/app/Services/Qms/QueueNotificationService.php new file mode 100644 index 0000000..31a6974 --- /dev/null +++ b/app/Services/Qms/QueueNotificationService.php @@ -0,0 +1,90 @@ +notify($ticket, 'issued', $this->message('issued', $ticket)); + } + + public function ticketCalled(Ticket $ticket): void + { + $counter = $ticket->counter?->name ?? 'the counter'; + $this->notify($ticket, 'called', $this->message('called', $ticket, [':counter' => $counter])); + } + + public function customersAhead(Ticket $ticket, int $ahead): void + { + if ($ahead > 2) { + return; + } + $this->notify($ticket, 'almost_ready', $this->message('almost_ready', $ticket, [':ahead' => (string) $ahead])); + } + + public function ticketCompleted(Ticket $ticket): void + { + $feedbackUrl = route('qms.feedback.show', $ticket->qr_token); + $this->notify($ticket, 'completed', $this->message('completed', $ticket, [':feedback_url' => $feedbackUrl])); + } + + public function ticketMissed(Ticket $ticket): void + { + $this->notify($ticket, 'missed', $this->message('missed', $ticket)); + } + + public function appointmentReminder(\App\Models\QueueAppointment $appointment): void + { + $message = "Reminder: your appointment at {$appointment->scheduled_at->format('M j, H:i')} is coming up. Ref: {$appointment->reference}"; + $this->sendToContact($appointment->customer_phone, $appointment->customer_email, $message); + } + + protected function notify(Ticket $ticket, string $event, string $message): void + { + if (! data_get($ticket->serviceQueue?->settings, 'notifications_enabled', true)) { + return; + } + + $this->sendToContact($ticket->customer_phone, $ticket->customer_email, $message); + + Log::info('Queue notification sent', [ + 'event' => $event, + 'ticket' => $ticket->ticket_number, + ]); + } + + protected function sendToContact(?string $phone, ?string $email, string $message): void + { + if ($phone) { + $this->sms->send($phone, $message); + } + if ($email) { + $this->email->send($email, 'Ladill Queue update', $message); + } + } + + /** + * @param array $replace + */ + protected function message(string $key, Ticket $ticket, array $replace = []): string + { + $template = config("qms.notification_templates.{$key}", 'Queue update for ticket :ticket.'); + $replace = array_merge([ + ':ticket' => $ticket->ticket_number, + ':queue' => $ticket->serviceQueue?->name ?? 'Queue', + ], $replace); + + return str_replace(array_keys($replace), array_values($replace), $template); + } +} diff --git a/app/Services/Qms/QueueRuleService.php b/app/Services/Qms/QueueRuleService.php new file mode 100644 index 0000000..928ad85 --- /dev/null +++ b/app/Services/Qms/QueueRuleService.php @@ -0,0 +1,145 @@ + $attributes + * @return array{0: ServiceQueue, 1: array} + */ + public function apply(ServiceQueue $queue, array $attributes): array + { + $rules = QueueRule::owned($queue->owner_ref) + ->where('service_queue_id', $queue->id) + ->where('is_active', true) + ->orderBy('sort_order') + ->get(); + + foreach ($rules as $rule) { + match ($rule->rule_type) { + 'priority_boost' => $this->applyPriorityBoost($rule, $attributes), + 'overflow' => [$queue, $attributes] = $this->applyOverflow($queue, $rule, $attributes), + 'routing' => [$queue, $attributes] = $this->applyRouting($queue, $rule, $attributes), + 'capacity' => [$queue, $attributes] = $this->applyCapacity($queue, $rule, $attributes), + default => null, + }; + } + + return [$queue, $attributes]; + } + + /** + * @param array $attributes + */ + protected function applyPriorityBoost(QueueRule $rule, array &$attributes): void + { + $boostTo = data_get($rule->actions, 'priority'); + $when = data_get($rule->conditions, 'source'); + + if ($boostTo && (! $when || ($attributes['source'] ?? null) === $when)) { + $attributes['priority'] = $boostTo; + } + } + + /** + * @param array $attributes + * @return array{0: ServiceQueue, 1: array} + */ + protected function applyOverflow(ServiceQueue $queue, QueueRule $rule, array $attributes): array + { + $threshold = (int) data_get($rule->conditions, 'waiting_threshold', 0); + $overflowQueueId = data_get($rule->actions, 'overflow_queue_id'); + + if (! $overflowQueueId || $threshold <= 0) { + return [$queue, $attributes]; + } + + if ($this->waitingCount($queue) >= $threshold) { + $overflow = $this->activeQueue($overflowQueueId); + if ($overflow) { + return [$overflow, $attributes]; + } + } + + return [$queue, $attributes]; + } + + /** + * @param array $attributes + * @return array{0: ServiceQueue, 1: array} + */ + protected function applyRouting(ServiceQueue $queue, QueueRule $rule, array $attributes): array + { + $targetId = data_get($rule->actions, 'target_queue_id'); + if (! $targetId) { + return [$queue, $attributes]; + } + + $whenSource = data_get($rule->conditions, 'source'); + $whenPriority = data_get($rule->conditions, 'priority'); + + if ($whenSource && ($attributes['source'] ?? null) !== $whenSource) { + return [$queue, $attributes]; + } + if ($whenPriority && ($attributes['priority'] ?? null) !== $whenPriority) { + return [$queue, $attributes]; + } + + $target = $this->activeQueue((int) $targetId); + + return $target ? [$target, $attributes] : [$queue, $attributes]; + } + + /** + * @param array $attributes + * @return array{0: ServiceQueue, 1: array} + */ + protected function applyCapacity(ServiceQueue $queue, QueueRule $rule, array $attributes): array + { + $maxWaiting = (int) data_get($rule->conditions, 'max_waiting', 0); + if ($maxWaiting <= 0) { + return [$queue, $attributes]; + } + + if ($this->waitingCount($queue) < $maxWaiting) { + return [$queue, $attributes]; + } + + $whenFull = data_get($rule->actions, 'when_full', 'reject'); + if ($whenFull === 'reject') { + throw new \RuntimeException('Queue has reached the configured waiting limit.'); + } + + $overflowId = data_get($rule->actions, 'overflow_queue_id'); + if ($overflowId) { + $overflow = $this->activeQueue((int) $overflowId); + if ($overflow) { + return [$overflow, $attributes]; + } + } + + throw new \RuntimeException('Queue has reached the configured waiting limit.'); + } + + protected function waitingCount(ServiceQueue $queue): int + { + return Ticket::query() + ->where('service_queue_id', $queue->id) + ->where('status', 'waiting') + ->count(); + } + + protected function activeQueue(int $queueId): ?ServiceQueue + { + $target = ServiceQueue::find($queueId); + + return ($target && $target->is_active && ! $target->is_paused) ? $target : null; + } +} diff --git a/app/Services/Qms/ReportService.php b/app/Services/Qms/ReportService.php new file mode 100644 index 0000000..b4024c4 --- /dev/null +++ b/app/Services/Qms/ReportService.php @@ -0,0 +1,166 @@ + + */ + public function ticketsReport(string $ownerRef, int $organizationId, Carbon $from, Carbon $to, ?int $branchId = null): array + { + $base = Ticket::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->whereBetween('issued_at', [$from, $to]); + + $waitDiff = DatabaseTime::diffSeconds('issued_at', 'called_at'); + $serviceDiff = DatabaseTime::diffSeconds('serving_started_at', 'completed_at'); + + return [ + 'total_issued' => (clone $base)->count(), + 'completed' => (clone $base)->where('status', 'completed')->count(), + 'no_show' => (clone $base)->where('status', 'no_show')->count(), + 'cancelled' => (clone $base)->where('status', 'cancelled')->count(), + 'avg_wait_seconds' => (int) round((float) (clone $base) + ->where('status', 'completed') + ->whereNotNull('called_at') + ->selectRaw("AVG({$waitDiff}) as v") + ->value('v')), + 'avg_service_seconds' => (int) round((float) (clone $base) + ->where('status', 'completed') + ->whereNotNull('serving_started_at') + ->whereNotNull('completed_at') + ->selectRaw("AVG({$serviceDiff}) as v") + ->value('v')), + ]; + } + + /** + * @return array + */ + public function waitTimesReport(string $ownerRef, int $organizationId, Carbon $from, Carbon $to, ?int $branchId = null): array + { + $hourExpr = DatabaseTime::hourOf('issued_at'); + $waitDiff = DatabaseTime::diffSeconds('issued_at', 'called_at'); + + $rows = Ticket::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->whereBetween('issued_at', [$from, $to]) + ->where('status', 'completed') + ->whereNotNull('called_at') + ->selectRaw("{$hourExpr} as hour, AVG({$waitDiff}) as avg_wait") + ->groupBy('hour') + ->orderBy('hour') + ->get(); + + $peak = $rows->sortByDesc('avg_wait')->first(); + + return [ + 'hourly' => $rows->map(fn ($r) => ['hour' => (int) $r->hour, 'avg_wait_seconds' => (int) round((float) $r->avg_wait)])->values()->all(), + 'peak_hour' => $peak ? (int) $peak->hour : null, + 'peak_avg_wait_seconds' => $peak ? (int) round((float) $peak->avg_wait) : 0, + ]; + } + + /** + * @return array + */ + public function countersReport(string $ownerRef, int $organizationId, Carbon $from, Carbon $to, ?int $branchId = null): array + { + $counters = Counter::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->withCount(['tickets as served_count' => function ($q) use ($from, $to) { + $q->where('status', 'completed') + ->whereBetween('completed_at', [$from, $to]); + }]) + ->orderByDesc('served_count') + ->get(); + + return [ + 'counters' => $counters->map(fn ($c) => [ + 'name' => $c->name, + 'served' => $c->served_count, + ])->all(), + ]; + } + + /** + * @return array + */ + public function appointmentsReport(string $ownerRef, int $organizationId, Carbon $from, Carbon $to, ?int $branchId = null): array + { + $base = QueueAppointment::owned($ownerRef) + ->where('organization_id', $organizationId) + ->when($branchId, fn ($q) => $q->where('branch_id', $branchId)) + ->whereBetween('scheduled_at', [$from, $to]); + + return [ + 'total' => (clone $base)->count(), + 'checked_in' => (clone $base)->where('status', 'checked_in')->count(), + 'completed' => (clone $base)->where('status', 'completed')->count(), + 'cancelled' => (clone $base)->where('status', 'cancelled')->count(), + 'no_show' => (clone $base)->where('status', 'no_show')->count(), + ]; + } + + /** + * @return array + */ + public function feedbackReport(string $ownerRef, int $organizationId, Carbon $from, Carbon $to, ?int $branchId = null): array + { + $base = CustomerFeedback::owned($ownerRef) + ->where('organization_id', $organizationId) + ->whereBetween('created_at', [$from, $to]) + ->when($branchId, function ($q) use ($branchId) { + $q->whereHas('ticket', fn ($t) => $t->where('branch_id', $branchId)); + }); + + $count = (clone $base)->count(); + $avgRating = (clone $base)->avg('rating'); + + return [ + 'responses' => $count, + 'avg_rating' => $count ? round((float) $avgRating, 1) : 0, + 'avg_service_quality' => round((float) (clone $base)->avg('service_quality'), 1), + 'avg_wait_experience' => round((float) (clone $base)->avg('wait_experience'), 1), + 'avg_staff_professionalism' => round((float) (clone $base)->avg('staff_professionalism'), 1), + ]; + } + + /** + * @return array + */ + public function serviceSessionsReport(string $ownerRef, int $organizationId, Carbon $from, Carbon $to, ?int $branchId = null): array + { + $base = ServiceSession::owned($ownerRef) + ->whereBetween('started_at', [$from, $to]) + ->whereHas('ticket', function ($q) use ($organizationId, $branchId) { + $q->where('organization_id', $organizationId); + if ($branchId) { + $q->where('branch_id', $branchId); + } + }); + + $completed = (clone $base)->whereNotNull('ended_at'); + + return [ + 'sessions' => (clone $base)->count(), + 'completed_sessions' => (clone $completed)->count(), + 'avg_duration_seconds' => (int) round((float) (clone $completed)->avg('duration_seconds')), + 'total_service_seconds' => (int) (clone $completed)->sum('duration_seconds'), + ]; + } +} diff --git a/app/Services/Qms/ServiceSessionTracker.php b/app/Services/Qms/ServiceSessionTracker.php new file mode 100644 index 0000000..a1b22b4 --- /dev/null +++ b/app/Services/Qms/ServiceSessionTracker.php @@ -0,0 +1,41 @@ + $ticket->owner_ref, + 'ticket_id' => $ticket->id, + 'counter_id' => $ticket->counter_id, + 'staff_ref' => $staffRef, + 'started_at' => now(), + ]); + } + + public function endForTicket(Ticket $ticket): ?ServiceSession + { + $session = ServiceSession::query() + ->where('ticket_id', $ticket->id) + ->whereNull('ended_at') + ->latest('started_at') + ->first(); + + if (! $session) { + return null; + } + + $ended = now(); + $session->update([ + 'ended_at' => $ended, + 'duration_seconds' => $session->started_at->diffInSeconds($ended), + ]); + + return $session->fresh(); + } +} diff --git a/app/Services/Qms/StaffNotifier.php b/app/Services/Qms/StaffNotifier.php new file mode 100644 index 0000000..da1ada3 --- /dev/null +++ b/app/Services/Qms/StaffNotifier.php @@ -0,0 +1,40 @@ + $roles + */ + public function notifyOrganization( + Organization $organization, + Notification $notification, + array $roles = ['org_admin', 'branch_manager', 'supervisor'], + ): void { + $refs = Member::query() + ->where('organization_id', $organization->id) + ->whereIn('role', $roles) + ->pluck('user_ref'); + + User::query() + ->whereIn('public_id', $refs) + ->each(fn (User $user) => $user->notify($notification)); + } + + public function queueEvent( + Organization $organization, + string $title, + string $message, + ?string $url = null, + string $icon = 'bell', + ): void { + $this->notifyOrganization($organization, new QueueStaffNotification($title, $message, $url, $icon)); + } +} diff --git a/app/Services/Qms/TicketPresenter.php b/app/Services/Qms/TicketPresenter.php new file mode 100644 index 0000000..a70b27f --- /dev/null +++ b/app/Services/Qms/TicketPresenter.php @@ -0,0 +1,40 @@ + + */ + public static function toArray(Ticket $ticket, bool $includeQr = true): array + { + return [ + 'uuid' => $ticket->uuid, + 'ticket_number' => $ticket->ticket_number, + 'status' => $ticket->status, + 'priority' => $ticket->priority, + 'position' => $ticket->position, + 'customer_name' => $ticket->customer_name, + 'customer_phone' => $ticket->customer_phone, + 'source' => $ticket->source, + 'estimated_wait_seconds' => $ticket->estimated_wait_seconds, + 'issued_at' => $ticket->issued_at?->toIso8601String(), + 'called_at' => $ticket->called_at?->toIso8601String(), + 'queue' => $ticket->serviceQueue ? [ + 'uuid' => $ticket->serviceQueue->uuid, + 'name' => $ticket->serviceQueue->name, + 'prefix' => $ticket->serviceQueue->prefix, + 'color' => $ticket->serviceQueue->color, + ] : null, + 'counter' => $ticket->counter ? [ + 'uuid' => $ticket->counter->uuid, + 'name' => $ticket->counter->name, + ] : null, + 'track_url' => $includeQr ? route('qms.mobile.show', $ticket->qr_token) : null, + 'barcode' => $ticket->barcode, + ]; + } +} diff --git a/app/Services/Qms/VoiceAnnouncementService.php b/app/Services/Qms/VoiceAnnouncementService.php new file mode 100644 index 0000000..4394059 --- /dev/null +++ b/app/Services/Qms/VoiceAnnouncementService.php @@ -0,0 +1,69 @@ +serviceQueue?->settings, 'announcement_locale', 'en'); + $message = $this->buildMessage($ticket, $counter, $locale); + + return VoiceAnnouncement::create([ + 'owner_ref' => $ticket->owner_ref, + 'organization_id' => $ticket->organization_id, + 'branch_id' => $ticket->branch_id, + 'ticket_id' => $ticket->id, + 'locale' => $locale, + 'message' => $message, + 'voice' => data_get($ticket->serviceQueue?->settings, 'voice', 'female'), + 'volume' => (int) data_get($ticket->serviceQueue?->settings, 'announcement_volume', 80), + 'repeat_count' => (int) data_get($ticket->serviceQueue?->settings, 'announcement_repeat', 1), + 'status' => 'pending', + ]); + } + + protected function buildMessage(Ticket $ticket, Counter $counter, string $locale): string + { + $templates = config('qms.announcement_templates'); + $template = $templates[$locale] ?? $templates['en']; + + return str_replace( + [':ticket', ':counter'], + [$ticket->ticket_number, $counter->name], + $template, + ); + } + + /** + * @return list> + */ + public function pendingForBranch(int $branchId, int $limit = 10): array + { + return VoiceAnnouncement::query() + ->where('branch_id', $branchId) + ->where('status', 'pending') + ->orderBy('id') + ->limit($limit) + ->get() + ->map(fn (VoiceAnnouncement $a) => [ + 'id' => $a->id, + 'message' => $a->message, + 'locale' => $a->locale, + 'voice' => $a->voice, + 'volume' => $a->volume, + 'repeat_count' => $a->repeat_count, + ]) + ->all(); + } + + public function markPlayed(VoiceAnnouncement $announcement): void + { + $announcement->update(['status' => 'played', 'played_at' => now()]); + } +} diff --git a/app/Services/Qms/WorkflowService.php b/app/Services/Qms/WorkflowService.php new file mode 100644 index 0000000..d5cd6b4 --- /dev/null +++ b/app/Services/Qms/WorkflowService.php @@ -0,0 +1,99 @@ + $attributes + */ + public function attachOnIssue(ServiceQueue $queue, array &$attributes): void + { + if (data_get($attributes, 'metadata.workflow_id')) { + return; + } + + $workflow = Workflow::query() + ->where('owner_ref', $queue->owner_ref) + ->where('organization_id', $queue->organization_id) + ->where('is_active', true) + ->when($queue->branch_id, fn ($q) => $q->where(fn ($inner) => $inner->whereNull('branch_id')->orWhere('branch_id', $queue->branch_id))) + ->whereHas('steps', fn ($q) => $q->where('service_queue_id', $queue->id)) + ->first(); + + if (! $workflow) { + return; + } + + $firstStep = $workflow->steps() + ->where('service_queue_id', $queue->id) + ->orderBy('sort_order') + ->first(); + + if (! $firstStep) { + return; + } + + $metadata = $attributes['metadata'] ?? []; + $metadata['workflow_id'] = $workflow->id; + $metadata['workflow_step'] = $firstStep->sort_order; + $attributes['metadata'] = $metadata; + } + + /** Advance completed ticket to the next workflow step queue, if configured. */ + public function advanceAfterCompletion(Ticket $ticket): ?Ticket + { + $workflowId = data_get($ticket->metadata, 'workflow_id'); + $stepOrder = (int) data_get($ticket->metadata, 'workflow_step', 0); + + if (! $workflowId) { + return null; + } + + $workflow = Workflow::find($workflowId); + if (! $workflow || ! $workflow->is_active) { + return null; + } + + $nextStep = WorkflowStep::where('workflow_id', $workflow->id) + ->where('sort_order', '>', $stepOrder) + ->orderBy('sort_order') + ->first(); + + if (! $nextStep?->service_queue_id) { + return null; + } + + $toQueue = ServiceQueue::find($nextStep->service_queue_id); + if (! $toQueue) { + return null; + } + + $transferred = $this->engine->transfer($ticket, $toQueue, null, 'Workflow advance', null); + $transferred->update([ + 'metadata' => array_merge($transferred->metadata ?? [], [ + 'workflow_id' => $workflow->id, + 'workflow_step' => $nextStep->sort_order, + ]), + ]); + + return $transferred; + } + + /** + * @return array + */ + public function industryTemplate(string $template): array + { + return config("qms.workflow_templates.{$template}", config('qms.workflow_templates.custom', [])); + } +} diff --git a/app/Support/DatabaseTime.php b/app/Support/DatabaseTime.php new file mode 100644 index 0000000..b4b849d --- /dev/null +++ b/app/Support/DatabaseTime.php @@ -0,0 +1,24 @@ +getDriverName()) { + 'sqlite' => "CAST((julianday({$toColumn}) - julianday({$fromColumn})) * 86400 AS INTEGER)", + default => "TIMESTAMPDIFF(SECOND, {$fromColumn}, {$toColumn})", + }; + } + + public static function hourOf(string $column): string + { + return match (DB::connection()->getDriverName()) { + 'sqlite' => "CAST(strftime('%H', {$column}) AS INTEGER)", + default => "HOUR({$column})", + }; + } +} diff --git a/app/Support/LadillAppUrl.php b/app/Support/LadillAppUrl.php new file mode 100644 index 0000000..c894f57 --- /dev/null +++ b/app/Support/LadillAppUrl.php @@ -0,0 +1,15 @@ + $title, + ]; + } +} diff --git a/app/Support/OrganizationBranding.php b/app/Support/OrganizationBranding.php new file mode 100644 index 0000000..fe30877 --- /dev/null +++ b/app/Support/OrganizationBranding.php @@ -0,0 +1,50 @@ +logo_path && Storage::disk('public')->exists($organization->logo_path)) { + $version = $organization->updated_at?->getTimestamp() ?? time(); + + return Storage::disk('public')->url($organization->logo_path).'?v='.$version; + } + + $path = public_path(self::DEFAULT_LOGO); + + return asset(self::DEFAULT_LOGO).'?v='.(@filemtime($path) ?: '1'); + } + + public static function logoAlt(Organization $organization): string + { + return $organization->logo_path ? $organization->name : 'Ladill Queue'; + } + + public static function hasCustomLogo(Organization $organization): bool + { + return $organization->logo_path !== null + && Storage::disk('public')->exists($organization->logo_path); + } + + public static function storeLogo(Organization $organization, UploadedFile $file): string + { + self::deleteStoredLogo($organization); + + return $file->store('queue/organizations/'.$organization->id, 'public'); + } + + public static function deleteStoredLogo(Organization $organization): void + { + if ($organization->logo_path) { + Storage::disk('public')->delete($organization->logo_path); + } + } +} diff --git a/app/Support/UserProfileMenu.php b/app/Support/UserProfileMenu.php new file mode 100644 index 0000000..9461caf --- /dev/null +++ b/app/Support/UserProfileMenu.php @@ -0,0 +1,163 @@ +> + */ + public static function items(?Authenticatable $user = null): array + { + $user ??= auth()->user(); + + if (! $user) { + return []; + } + + $items = []; + + foreach ([ + ['label' => 'Home', 'path' => '', 'host' => 'home'], + ['label' => 'Profile', 'path' => 'profile'], + ['label' => 'Account Settings', 'path' => 'account-settings'], + ['label' => 'Dashboard', 'path' => 'dashboard'], + ['label' => 'Billing', 'path' => 'billing'], + ] as $link) { + $href = self::platformUrl($link['host'] ?? 'account', $link['path']); + + if (self::isCurrentMenuLink($link, $href)) { + continue; + } + + $items[] = [ + 'type' => 'link', + 'label' => $link['label'], + 'href' => $href, + ]; + } + + if (Route::has((string) config('billing.wallet_balance_route', 'wallet.balance'))) { + $items[] = ['type' => 'wallet']; + } + + if (self::userIsAdmin($user)) { + $adminHref = self::platformUrl('account', 'admin'); + + if (! self::isCurrentMenuLink(['path' => 'admin', 'host' => 'account'], $adminHref)) { + $items[] = [ + 'type' => 'link', + 'label' => 'Admin', + 'href' => $adminHref, + ]; + } + } + + if (Route::has('logout')) { + $items[] = [ + 'type' => 'logout', + 'label' => 'Logout', + 'action' => route('logout'), + ]; + } + + return $items; + } + + private static function platformUrl(string $host, string $path = ''): string + { + if ($host === 'home') { + if (function_exists('ladill_home_url')) { + return ladill_home_url($path); + } + + $domain = config('app.home_domain'); + if (! $domain) { + $platform = (string) config('app.platform_domain', parse_url((string) config('app.url', ''), PHP_URL_HOST) ?: ''); + $domain = $platform !== '' ? 'home.'.$platform : (string) config('app.account_domain'); + } + + return self::absoluteUrl((string) $domain, $path); + } + + if (function_exists('ladill_account_url')) { + return ladill_account_url($path); + } + + return self::absoluteUrl((string) config('app.account_domain'), $path); + } + + /** + * Hide a menu link when the signed-in user is already on that destination. + * + * @param array{label?: string, path?: string, host?: string} $link + */ + private static function isCurrentMenuLink(array $link, string $href): bool + { + if (app()->runningInConsole() && ! app()->runningUnitTests()) { + return false; + } + + $request = request(); + if (! $request) { + return false; + } + + $linkHost = strtolower((string) parse_url($href, PHP_URL_HOST)); + $currentHost = strtolower($request->getHost()); + + if ($linkHost === '' || $linkHost !== $currentHost) { + return false; + } + + $currentPath = trim($request->getPathInfo(), '/'); + $targetPath = trim((string) parse_url($href, PHP_URL_PATH), '/'); + + if (($link['host'] ?? 'account') === 'home') { + return $currentPath === ''; + } + + if (($link['path'] ?? '') === 'dashboard') { + return in_array($currentPath, ['dashboard', 'account'], true) + || ($targetPath !== '' && self::pathMatchesSection($currentPath, $targetPath)); + } + + return self::pathMatchesSection($currentPath, $targetPath); + } + + private static function pathMatchesSection(string $currentPath, string $targetPath): bool + { + if ($targetPath === '') { + return $currentPath === ''; + } + + return $currentPath === $targetPath + || str_starts_with($currentPath, $targetPath.'/'); + } + + private static function absoluteUrl(string $domain, string $path = ''): string + { + $base = 'https://'.trim($domain, '/'); + + if ($path === '') { + return $base; + } + + return $base.'/'.ltrim($path, '/'); + } + + private static function userIsAdmin(Authenticatable $user): bool + { + if (method_exists($user, 'isAdmin')) { + return $user->isAdmin(); + } + + return (bool) ($user->is_admin ?? false); + } +} diff --git a/app/Support/helpers.php b/app/Support/helpers.php new file mode 100644 index 0000000..3637066 --- /dev/null +++ b/app/Support/helpers.php @@ -0,0 +1,47 @@ +handleCommand(new ArgvInput); + +exit($status); diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..01c03df --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,58 @@ +withRouting( + web: __DIR__.'/../routes/web.php', + api: __DIR__.'/../routes/api.php', + commands: __DIR__.'/../routes/console.php', + health: '/up', + then: function () { + \Illuminate\Support\Facades\Route::bind('ticket', function (string $value) { + return \App\Models\Ticket::where('uuid', $value)->firstOrFail(); + }); + \Illuminate\Support\Facades\Route::bind('serviceQueue', function (string $value) { + return \App\Models\ServiceQueue::where('uuid', $value)->firstOrFail(); + }); + \Illuminate\Support\Facades\Route::bind('counter', function (string $value) { + return \App\Models\Counter::where('uuid', $value)->firstOrFail(); + }); + \Illuminate\Support\Facades\Route::bind('device', function (string $value) { + return \App\Models\Device::where('uuid', $value)->firstOrFail(); + }); + \Illuminate\Support\Facades\Route::bind('appointment', function (string $value) { + return \App\Models\QueueAppointment::where('uuid', $value)->firstOrFail(); + }); + \Illuminate\Support\Facades\Route::bind('workflow', function (string $value) { + return \App\Models\Workflow::where('uuid', $value)->firstOrFail(); + }); + \Illuminate\Support\Facades\Route::bind('display', function (string $value) { + return \App\Models\DisplayScreen::where('uuid', $value)->firstOrFail(); + }); + }, + ) + ->withMiddleware(function (Middleware $middleware): void { + $middleware->redirectGuestsTo(fn (Request $request) => route('sso.connect', [ + 'redirect' => $request->fullUrl(), + ])); + $middleware->web(append: [ + SetActingAccount::class, + ]); + $middleware->alias([ + 'auth.service' => AuthenticateService::class, + 'platform.session' => EnsurePlatformSession::class, + 'qms.setup' => \App\Http\Middleware\EnsureOrganizationSetup::class, + 'qms.ability' => \App\Http\Middleware\EnsureQmsAbility::class, + 'qms.device' => \App\Http\Middleware\AuthenticateQmsDevice::class, + ]); + }) + ->withExceptions(function (Exceptions $exceptions): void { + // + })->create(); diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100644 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": "chillerlan/php-qrcode", + "version": "5.0.5", + "source": { + "type": "git", + "url": "https://github.com/chillerlan/php-qrcode.git", + "reference": "7b66282572fc14075c0507d74d9837dab25b38d6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/chillerlan/php-qrcode/zipball/7b66282572fc14075c0507d74d9837dab25b38d6", + "reference": "7b66282572fc14075c0507d74d9837dab25b38d6", + "shasum": "" + }, + "require": { + "chillerlan/php-settings-container": "^2.1.6 || ^3.2.1", + "ext-mbstring": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "chillerlan/php-authenticator": "^4.3.1 || ^5.2.1", + "ext-fileinfo": "*", + "phan/phan": "^5.5.2", + "phpcompatibility/php-compatibility": "10.x-dev", + "phpmd/phpmd": "^2.15", + "phpunit/phpunit": "^9.6", + "setasign/fpdf": "^1.8.2", + "slevomat/coding-standard": "^8.23.0", + "squizlabs/php_codesniffer": "^4.0.0" + }, + "suggest": { + "chillerlan/php-authenticator": "Yet another Google authenticator! Also creates URIs for mobile apps.", + "setasign/fpdf": "Required to use the QR FPDF output.", + "simple-icons/simple-icons": "SVG icons that you can use to embed as logos in the QR Code" + }, + "type": "library", + "autoload": { + "psr-4": { + "chillerlan\\QRCode\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT", + "Apache-2.0" + ], + "authors": [ + { + "name": "Kazuhiko Arase", + "homepage": "https://github.com/kazuhikoarase/qrcode-generator" + }, + { + "name": "ZXing Authors", + "homepage": "https://github.com/zxing/zxing" + }, + { + "name": "Ashot Khanamiryan", + "homepage": "https://github.com/khanamiryan/php-qrcode-detector-decoder" + }, + { + "name": "Smiley", + "email": "smiley@chillerlan.net", + "homepage": "https://github.com/codemasher" + }, + { + "name": "Contributors", + "homepage": "https://github.com/chillerlan/php-qrcode/graphs/contributors" + } + ], + "description": "A QR Code generator and reader with a user-friendly API. PHP 7.4+", + "homepage": "https://github.com/chillerlan/php-qrcode", + "keywords": [ + "phpqrcode", + "qr", + "qr code", + "qr-reader", + "qrcode", + "qrcode-generator", + "qrcode-reader" + ], + "support": { + "docs": "https://php-qrcode.readthedocs.io", + "issues": "https://github.com/chillerlan/php-qrcode/issues", + "source": "https://github.com/chillerlan/php-qrcode" + }, + "funding": [ + { + "url": "https://ko-fi.com/codemasher", + "type": "Ko-Fi" + } + ], + "time": "2025-11-23T23:51:44+00:00" + }, + { + "name": "chillerlan/php-settings-container", + "version": "3.3.0", + "source": { + "type": "git", + "url": "https://github.com/chillerlan/php-settings-container.git", + "reference": "a0a487cbf5344f721eb504bf0f59bada40c381b7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/a0a487cbf5344f721eb504bf0f59bada40c381b7", + "reference": "a0a487cbf5344f721eb504bf0f59bada40c381b7", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^8.1" + }, + "require-dev": { + "phan/phan": "^5.5.2", + "phpmd/phpmd": "^2.15", + "phpstan/phpstan": "^2.1.31", + "phpstan/phpstan-deprecation-rules": "^2.0.3", + "phpunit/phpunit": "^10.5", + "slevomat/coding-standard": "^8.22", + "squizlabs/php_codesniffer": "^4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "chillerlan\\Settings\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Smiley", + "email": "smiley@chillerlan.net", + "homepage": "https://github.com/codemasher" + } + ], + "description": "A container class for immutable settings objects. Not a DI container.", + "homepage": "https://github.com/chillerlan/php-settings-container", + "keywords": [ + "Settings", + "configuration", + "container", + "helper", + "property hook" + ], + "support": { + "issues": "https://github.com/chillerlan/php-settings-container/issues", + "source": "https://github.com/chillerlan/php-settings-container" + }, + "funding": [ + { + "url": "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4", + "type": "custom" + }, + { + "url": "https://ko-fi.com/codemasher", + "type": "ko_fi" + } + ], + "time": "2026-03-20T21:10:52+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.11.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "c987f8ce84b8434fa430795eca0f3430663da72b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/c987f8ce84b8434fa430795eca0f3430663da72b", + "reference": "c987f8ce84b8434fa430795eca0f3430663da72b", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^2.5", + "guzzlehttp/psr7": "^2.11", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0", + "symfony/polyfill-php80": "^1.24" + }, + "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", + "guzzlehttp/test-server": "^0.4", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.52 || ^9.6.34", + "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.11.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": "2026-06-02T12:40:51+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.5.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "4360e982f87f5f258bf872d094647791db2f4c8e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/4360e982f87f5f258bf872d094647791db2f4c8e", + "reference": "4360e982f87f5f258bf872d094647791db2f4c8e", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.52 || ^9.6.34" + }, + "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.5.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": "2026-06-02T12:23:43+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.11.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/bbb5e61349fa5cb822b3e87842b951088b76b81f", + "reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0", + "symfony/polyfill-php80": "^1.24" + }, + "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": "1.1.0", + "jshttp/mime-db": "1.54.0.1", + "phpunit/phpunit": "^8.5.52 || ^9.6.34" + }, + "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.11.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-06-02T12:30:48+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.6", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "eef7f87bab6f204eba3c39224d8075c70c637946" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/eef7f87bab6f204eba3c39224d8075c70c637946", + "reference": "eef7f87bab6f204eba3c39224d8075c70c637946", + "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.52 || ^9.6.34", + "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.6" + }, + "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": "2026-05-23T22:00:21+00:00" + }, + { + "name": "laravel/framework", + "version": "v12.61.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "e8472ca9774452fe50841d9bdced060679f4d58d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/e8472ca9774452fe50841d9bdced060679f4d58d", + "reference": "e8472ca9774452fe50841d9bdced060679f4d58d", + "shasum": "" + }, + "require": { + "brick/math": "^0.11|^0.12|^0.13|^0.14", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.4", + "egulias/email-validator": "^3.2.1|^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/uri-template": "^1.0", + "laravel/prompts": "^0.3.0", + "laravel/serializable-closure": "^1.3|^2.0", + "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.2", + "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.2.0", + "symfony/error-handler": "^7.2.0", + "symfony/finder": "^7.2.0", + "symfony/http-foundation": "^7.2.0", + "symfony/http-kernel": "^7.2.0", + "symfony/mailer": "^7.2.0", + "symfony/mime": "^7.2.0", + "symfony/polyfill-php83": "^1.33", + "symfony/polyfill-php84": "^1.34", + "symfony/polyfill-php85": "^1.34", + "symfony/process": "^7.2.0", + "symfony/routing": "^7.2.0", + "symfony/uid": "^7.2.0", + "symfony/var-dumper": "^7.2.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/promises": "^2.0.3", + "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": "^10.9.0", + "pda/pheanstalk": "^5.0.6|^7.0.0", + "php-http/discovery": "^1.15", + "phpstan/phpstan": "^2.1.41", + "phpunit/phpunit": "^10.5.35|^11.5.3|^12.0.1", + "predis/predis": "^2.3|^3.0", + "resend/resend-php": "^0.10.0|^1.0", + "symfony/cache": "^7.2.0", + "symfony/http-client": "^7.2.0", + "symfony/psr-http-message-bridge": "^7.2.0", + "symfony/translation": "^7.2.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 (^5.0).", + "php-http/discovery": "Required to use PSR-7 bridging features (^1.15).", + "phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.5.3|^12.0.1).", + "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.2).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.2).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.2).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.2).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.2).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.2)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "12.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-06-04T14:22:52+00:00" + }, + { + "name": "laravel/prompts", + "version": "v0.3.18", + "source": { + "type": "git", + "url": "https://github.com/laravel/prompts.git", + "reference": "a19af51bb144bf87f08397921fa619f85c7d4e72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/prompts/zipball/a19af51bb144bf87f08397921fa619f85c7d4e72", + "reference": "a19af51bb144bf87f08397921fa619f85c7d4e72", + "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.18" + }, + "time": "2026-05-19T00:47:18+00:00" + }, + { + "name": "laravel/sanctum", + "version": "v4.3.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/sanctum.git", + "reference": "2a9bccc18e9907808e0018dd15fa643937886b1e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/2a9bccc18e9907808e0018dd15fa643937886b1e", + "reference": "2a9bccc18e9907808e0018dd15fa643937886b1e", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/console": "^11.0|^12.0|^13.0", + "illuminate/contracts": "^11.0|^12.0|^13.0", + "illuminate/database": "^11.0|^12.0|^13.0", + "illuminate/support": "^11.0|^12.0|^13.0", + "php": "^8.2", + "symfony/console": "^7.0|^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.6", + "orchestra/testbench": "^9.15|^10.8|^11.0", + "phpstan/phpstan": "^1.10" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sanctum\\SanctumServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sanctum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.", + "keywords": [ + "auth", + "laravel", + "sanctum" + ], + "support": { + "issues": "https://github.com/laravel/sanctum/issues", + "source": "https://github.com/laravel/sanctum" + }, + "time": "2026-04-30T11:46:25+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v2.0.13", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "b566ee0dd251f3c4078bed003a7ce015f5ea6dce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/b566ee0dd251f3c4078bed003a7ce015f5ea6dce", + "reference": "b566ee0dd251f3c4078bed003a7ce015f5ea6dce", + "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-16T14:03:50+00:00" + }, + { + "name": "laravel/tinker", + "version": "v2.11.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "c9f80cc835649b5c1842898fb043f8cc098dd741" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/c9f80cc835649b5c1842898fb043f8cc098dd741", + "reference": "c9f80cc835649b5c1842898fb043f8cc098dd741", + "shasum": "" + }, + "require": { + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^7.2.5|^8.0", + "psy/psysh": "^0.11.1|^0.12.0", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0|^7.0|^8.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.5.8|^9.3.3|^10.0" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0)." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + } + }, + "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/v2.11.1" + }, + "time": "2026-02-06T14:12:35+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.34.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e", + "reference": "2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e", + "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.34.0" + }, + "time": "2026-05-14T10:28:08+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": "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.4", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "7da6c396d7ebe142bc857c20479d5e70a5e1aac7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/7da6c396d7ebe142bc857c20479d5e70a5e1aac7", + "reference": "7da6c396d7ebe142bc857c20479d5e70a5e1aac7", + "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.4" + }, + "time": "2026-05-11T20:49:54+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": "paragonie/constant_time_encoding", + "version": "v3.1.3", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77", + "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77", + "shasum": "" + }, + "require": { + "php": "^8" + }, + "require-dev": { + "infection/infection": "^0", + "nikic/php-fuzzer": "^0", + "phpunit/phpunit": "^9|^10|^11", + "vimeo/psalm": "^4|^5|^6" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2025-09-24T15:06:41+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v9.99.100", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", + "shasum": "" + }, + "require": { + "php": ">= 7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2020-10-15T08:29:30+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": "phpseclib/phpseclib", + "version": "3.0.52", + "source": { + "type": "git", + "url": "https://github.com/phpseclib/phpseclib.git", + "reference": "2adaefc83df2ec548558307690f376dd7d4f4fce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/2adaefc83df2ec548558307690f376dd7d4f4fce", + "reference": "2adaefc83df2ec548558307690f376dd7d4f4fce", + "shasum": "" + }, + "require": { + "paragonie/constant_time_encoding": "^1|^2|^3", + "paragonie/random_compat": "^1.4|^2.0|^9.99.99", + "php": ">=5.6.1" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "suggest": { + "ext-dom": "Install the DOM extension to load XML formatted public keys.", + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", + "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", + "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." + }, + "type": "library", + "autoload": { + "files": [ + "phpseclib/bootstrap.php" + ], + "psr-4": { + "phpseclib3\\": "phpseclib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Lead Developer" + }, + { + "name": "Patrick Monnerat", + "email": "pm@datasphere.ch", + "role": "Developer" + }, + { + "name": "Andreas Fischer", + "email": "bantu@phpbb.com", + "role": "Developer" + }, + { + "name": "Hans-Jürgen Petrich", + "email": "petrich@tronic-media.com", + "role": "Developer" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com", + "role": "Developer" + } + ], + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", + "homepage": "http://phpseclib.sourceforge.net", + "keywords": [ + "BigInteger", + "aes", + "asn.1", + "asn1", + "blowfish", + "crypto", + "cryptography", + "encryption", + "rsa", + "security", + "sftp", + "signature", + "signing", + "ssh", + "twofish", + "x.509", + "x509" + ], + "support": { + "issues": "https://github.com/phpseclib/phpseclib/issues", + "source": "https://github.com/phpseclib/phpseclib/tree/3.0.52" + }, + "funding": [ + { + "url": "https://github.com/terrafrost", + "type": "github" + }, + { + "url": "https://www.patreon.com/phpseclib", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib", + "type": "tidelift" + } + ], + "time": "2026-04-27T07:02:15+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.23", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "4dcc0f08047d52bbde475eda481146fd8e27e1a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/4dcc0f08047d52bbde475eda481146fd8e27e1a4", + "reference": "4dcc0f08047d52bbde475eda481146fd8e27e1a4", + "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.23" + }, + "time": "2026-05-23T13:41:31+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": "symfony/clock", + "version": "v8.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/clock.git", + "reference": "701ef4de9705d6c32292ebee5e8044094a09fbf6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/clock/zipball/701ef4de9705d6c32292ebee5e8044094a09fbf6", + "reference": "701ef4de9705d6c32292ebee5e8044094a09fbf6", + "shasum": "" + }, + "require": { + "php": ">=8.4.1", + "psr/clock": "^1.0" + }, + "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/v8.1.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": "2026-05-29T05:06:50+00:00" + }, + { + "name": "symfony/console", + "version": "v7.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "85095d2573eaefaf35e40b9513a9bf09f72cd217" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/85095d2573eaefaf35e40b9513a9bf09f72cd217", + "reference": "85095d2573eaefaf35e40b9513a9bf09f72cd217", + "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.13" + }, + "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-05-24T08:56:14+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v8.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "dc0e2be45c9b5588c82414f02ac574b4b986abcd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/dc0e2be45c9b5588c82414f02ac574b4b986abcd", + "reference": "dc0e2be45c9b5588c82414f02ac574b4b986abcd", + "shasum": "" + }, + "require": { + "php": ">=8.4.1" + }, + "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/v8.1.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": "2026-05-29T05:06:50+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.7.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/50f59d1f3ca46d41ac911f97a78626b6756af35b", + "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.7-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.7.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": "2026-04-13T15:52:40+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": "v8.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "f249ae3f680958b6f1f9dd76e5747cf0695b4102" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f249ae3f680958b6f1f9dd76e5747cf0695b4102", + "reference": "f249ae3f680958b6f1f9dd76e5747cf0695b4102", + "shasum": "" + }, + "require": { + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/event-dispatcher-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/security-http": "<7.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": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/error-handler": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/framework-bundle": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^7.4|^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/v8.1.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": "2026-05-29T05:06:50+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.7.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/ccba7060602b7fed0b03c85bf025257f76d9ef32", + "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32", + "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.7-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.7.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": "2026-01-05T13:30:16+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.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "bc354f47c62301e990b7874fa662326368508e2c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/bc354f47c62301e990b7874fa662326368508e2c", + "reference": "bc354f47c62301e990b7874fa662326368508e2c", + "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.13" + }, + "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-05-24T11:20:33+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v7.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "9df847980c436451f4f51d1284491bb4356dd989" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/9df847980c436451f4f51d1284491bb4356dd989", + "reference": "9df847980c436451f4f51d1284491bb4356dd989", + "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.13" + }, + "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-05-27T08:31:43+00:00" + }, + { + "name": "symfony/mailer", + "version": "v7.4.12", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "5cefb712a25f320579615ba9e1942abaeade7dff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/5cefb712a25f320579615ba9e1942abaeade7dff", + "reference": "5cefb712a25f320579615ba9e1942abaeade7dff", + "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.12" + }, + "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-05-20T07:20:23+00:00" + }, + { + "name": "symfony/mime", + "version": "v7.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "a845722765c4f6b2ce88beaf4f4479975b186770" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/a845722765c4f6b2ce88beaf4f4479975b186770", + "reference": "a845722765c4f6b2ce88beaf4f4479975b186770", + "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.13" + }, + "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-05-23T16:22:37+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", + "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.37.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": "2026-04-10T16:19:22+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.38.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "e9247d281d694a5120554d9afaf54e070e88a603" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e9247d281d694a5120554d9afaf54e070e88a603", + "reference": "e9247d281d694a5120554d9afaf54e070e88a603", + "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.38.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": "2026-05-26T05:58:03+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.38.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "dc21118016c039a66235cf93d96b435ffb282412" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/dc21118016c039a66235cf93d96b435ffb282412", + "reference": "dc21118016c039a66235cf93d96b435ffb282412", + "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.38.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": "2026-05-25T15:22:23+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.38.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "2d446c214bdbe5b71bde5011b060a05fece3ae6b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/2d446c214bdbe5b71bde5011b060a05fece3ae6b", + "reference": "2d446c214bdbe5b71bde5011b060a05fece3ae6b", + "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.38.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": "2026-05-25T13:48:31+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.38.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/14c5439eec4ccff081ac14eca2dc57feb2a66d92", + "reference": "14c5439eec4ccff081ac14eca2dc57feb2a66d92", + "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.38.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": "2026-05-26T12:51:13+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "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.37.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": "2026-04-10T16:19:22+00:00" + }, + { + "name": "symfony/polyfill-php83", + "version": "v1.38.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php83.git", + "reference": "8339098cae28673c15cce00d80734af0453054e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/8339098cae28673c15cce00d80734af0453054e2", + "reference": "8339098cae28673c15cce00d80734af0453054e2", + "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.38.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": "2026-05-26T12:51:13+00:00" + }, + { + "name": "symfony/polyfill-php84", + "version": "v1.38.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", + "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.38.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": "2026-05-26T12:51:13+00:00" + }, + { + "name": "symfony/polyfill-php85", + "version": "v1.38.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php85.git", + "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", + "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", + "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.38.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": "2026-05-26T02:25:22+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "26dfec253c4cf3e51b541b52ddf7e42cb0908e94" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/26dfec253c4cf3e51b541b52ddf7e42cb0908e94", + "reference": "26dfec253c4cf3e51b541b52ddf7e42cb0908e94", + "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.37.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": "2026-04-10T16:19:22+00:00" + }, + { + "name": "symfony/process", + "version": "v7.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "f5804be144caceb570f6747519999636b664f24c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/f5804be144caceb570f6747519999636b664f24c", + "reference": "f5804be144caceb570f6747519999636b664f24c", + "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.13" + }, + "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-05-23T16:05:06+00:00" + }, + { + "name": "symfony/routing", + "version": "v7.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "3a162171bb008e5e0f15dce6581373a4c0e8390d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/3a162171bb008e5e0f15dce6581373a4c0e8390d", + "reference": "3a162171bb008e5e0f15dce6581373a4c0e8390d", + "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.13" + }, + "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-05-24T11:20:33+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.7.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d25d82433a80eba6aa0e6c24b61d7370d99e444a", + "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a", + "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.7-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.7.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": "2026-03-28T09:44:51+00:00" + }, + { + "name": "symfony/string", + "version": "v8.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/afd5944f4005862d961efb85c8bbd5c523c4e3c9", + "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9", + "shasum": "" + }, + "require": { + "php": ">=8.4.1", + "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.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^7.4|^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/v8.1.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": "2026-05-29T05:06:50+00:00" + }, + { + "name": "symfony/translation", + "version": "v8.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "b2bd012ca28c4acae830ee1206a5b6e35dd99693" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/b2bd012ca28c4acae830ee1206a5b6e35dd99693", + "reference": "b2bd012ca28c4acae830ee1206a5b6e35dd99693", + "shasum": "" + }, + "require": { + "php": ">=8.4.1", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation-contracts": "^3.6.1" + }, + "conflict": { + "nikic/php-parser": "<5.0", + "symfony/http-client-contracts": "<2.5", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^5.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^7.4|^8.0", + "symfony/console": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/finder": "^7.4|^8.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^7.4|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^7.4|^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/v8.1.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": "2026-05-29T05:06:50+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.7.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/0ab302977a952b42fd51475c4ebac81f8da0a95d", + "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.7-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.7.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": "2026-01-05T13:30:16+00:00" + }, + { + "name": "symfony/uid", + "version": "v7.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "2676b524340abcfe4d6151ec698463cebafee439" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/2676b524340abcfe4d6151ec698463cebafee439", + "reference": "2676b524340abcfe4d6151ec698463cebafee439", + "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.9" + }, + "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-04-30T15:19:22+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.1.1", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "8e1051fe39379367aecf014f41744ce7539a856f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/8e1051fe39379367aecf014f41744ce7539a856f", + "reference": "8e1051fe39379367aecf014f41744ce7539a856f", + "shasum": "" + }, + "require": { + "php": ">=7.1.0" + }, + "require-dev": { + "phpunit/phpunit": "~8.5 || ~9.6 || ~10.5 || ~11.5" + }, + "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.1.1" + }, + "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": "2026-04-26T05:33:54+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/pail", + "version": "v1.2.7", + "source": { + "type": "git", + "url": "https://github.com/laravel/pail.git", + "reference": "2f7d27dada8effc48b8c424445a69cca7007daaa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pail/zipball/2f7d27dada8effc48b8c424445a69cca7007daaa", + "reference": "2f7d27dada8effc48b8c424445a69cca7007daaa", + "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-05-20T22:24:57+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.29.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "0770e9b7fafd50d4586881d456d6eb41c9247a80" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/0770e9b7fafd50d4586881d456d6eb41c9247a80", + "reference": "0770e9b7fafd50d4586881d456d6eb41c9247a80", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.2.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.95.1", + "illuminate/view": "^12.56.0", + "larastan/larastan": "^3.9.6", + "laravel-zero/framework": "^12.1.0", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^2.4.0", + "pestphp/pest": "^3.8.6", + "shipfastlabs/agent-detector": "^1.1.3" + }, + "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-04-20T15:26:14+00:00" + }, + { + "name": "laravel/sail", + "version": "v1.62.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/sail.git", + "reference": "3aaeefc979f8ba6586fbc5b6e0b1b3638058f98e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sail/zipball/3aaeefc979f8ba6586fbc5b6e0b1b3638058f98e", + "reference": "3aaeefc979f8ba6586fbc5b6e0b1b3638058f98e", + "shasum": "" + }, + "require": { + "illuminate/console": "^9.52.16|^10.0|^11.0|^12.0|^13.0", + "illuminate/contracts": "^9.52.16|^10.0|^11.0|^12.0|^13.0", + "illuminate/support": "^9.52.16|^10.0|^11.0|^12.0|^13.0", + "php": "^8.0", + "symfony/console": "^6.0|^7.0|^8.0", + "symfony/yaml": "^6.0|^7.0|^8.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0|^11.0", + "phpstan/phpstan": "^2.0" + }, + "bin": [ + "bin/sail" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", + "keywords": [ + "docker", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" + }, + "time": "2026-05-27T04:02:01+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.4", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "716af8f95a470e9094cfca09ed897b023be191a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/716af8f95a470e9094cfca09ed897b023be191a5", + "reference": "716af8f95a470e9094cfca09ed897b023be191a5", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.18.4", + "nunomaduro/termwind": "^2.4.0", + "php": "^8.2.0", + "symfony/console": "^7.4.8 || ^8.0.8" + }, + "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.6", + "laravel/framework": "^11.48.0 || ^12.56.0 || ^13.5.0", + "laravel/pint": "^1.29.1", + "orchestra/testbench-core": "^9.12.0 || ^10.12.1 || ^11.2.1", + "pestphp/pest": "^3.8.5 || ^4.4.3 || ^5.0.0", + "sebastian/environment": "^7.2.1 || ^8.0.4 || ^9.3.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-21T14:04:20+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": "11.0.12", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "2c1ed04922802c15e1de5d7447b4856de949cf56" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2c1ed04922802c15e1de5d7447b4856de949cf56", + "reference": "2c1ed04922802c15e1de5d7447b4856de949cf56", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^5.7.0", + "php": ">=8.2", + "phpunit/php-file-iterator": "^5.1.0", + "phpunit/php-text-template": "^4.0.1", + "sebastian/code-unit-reverse-lookup": "^4.0.1", + "sebastian/complexity": "^4.0.1", + "sebastian/environment": "^7.2.1", + "sebastian/lines-of-code": "^3.0.1", + "sebastian/version": "^5.0.2", + "theseer/tokenizer": "^1.3.1" + }, + "require-dev": { + "phpunit/phpunit": "^11.5.46" + }, + "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": "11.0.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/11.0.12" + }, + "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": "2025-12-24T07:01:01+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "5.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/2f3a64888c814fc235386b7387dd5b5ed92ad903", + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-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/5.1.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-02T13:52:54+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "5.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2", + "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^11.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "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": "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/5.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T05:07:44+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964", + "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.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": "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/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T05:08:43+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", + "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.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", + "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/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T05:09:35+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "11.5.55", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "adc7262fccc12de2b30f12a8aa0b33775d814f00" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/adc7262fccc12de2b30f12a8aa0b33775d814f00", + "reference": "adc7262fccc12de2b30f12a8aa0b33775d814f00", + "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.2", + "phpunit/php-code-coverage": "^11.0.12", + "phpunit/php-file-iterator": "^5.1.1", + "phpunit/php-invoker": "^5.0.1", + "phpunit/php-text-template": "^4.0.1", + "phpunit/php-timer": "^7.0.1", + "sebastian/cli-parser": "^3.0.2", + "sebastian/code-unit": "^3.0.3", + "sebastian/comparator": "^6.3.3", + "sebastian/diff": "^6.0.2", + "sebastian/environment": "^7.2.1", + "sebastian/exporter": "^6.3.2", + "sebastian/global-state": "^7.0.2", + "sebastian/object-enumerator": "^6.0.1", + "sebastian/recursion-context": "^6.0.3", + "sebastian/type": "^5.1.3", + "sebastian/version": "^5.0.2", + "staabm/side-effects-detector": "^1.0.5" + }, + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "11.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/11.5.55" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "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/phpunit", + "type": "tidelift" + } + ], + "time": "2026-02-18T12:37:06+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180", + "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.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 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/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T04:41:36+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/54391c61e4af8078e5b276ab082b6d3c54c9ad64", + "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.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 PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "security": "https://github.com/sebastianbergmann/code-unit/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-03-19T07:56:08+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "183a9b2632194febd219bb9246eee421dad8d45e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e", + "reference": "183a9b2632194febd219bb9246eee421dad8d45e", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.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" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T04:45:54+00:00" + }, + { + "name": "sebastian/comparator", + "version": "6.3.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2c95e1e86cb8dd41beb8d502057d1081ccc8eca9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2c95e1e86cb8dd41beb8d502057d1081ccc8eca9", + "reference": "2c95e1e86cb8dd41beb8d502057d1081ccc8eca9", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/diff": "^6.0", + "sebastian/exporter": "^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^11.4" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.3-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/6.3.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/comparator", + "type": "tidelift" + } + ], + "time": "2026-01-24T09:26:40+00:00" + }, + { + "name": "sebastian/complexity", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "ee41d384ab1906c68852636b6de493846e13e5a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0", + "reference": "ee41d384ab1906c68852636b6de493846e13e5a0", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.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 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/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T04:49:50+00:00" + }, + { + "name": "sebastian/diff", + "version": "6.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", + "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.0", + "symfony/process": "^4.2 || ^5" + }, + "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" + }, + { + "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/6.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T04:53:05+00:00" + }, + { + "name": "sebastian/environment", + "version": "7.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/a5c75038693ad2e8d4b6c15ba2403532647830c4", + "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.3" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.2-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/7.2.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/environment", + "type": "tidelift" + } + ], + "time": "2025-05-21T11:55:47+00:00" + }, + { + "name": "sebastian/exporter", + "version": "6.3.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "70a298763b40b213ec087c51c739efcaa90bcd74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/70a298763b40b213ec087c51c739efcaa90bcd74", + "reference": "70a298763b40b213ec087c51c739efcaa90bcd74", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/recursion-context": "^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^11.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.3-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/6.3.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:12:51+00:00" + }, + { + "name": "sebastian/global-state", + "version": "7.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "3be331570a721f9a4b5917f4209773de17f747d7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7", + "reference": "3be331570a721f9a4b5917f4209773de17f747d7", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^11.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": "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/7.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T04:57:36+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a", + "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.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/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T04:58:38+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "6.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "f5b498e631a74204185071eb41f33f38d64608aa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa", + "reference": "f5b498e631a74204185071eb41f33f38d64608aa", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^11.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" + } + ], + "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/6.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T05:00:13+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9", + "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.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" + } + ], + "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/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T05:01:32+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "6.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/f6458abbf32a6c8174f8f26261475dc133b3d9dc", + "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.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" + }, + { + "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/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/recursion-context", + "type": "tidelift" + } + ], + "time": "2025-08-13T04:42:22+00:00" + }, + { + "name": "sebastian/type", + "version": "5.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/f77d2d4e78738c98d9a68d2596fe5e8fa380f449", + "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "phpunit/phpunit": "^11.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-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/5.1.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:55:48+00:00" + }, + { + "name": "sebastian/version", + "version": "5.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c687e3387b99f5b03b6caa64c74b63e2936ff874", + "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "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 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/5.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-10-09T05:16:32+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": "symfony/yaml", + "version": "v8.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "efb42bd2c6f4f3ccfd4683583449938b5fc146b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/efb42bd2c6f4f3ccfd4683583449938b5fc146b0", + "reference": "efb42bd2c6f4f3ccfd4683583449938b5fc146b0", + "shasum": "" + }, + "require": { + "php": ">=8.4.1", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<7.4" + }, + "require-dev": { + "symfony/console": "^7.4|^8.0", + "yaml/yaml-test-suite": "*" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "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": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v8.1.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": "2026-05-29T05:06:50+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.3.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "b7489ce515e168639d17feec34b8847c326b0b3c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c", + "reference": "b7489ce515e168639d17feec34b8847c326b0b3c", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "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" + } + ], + "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/1.3.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2025-11-17T20:03:58+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.2" + }, + "platform-dev": {}, + "plugin-api-version": "2.9.0" +} diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..98a3bec --- /dev/null +++ b/config/app.php @@ -0,0 +1,132 @@ + env('APP_NAME', 'Ladill Queue'), + + /* + |-------------------------------------------------------------------------- + | 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'), + ], + + // Platform identity surfaces (Zoho One model). Ladill Frontdesk (frontdesk.ladill.com). + 'platform_domain' => env('PLATFORM_DOMAIN', parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com'), + 'auth_domain' => env('AUTH_DOMAIN', 'auth.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), + 'account_domain' => env('ACCOUNT_DOMAIN', 'account.'.(parse_url((string) env('PLATFORM_URL', 'https://ladill.com'), PHP_URL_HOST) ?: 'ladill.com')), + 'queue_domain' => env('QUEUE_DOMAIN', parse_url((string) env('APP_URL', 'https://queue.ladill.com'), PHP_URL_HOST) ?: 'queue.ladill.com'), + +]; diff --git a/config/arkesel.php b/config/arkesel.php new file mode 100644 index 0000000..b2dca9c --- /dev/null +++ b/config/arkesel.php @@ -0,0 +1,13 @@ + env('ARKESEL_API_KEY', ''), + 'sender_id' => env('ARKESEL_SENDER_ID', 'Ladill'), + 'base_url' => env('ARKESEL_BASE_URL', 'https://sms.arkesel.com'), + + // Default country code for normalising local numbers to E.164-without-plus. + 'default_country_code' => env('SMS_DEFAULT_COUNTRY_CODE', '233'), +]; 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/billing.php b/config/billing.php new file mode 100644 index 0000000..2e8a231 --- /dev/null +++ b/config/billing.php @@ -0,0 +1,11 @@ + env('BILLING_API_URL', 'https://ladill.com/api/billing'), + 'api_key' => env('BILLING_API_KEY_QUEUE'), + 'service' => 'queue', + 'wallet_balance_route' => 'qms.wallet.balance', + 'currency' => 'GHS', +]; diff --git a/config/cache.php b/config/cache.php new file mode 100644 index 0000000..b32aead --- /dev/null +++ b/config/cache.php @@ -0,0 +1,117 @@ + 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-'), + +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..7b97fd2 --- /dev/null +++ b/config/database.php @@ -0,0 +1,204 @@ + 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'), + ]) : [], + ], + + // Read-only access to platform admin settings (Paystack keys, etc.). + 'platform' => [ + 'driver' => 'mysql', + 'host' => env('PLATFORM_DB_HOST', env('DB_HOST', '127.0.0.1')), + 'port' => env('PLATFORM_DB_PORT', env('DB_PORT', '3306')), + 'database' => env('PLATFORM_DB_DATABASE', 'ladilldb'), + 'username' => env('PLATFORM_DB_USERNAME', env('DB_USERNAME', 'root')), + 'password' => env('PLATFORM_DB_PASSWORD', env('DB_PASSWORD', '')), + 'unix_socket' => env('PLATFORM_DB_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..4ebaa0b --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,87 @@ + 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, + ], + + 'qr' => [ + 'driver' => 'local', + 'root' => storage_path('app/private/qr'), + '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/identity.php b/config/identity.php new file mode 100644 index 0000000..ae5ea5f --- /dev/null +++ b/config/identity.php @@ -0,0 +1,7 @@ + env('IDENTITY_API_URL', 'https://ladill.com/api'), + 'api_key' => env('IDENTITY_API_KEY_QUEUE'), +]; diff --git a/config/ladill.php b/config/ladill.php new file mode 100644 index 0000000..9e39626 --- /dev/null +++ b/config/ladill.php @@ -0,0 +1,6 @@ + 'queue', + 'marketing_url' => env('LADILL_MARKETING_URL', 'https://ladill.com/products/queue'), +]; diff --git a/config/ladill_launcher.php b/config/ladill_launcher.php new file mode 100644 index 0000000..f100662 --- /dev/null +++ b/config/ladill_launcher.php @@ -0,0 +1,42 @@ +. +*/ + +$root = config('app.platform_domain', 'ladill.com'); + +return [ + 'apps' => [ + ['name' => 'Merchant', 'url' => 'https://merchant.'.$root.'/sso/connect?redirect='.urlencode('https://merchant.'.$root.'/dashboard'), 'icon' => 'merchant.svg'], + ['name' => 'POS', 'url' => 'https://pos.'.$root.'/sso/connect?redirect='.urlencode('https://pos.'.$root.'/dashboard'), 'icon' => 'pos.svg'], + ['name' => 'Mini', 'url' => 'https://mini.'.$root.'/sso/connect?redirect='.urlencode('https://mini.'.$root.'/dashboard'), 'icon' => 'mini.svg'], + ['name' => 'Give', 'url' => 'https://give.'.$root.'/sso/connect?redirect='.urlencode('https://give.'.$root.'/dashboard'), 'icon' => 'give.svg'], + ['name' => 'Transfer', 'url' => 'https://transfer.'.$root.'/sso/connect?redirect='.urlencode('https://transfer.'.$root.'/dashboard'), 'icon' => 'transfer.svg'], + ['name' => 'Accounting', 'url' => 'https://accounting.'.$root.'/sso/connect?redirect='.urlencode('https://accounting.'.$root.'/dashboard'), 'icon' => 'accounting.svg'], + ['name' => 'Invoice', 'url' => 'https://invoice.'.$root.'/sso/connect?redirect='.urlencode('https://invoice.'.$root.'/dashboard'), 'icon' => 'invoice.svg'], + ['name' => 'CRM', 'url' => 'https://crm.'.$root.'/sso/connect?redirect='.urlencode('https://crm.'.$root.'/dashboard'), 'icon' => 'crm.svg'], + ['name' => 'Events', 'url' => 'https://events.'.$root.'/sso/connect?redirect='.urlencode('https://events.'.$root.'/dashboard'), 'icon' => 'events.svg'], + ['name' => 'QR Plus', 'url' => 'https://qrplus.'.$root.'/sso/connect?redirect='.urlencode('https://qrplus.'.$root.'/dashboard'), 'icon' => 'qrplus.svg'], + ['name' => 'Link', 'url' => 'https://link.'.$root.'/sso/connect?redirect='.urlencode('https://link.'.$root.'/dashboard'), 'icon' => 'link.svg'], + ['name' => 'Frontdesk', 'url' => 'https://frontdesk.'.$root.'/sso/connect?redirect='.urlencode('https://frontdesk.'.$root.'/dashboard'), 'icon' => 'frontdesk.svg'], + ['name' => 'Care', 'url' => 'https://care.'.$root.'/sso/connect?redirect='.urlencode('https://care.'.$root.'/dashboard'), 'icon' => 'care.svg'], + ['name' => 'SMS', 'url' => 'https://sms.'.$root, 'icon' => 'sms.svg'], + ['name' => 'Bird', 'url' => 'https://bird.'.$root, 'icon' => 'bird.svg'], + ['name' => 'Mail', 'url' => 'https://mail.'.$root, 'icon' => 'mail.svg'], + ['name' => 'Email', 'url' => 'https://email.'.$root, 'icon' => 'email.svg'], + ['name' => 'Domains', 'url' => 'https://domains.'.$root, 'icon' => 'domains.svg'], + ['name' => 'Servers', 'url' => 'https://servers.'.$root, 'icon' => 'servers.svg'], + ['name' => 'Hosting', 'url' => 'https://hosting.'.$root, 'icon' => 'hosting.svg'], + ], +]; 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..4df3820 --- /dev/null +++ b/config/mail.php @@ -0,0 +1,132 @@ + $mailScheme, + $mailScheme !== '' => null, + in_array($mailEncryption, ['ssl', 'smtps'], true) => 'smtps', + in_array($mailEncryption, ['tls', 'starttls', 'smtp'], true) => 'smtp', + default => null, +}; + +return [ + + /* + |-------------------------------------------------------------------------- + | Default Mailer + |-------------------------------------------------------------------------- + | + | This option controls the default mailer that is used to send all email + | messages unless another mailer is explicitly specified when sending + | the message. All additional mailers can be configured within the + | "mailers" array. Examples of each type of mailer are provided. + | + */ + + 'default' => 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' => $smtpScheme, + '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/mobile-topbar.php b/config/mobile-topbar.php new file mode 100644 index 0000000..8ee3967 --- /dev/null +++ b/config/mobile-topbar.php @@ -0,0 +1,5 @@ + 'Queue', +]; diff --git a/config/qms.php b/config/qms.php new file mode 100644 index 0000000..9d7fefe --- /dev/null +++ b/config/qms.php @@ -0,0 +1,216 @@ + [ + 'super_admin' => 'Super Administrator', + 'org_admin' => 'Organization Administrator', + 'branch_manager' => 'Branch Manager', + 'receptionist' => 'Receptionist', + 'queue_operator' => 'Queue Operator', + 'counter_staff' => 'Counter Staff', + 'department_manager' => 'Department Manager', + 'security' => 'Security', + 'supervisor' => 'Supervisor', + ], + + 'department_types' => [ + 'general' => 'General', + 'reception' => 'Reception', + 'customer_service' => 'Customer Service', + 'cashier' => 'Cashier', + 'consultation' => 'Consultation', + 'laboratory' => 'Laboratory', + 'pharmacy' => 'Pharmacy', + 'verification' => 'Document Verification', + 'payments' => 'Payments', + 'collections' => 'Collections', + 'technical_support' => 'Technical Support', + ], + + 'queue_strategies' => [ + 'fifo' => 'First In, First Out', + 'priority' => 'Priority Queue', + 'vip' => 'VIP Queue', + 'appointment' => 'Appointment Queue', + 'emergency' => 'Emergency Queue', + 'department' => 'Department Queue', + 'skill' => 'Skill-based Routing', + 'dynamic' => 'Dynamic Routing', + 'overflow' => 'Overflow Routing', + ], + + 'ticket_priorities' => [ + 'emergency' => 'Emergency', + 'vip' => 'VIP', + 'elderly' => 'Elderly', + 'disabled' => 'Disabled', + 'appointment' => 'Appointment', + 'walk_in' => 'Walk-in', + ], + + 'ticket_statuses' => [ + 'waiting' => 'Waiting', + 'called' => 'Called', + 'serving' => 'Serving', + 'on_hold' => 'On Hold', + 'completed' => 'Completed', + 'no_show' => 'No Show', + 'cancelled' => 'Cancelled', + 'transferred' => 'Transferred', + ], + + 'ticket_sources' => [ + 'kiosk' => 'Kiosk', + 'reception' => 'Reception Desk', + 'mobile' => 'Mobile App', + 'web' => 'Website', + 'api' => 'API', + 'appointment' => 'Appointment Check-in', + 'tablet' => 'Self-service Tablet', + ], + + 'counter_statuses' => [ + 'available' => 'Available', + 'busy' => 'Busy', + 'offline' => 'Offline', + 'paused' => 'Paused', + ], + + 'appointment_modes' => [ + 'appointment_only' => 'Appointment Only', + 'walk_in_only' => 'Walk-in Only', + 'hybrid' => 'Hybrid', + ], + + 'device_types' => [ + 'kiosk' => 'Touchscreen Kiosk', + 'tablet' => 'Tablet', + 'printer' => 'Ticket Printer', + 'scanner' => 'Barcode/QR Scanner', + 'display' => 'Counter Display', + 'feedback_tablet' => 'Feedback Tablet', + ], + + 'display_layouts' => [ + 'standard' => 'Standard', + 'compact' => 'Compact', + 'split' => 'Split Screen', + 'media' => 'Media + Queue', + ], + + 'announcement_templates' => [ + 'en' => 'Ticket :ticket, please proceed to :counter.', + 'fr' => 'Ticket :ticket, veuillez vous rendre au :counter.', + 'tw' => 'Ticket :ticket, mesrɛ kɔ :counter.', + ], + + 'industry_templates' => [ + 'healthcare' => 'Healthcare', + 'banking' => 'Banking', + 'government' => 'Government Office', + 'visitor' => 'Visitor Management', + 'university' => 'University', + 'retail' => 'Retail', + 'telecom' => 'Telecom Service Centre', + 'custom' => 'Custom', + ], + + 'audit_actions' => [ + 'organization.created' => 'Organization created', + 'organization.updated' => 'Organization updated', + 'branch.created' => 'Branch created', + 'branch.updated' => 'Branch updated', + 'department.created' => 'Department created', + 'department.updated' => 'Department updated', + 'department.deleted' => 'Department deleted', + 'member.created' => 'Member added', + 'member.updated' => 'Member updated', + 'member.deleted' => 'Member removed', + 'service_queue.created' => 'Queue created', + 'service_queue.updated' => 'Queue updated', + 'service_queue.deleted' => 'Queue archived', + 'service_queue.paused' => 'Queue paused', + 'service_queue.resumed' => 'Queue resumed', + 'counter.created' => 'Counter created', + 'counter.updated' => 'Counter updated', + 'counter.deleted' => 'Counter archived', + 'ticket.issued' => 'Ticket issued', + 'ticket.called' => 'Ticket called', + 'ticket.recalled' => 'Ticket recalled', + 'ticket.skipped' => 'Ticket skipped', + 'ticket.transferred' => 'Ticket transferred', + 'ticket.held' => 'Ticket placed on hold', + 'ticket.completed' => 'Service completed', + 'ticket.no_show' => 'Ticket marked no-show', + 'ticket.cancelled' => 'Ticket cancelled', + 'appointment.created' => 'Appointment scheduled', + 'appointment.checked_in' => 'Appointment checked in', + 'appointment.cancelled' => 'Appointment cancelled', + 'workflow.created' => 'Workflow created', + 'workflow.updated' => 'Workflow updated', + 'display.created' => 'Display screen created', + 'display.updated' => 'Display screen updated', + 'device.created' => 'Device registered', + 'device.updated' => 'Device updated', + 'feedback.submitted' => 'Customer feedback submitted', + ], + + 'notification_templates' => [ + 'issued' => 'Your ticket :ticket is confirmed for :queue. We will notify you when it is almost your turn.', + 'called' => 'Ticket :ticket — please proceed to :counter now.', + 'almost_ready' => 'Ticket :ticket — you are :ahead customer(s) away. Please head to the waiting area.', + 'completed' => 'Thank you for visiting. Ticket :ticket is complete. Share feedback: :feedback_url', + 'missed' => 'Ticket :ticket was marked as missed. Please rejoin the queue if you still need service.', + ], + + 'report_types' => [ + 'tickets' => 'Ticket volume & throughput', + 'wait_times' => 'Wait times & peak hours', + 'counters' => 'Counter performance', + 'appointments' => 'Appointments', + 'feedback' => 'Customer satisfaction', + 'service_sessions' => 'Service sessions', + ], + + 'plans' => [ + 'free' => [ + 'label' => 'Free', + 'max_branches' => 1, + 'max_queues' => 5, + ], + 'pro' => [ + 'label' => 'Pro', + 'max_branches' => null, + 'max_queues' => null, + ], + ], + + 'rule_types' => [ + 'overflow' => 'Overflow routing', + 'priority_boost' => 'Priority boost', + 'routing' => 'Dynamic routing', + 'capacity' => 'Capacity limit', + ], + + 'workflow_templates' => [ + 'healthcare' => [ + ['name' => 'Registration', 'sort_order' => 1], + ['name' => 'Triage', 'sort_order' => 2], + ['name' => 'Consultation', 'sort_order' => 3], + ['name' => 'Pharmacy', 'sort_order' => 4], + ], + 'banking' => [ + ['name' => 'Reception', 'sort_order' => 1], + ['name' => 'Teller', 'sort_order' => 2], + ['name' => 'Customer service', 'sort_order' => 3], + ], + 'government' => [ + ['name' => 'Document check', 'sort_order' => 1], + ['name' => 'Processing', 'sort_order' => 2], + ['name' => 'Collection', 'sort_order' => 3], + ], + 'custom' => [], + ], + +]; 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/service_events.php b/config/service_events.php new file mode 100644 index 0000000..49f6ac0 --- /dev/null +++ b/config/service_events.php @@ -0,0 +1,5 @@ + env('SERVICE_EVENTS_INBOUND_SECRET', ''), +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..eed46d4 --- /dev/null +++ b/config/services.php @@ -0,0 +1,30 @@ + [ + 'issuer' => 'https://'.config('app.auth_domain'), + 'client_id' => env('LADILL_SSO_CLIENT_ID'), + 'client_secret' => env('LADILL_SSO_CLIENT_SECRET'), + 'redirect' => rtrim((string) env('APP_URL', 'https://queue.ladill.com'), '/').'/sso/callback', + ], + + 'ladill_identity' => [ + 'url' => 'https://'.config('app.auth_domain'), + 'key' => env('IDENTITY_API_KEY_QUEUE'), + ], + + '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..570bbab --- /dev/null +++ b/config/session.php @@ -0,0 +1,217 @@ + 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', 1440), + + '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), + +]; diff --git a/config/signed_out.php b/config/signed_out.php new file mode 100644 index 0000000..fbd24d4 --- /dev/null +++ b/config/signed_out.php @@ -0,0 +1,7 @@ + 'Ladill Queue', + 'logo' => 'images/logo/ladillqueue-logo.svg', + 'description' => 'Your Ladill Queue session has ended. Sign in again to manage customer flow and service queues.', +]; 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/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..a138076 --- /dev/null +++ b/database/migrations/0001_01_01_000000_create_users_table.php @@ -0,0 +1,52 @@ +id(); + $table->uuid('public_id')->unique(); + $table->string('name')->nullable(); + $table->string('email')->unique(); + $table->string('avatar_url')->nullable(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password')->nullable(); + $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..ed758bd --- /dev/null +++ b/database/migrations/0001_01_01_000001_create_cache_table.php @@ -0,0 +1,35 @@ +string('key')->primary(); + $table->mediumText('value'); + $table->integer('expiration')->index(); + }); + + Schema::create('cache_locks', function (Blueprint $table) { + $table->string('key')->primary(); + $table->string('owner'); + $table->integer('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_06_30_100000_create_queue_core_tables.php b/database/migrations/2026_06_30_100000_create_queue_core_tables.php new file mode 100644 index 0000000..0ae8ab0 --- /dev/null +++ b/database/migrations/2026_06_30_100000_create_queue_core_tables.php @@ -0,0 +1,87 @@ +id(); + $table->string('owner_ref')->index(); + $table->string('name'); + $table->string('slug')->index(); + $table->string('logo_path')->nullable(); + $table->string('timezone')->default('UTC'); + $table->json('settings')->nullable(); + $table->timestamps(); + $table->softDeletes(); + $table->unique(['owner_ref', 'slug']); + }); + + Schema::create('queue_branches', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->string('name'); + $table->string('code')->nullable(); + $table->string('address')->nullable(); + $table->string('phone')->nullable(); + $table->boolean('is_active')->default(true); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::create('queue_departments', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('branch_id')->constrained('queue_branches')->cascadeOnDelete(); + $table->string('name'); + $table->string('type')->default('general'); + $table->boolean('is_active')->default(true); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::create('queue_members', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->string('user_ref')->index(); + $table->string('role'); + $table->foreignId('branch_id')->nullable()->constrained('queue_branches')->nullOnDelete(); + $table->timestamps(); + $table->unique(['organization_id', 'user_ref']); + }); + + Schema::create('queue_audit_logs', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->nullable()->constrained('queue_organizations')->nullOnDelete(); + $table->string('actor_ref')->nullable(); + $table->string('action'); + $table->string('subject_type')->nullable(); + $table->unsignedBigInteger('subject_id')->nullable(); + $table->json('metadata')->nullable(); + $table->string('ip_address')->nullable(); + $table->timestamp('created_at')->useCurrent(); + $table->index(['owner_ref', 'created_at']); + }); + } + + public function down(): void + { + Schema::dropIfExists('queue_audit_logs'); + Schema::dropIfExists('queue_members'); + Schema::dropIfExists('queue_departments'); + Schema::dropIfExists('queue_branches'); + Schema::dropIfExists('queue_organizations'); + } +}; diff --git a/database/migrations/2026_06_30_110000_create_queue_domain_tables.php b/database/migrations/2026_06_30_110000_create_queue_domain_tables.php new file mode 100644 index 0000000..50e1032 --- /dev/null +++ b/database/migrations/2026_06_30_110000_create_queue_domain_tables.php @@ -0,0 +1,297 @@ +id(); + $table->uuid('uuid')->unique(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->constrained('queue_branches')->cascadeOnDelete(); + $table->foreignId('department_id')->nullable()->constrained('queue_departments')->nullOnDelete(); + $table->string('name'); + $table->text('description')->nullable(); + $table->string('color', 20)->default('#4f46e5'); + $table->string('prefix', 10)->default('A'); + $table->string('strategy')->default('fifo'); // fifo, priority, appointment, vip, emergency, skill, dynamic, overflow + $table->unsignedInteger('max_capacity')->nullable(); + $table->unsignedInteger('avg_service_seconds')->default(300); + $table->json('operating_hours')->nullable(); + $table->json('priority_rules')->nullable(); + $table->json('settings')->nullable(); + $table->boolean('is_active')->default(true); + $table->boolean('is_paused')->default(false); + $table->unsignedBigInteger('ticket_sequence')->default(0); + $table->timestamps(); + $table->softDeletes(); + $table->index(['owner_ref', 'branch_id', 'is_active']); + }); + + Schema::create('queue_counters', function (Blueprint $table) { + $table->id(); + $table->uuid('uuid')->unique(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->constrained('queue_branches')->cascadeOnDelete(); + $table->foreignId('department_id')->nullable()->constrained('queue_departments')->nullOnDelete(); + $table->string('name'); + $table->string('code')->nullable(); + $table->string('status')->default('offline'); // available, busy, offline, paused + $table->json('settings')->nullable(); + $table->boolean('is_active')->default(true); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::create('queue_counter_service_queue', function (Blueprint $table) { + $table->id(); + $table->foreignId('counter_id')->constrained('queue_counters')->cascadeOnDelete(); + $table->foreignId('service_queue_id')->constrained('queue_service_queues')->cascadeOnDelete(); + $table->unsignedSmallInteger('priority')->default(0); + $table->unique(['counter_id', 'service_queue_id']); + }); + + Schema::create('queue_counter_assignments', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('counter_id')->constrained('queue_counters')->cascadeOnDelete(); + $table->string('staff_ref')->index(); + $table->timestamp('assigned_at')->useCurrent(); + $table->timestamp('released_at')->nullable(); + $table->timestamps(); + $table->index(['counter_id', 'released_at']); + }); + + Schema::create('queue_staff_sessions', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->constrained('queue_branches')->cascadeOnDelete(); + $table->foreignId('counter_id')->nullable()->constrained('queue_counters')->nullOnDelete(); + $table->string('staff_ref')->index(); + $table->timestamp('started_at'); + $table->timestamp('ended_at')->nullable(); + $table->json('stats')->nullable(); + $table->timestamps(); + }); + + Schema::create('queue_tickets', function (Blueprint $table) { + $table->id(); + $table->uuid('uuid')->unique(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->constrained('queue_branches')->cascadeOnDelete(); + $table->foreignId('service_queue_id')->constrained('queue_service_queues')->cascadeOnDelete(); + $table->foreignId('counter_id')->nullable()->constrained('queue_counters')->nullOnDelete(); + $table->string('ticket_number')->index(); + $table->string('status')->default('waiting'); // waiting, called, serving, on_hold, completed, no_show, cancelled, transferred + $table->string('priority')->default('walk_in'); // emergency, vip, elderly, disabled, appointment, walk_in + $table->unsignedSmallInteger('position')->nullable(); + $table->string('customer_name')->nullable(); + $table->string('customer_phone')->nullable(); + $table->string('customer_email')->nullable(); + $table->string('source')->default('kiosk'); // kiosk, reception, mobile, web, api, appointment + $table->string('qr_token')->nullable()->unique(); + $table->string('barcode')->nullable(); + $table->unsignedInteger('estimated_wait_seconds')->nullable(); + $table->timestamp('issued_at'); + $table->timestamp('called_at')->nullable(); + $table->timestamp('serving_started_at')->nullable(); + $table->timestamp('completed_at')->nullable(); + $table->json('metadata')->nullable(); + $table->timestamps(); + $table->softDeletes(); + $table->index(['owner_ref', 'service_queue_id', 'status']); + $table->index(['owner_ref', 'branch_id', 'status', 'issued_at']); + }); + + Schema::create('queue_ticket_events', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('ticket_id')->constrained('queue_tickets')->cascadeOnDelete(); + $table->string('event'); // issued, called, recalled, skipped, transferred, held, completed, no_show, cancelled + $table->string('actor_ref')->nullable(); + $table->foreignId('counter_id')->nullable()->constrained('queue_counters')->nullOnDelete(); + $table->json('metadata')->nullable(); + $table->timestamp('created_at')->useCurrent(); + $table->index(['ticket_id', 'created_at']); + }); + + Schema::create('queue_ticket_transfers', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('ticket_id')->constrained('queue_tickets')->cascadeOnDelete(); + $table->foreignId('from_service_queue_id')->constrained('queue_service_queues'); + $table->foreignId('to_service_queue_id')->constrained('queue_service_queues'); + $table->foreignId('from_counter_id')->nullable()->constrained('queue_counters')->nullOnDelete(); + $table->string('reason')->nullable(); + $table->string('transferred_by')->nullable(); + $table->timestamp('transferred_at')->useCurrent(); + }); + + Schema::create('queue_queue_rules', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('service_queue_id')->constrained('queue_service_queues')->cascadeOnDelete(); + $table->string('rule_type'); // overflow, routing, priority_boost, capacity + $table->json('conditions')->nullable(); + $table->json('actions')->nullable(); + $table->unsignedSmallInteger('sort_order')->default(0); + $table->boolean('is_active')->default(true); + $table->timestamps(); + }); + + Schema::create('queue_workflows', function (Blueprint $table) { + $table->id(); + $table->uuid('uuid')->unique(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->nullable()->constrained('queue_branches')->nullOnDelete(); + $table->string('name'); + $table->text('description')->nullable(); + $table->string('industry_template')->nullable(); + $table->boolean('is_active')->default(true); + $table->json('settings')->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::create('queue_workflow_steps', function (Blueprint $table) { + $table->id(); + $table->foreignId('workflow_id')->constrained('queue_workflows')->cascadeOnDelete(); + $table->foreignId('service_queue_id')->nullable()->constrained('queue_service_queues')->nullOnDelete(); + $table->string('name'); + $table->unsignedSmallInteger('sort_order')->default(0); + $table->json('settings')->nullable(); + $table->timestamps(); + }); + + Schema::create('queue_appointments', function (Blueprint $table) { + $table->id(); + $table->uuid('uuid')->unique(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->constrained('queue_branches')->cascadeOnDelete(); + $table->foreignId('service_queue_id')->nullable()->constrained('queue_service_queues')->nullOnDelete(); + $table->foreignId('ticket_id')->nullable()->constrained('queue_tickets')->nullOnDelete(); + $table->string('customer_name'); + $table->string('customer_phone')->nullable(); + $table->string('customer_email')->nullable(); + $table->string('status')->default('scheduled'); // scheduled, checked_in, completed, cancelled, no_show + $table->string('mode')->default('hybrid'); // appointment_only, walk_in_only, hybrid + $table->timestamp('scheduled_at'); + $table->timestamp('checked_in_at')->nullable(); + $table->string('reference')->nullable(); + $table->json('metadata')->nullable(); + $table->timestamps(); + $table->softDeletes(); + $table->index(['owner_ref', 'branch_id', 'scheduled_at']); + }); + + Schema::create('queue_service_sessions', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('ticket_id')->constrained('queue_tickets')->cascadeOnDelete(); + $table->foreignId('counter_id')->constrained('queue_counters')->cascadeOnDelete(); + $table->string('staff_ref')->nullable(); + $table->timestamp('started_at'); + $table->timestamp('ended_at')->nullable(); + $table->unsignedInteger('duration_seconds')->nullable(); + $table->timestamps(); + }); + + Schema::create('queue_display_screens', function (Blueprint $table) { + $table->id(); + $table->uuid('uuid')->unique(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->constrained('queue_branches')->cascadeOnDelete(); + $table->string('name'); + $table->string('layout')->default('standard'); // standard, compact, split, media + $table->string('access_token')->unique(); + $table->json('service_queue_ids')->nullable(); + $table->json('settings')->nullable(); + $table->boolean('is_active')->default(true); + $table->timestamp('last_seen_at')->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::create('queue_devices', function (Blueprint $table) { + $table->id(); + $table->uuid('uuid')->unique(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->nullable()->constrained('queue_branches')->nullOnDelete(); + $table->string('name'); + $table->string('type'); // kiosk, tablet, printer, scanner, display, feedback_tablet + $table->string('status')->default('offline'); + $table->string('device_token')->nullable()->unique(); + $table->json('config')->nullable(); + $table->timestamp('last_online_at')->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::create('queue_voice_announcements', function (Blueprint $table) { + $table->id(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('branch_id')->nullable()->constrained('queue_branches')->nullOnDelete(); + $table->foreignId('ticket_id')->nullable()->constrained('queue_tickets')->nullOnDelete(); + $table->string('locale', 10)->default('en'); + $table->text('message'); + $table->string('voice')->nullable(); + $table->unsignedTinyInteger('volume')->default(80); + $table->unsignedTinyInteger('repeat_count')->default(1); + $table->string('status')->default('pending'); // pending, played, failed + $table->timestamp('played_at')->nullable(); + $table->timestamps(); + }); + + Schema::create('queue_customer_feedback', function (Blueprint $table) { + $table->id(); + $table->uuid('uuid')->unique(); + $table->string('owner_ref')->index(); + $table->foreignId('organization_id')->constrained('queue_organizations')->cascadeOnDelete(); + $table->foreignId('ticket_id')->constrained('queue_tickets')->cascadeOnDelete(); + $table->foreignId('counter_id')->nullable()->constrained('queue_counters')->nullOnDelete(); + $table->unsignedTinyInteger('rating')->nullable(); + $table->unsignedTinyInteger('service_quality')->nullable(); + $table->unsignedTinyInteger('wait_experience')->nullable(); + $table->unsignedTinyInteger('staff_professionalism')->nullable(); + $table->text('comments')->nullable(); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('queue_customer_feedback'); + Schema::dropIfExists('queue_voice_announcements'); + Schema::dropIfExists('queue_devices'); + Schema::dropIfExists('queue_display_screens'); + Schema::dropIfExists('queue_service_sessions'); + Schema::dropIfExists('queue_appointments'); + Schema::dropIfExists('queue_workflow_steps'); + Schema::dropIfExists('queue_workflows'); + Schema::dropIfExists('queue_queue_rules'); + Schema::dropIfExists('queue_ticket_transfers'); + Schema::dropIfExists('queue_ticket_events'); + Schema::dropIfExists('queue_tickets'); + Schema::dropIfExists('queue_staff_sessions'); + Schema::dropIfExists('queue_counter_assignments'); + Schema::dropIfExists('queue_counter_service_queue'); + Schema::dropIfExists('queue_counters'); + Schema::dropIfExists('queue_service_queues'); + } +}; diff --git a/database/migrations/2026_06_30_120000_create_notifications_table.php b/database/migrations/2026_06_30_120000_create_notifications_table.php new file mode 100644 index 0000000..52e3b00 --- /dev/null +++ b/database/migrations/2026_06_30_120000_create_notifications_table.php @@ -0,0 +1,25 @@ +uuid('id')->primary(); + $table->string('type'); + $table->morphs('notifiable'); + $table->text('data'); + $table->timestamp('read_at')->nullable(); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('notifications'); + } +}; diff --git a/deploy/bin/ladill-hosting-admin b/deploy/bin/ladill-hosting-admin new file mode 100755 index 0000000..88b5ff1 --- /dev/null +++ b/deploy/bin/ladill-hosting-admin @@ -0,0 +1,126 @@ +#!/usr/bin/env bash +set -euo pipefail + +usage() { + cat <<'EOF' >&2 +Usage: + ladill-hosting-admin self-check + ladill-hosting-admin mkdir + ladill-hosting-admin chown + ladill-hosting-admin chmod + ladill-hosting-admin write-file + ladill-hosting-admin symlink + ladill-hosting-admin nginx-test + ladill-hosting-admin reload-nginx + ladill-hosting-admin certbot-webroot + ladill-hosting-admin certbot-renew + ladill-hosting-admin run-cmd + ladill-hosting-admin read-file +EOF + exit 64 +} + +require_abs_path() { + local path="${1:-}" + + if [[ -z "$path" || "${path#/}" == "$path" ]]; then + echo "Expected an absolute path, got: $path" >&2 + exit 64 + fi +} + +ensure_domain() { + local value="${1:-}" + + if [[ ! "$value" =~ ^[A-Za-z0-9.-]+$ ]]; then + echo "Invalid domain: $value" >&2 + exit 64 + fi +} + +ensure_owner_group() { + local value="${1:-}" + + if [[ ! "$value" =~ ^[A-Za-z_][A-Za-z0-9_-]*:[A-Za-z_][A-Za-z0-9_-]*$ ]]; then + echo "Invalid owner:group value: $value" >&2 + exit 64 + fi +} + +ensure_mode() { + local value="${1:-}" + + if [[ ! "$value" =~ ^[0-7]{3,4}$ && ! "$value" =~ ^[ugoa,+-=rwxX]+$ ]]; then + echo "Invalid chmod mode: $value" >&2 + exit 64 + fi +} + +command="${1:-}" + +case "$command" in + self-check) + exit 0 + ;; + mkdir) + [[ $# -eq 2 ]] || usage + require_abs_path "$2" + exec mkdir -p "$2" + ;; + chown) + [[ $# -eq 3 ]] || usage + ensure_owner_group "$2" + require_abs_path "$3" + exec chown -R "$2" "$3" + ;; + chmod) + [[ $# -eq 3 ]] || usage + ensure_mode "$2" + require_abs_path "$3" + exec chmod "$2" "$3" + ;; + write-file) + [[ $# -eq 3 ]] || usage + require_abs_path "$2" + tmpfile="$(mktemp)" + trap 'rm -f "$tmpfile"' EXIT + printf '%s' "$3" | base64 --decode > "$tmpfile" + install -m 0644 "$tmpfile" "$2" + rm -f "$tmpfile" + trap - EXIT + ;; + symlink) + [[ $# -eq 3 ]] || usage + require_abs_path "$2" + require_abs_path "$3" + exec ln -sfn "$2" "$3" + ;; + nginx-test) + exec nginx -t + ;; + reload-nginx) + exec systemctl reload nginx + ;; + certbot-webroot) + [[ $# -eq 4 ]] || usage + ensure_domain "$3" + require_abs_path "$4" + exec certbot certonly --webroot --non-interactive --agree-tos --no-eff-email -m "$2" -w "$4" -d "$3" -d "www.$3" + ;; + certbot-renew) + exec certbot renew --quiet --no-random-sleep-on-renew + ;; + run-cmd) + [[ $# -ge 2 ]] || usage + shift + exec bash -c "$*" + ;; + read-file) + [[ $# -eq 2 ]] || usage + require_abs_path "$2" + exec cat "$2" + ;; + *) + usage + ;; +esac diff --git a/deploy/bin/ladill-hosting-user b/deploy/bin/ladill-hosting-user new file mode 100755 index 0000000..bc3a45a --- /dev/null +++ b/deploy/bin/ladill-hosting-user @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +set -euo pipefail + +usage() { + echo "Usage: ladill-hosting-user " >&2 + exit 64 +} + +[[ $# -eq 2 ]] || usage + +username="$1" +payload_b64="$2" + +if [[ ! "$username" =~ ^[A-Za-z_][A-Za-z0-9_-]*$ ]]; then + echo "Invalid username: $username" >&2 + exit 64 +fi + +command="$(printf '%s' "$payload_b64" | base64 --decode)" + +exec runuser -u "$username" -- bash -lc "$command" diff --git a/deploy/deploy.sh b/deploy/deploy.sh new file mode 100755 index 0000000..4a45f7e --- /dev/null +++ b/deploy/deploy.sh @@ -0,0 +1,296 @@ +#!/usr/bin/env bash +# Fast on-host release deploy (same model as climpme/web/deploy/deploy.sh). +set -Eeuo pipefail + +APP_ROOT="${LADILL_APP_ROOT:-/var/www/ladill-queue}" +RELEASES_DIR="$APP_ROOT/releases" +SHARED_DIR="$APP_ROOT/shared" +CURRENT_LINK="$APP_ROOT/current" +RELEASE_ARCHIVE="${LADILL_RELEASE_ARCHIVE:-/tmp/ladill-release.tgz}" +KEEP_RELEASES="${LADILL_KEEP_RELEASES:-5}" + +STAMP="$(date +%Y%m%d%H%M%S)" +NEW_RELEASE="$RELEASES_DIR/$STAMP" + +log() { + printf '[%s] %s\n' "$(date '+%F %T')" "$*" +} + +bootstrap_shared_env() { + local candidate="" + + if [ -f "$SHARED_DIR/.env" ]; then + return 0 + fi + + for candidate in "$CURRENT_LINK/.env" "$APP_ROOT/.env"; do + if [ -f "$candidate" ]; then + cp -fL "$candidate" "$SHARED_DIR/.env" + log "Bootstrapped shared .env from $candidate" + return 0 + fi + done + + return 1 +} + +ensure_writable_paths() { + local paths=("$@") + + [ "${#paths[@]}" -gt 0 ] || return 0 + + chmod -R ug+rwX "${paths[@]}" 2>/dev/null || true + + if command -v find >/dev/null 2>&1; then + find "${paths[@]}" -type d -exec chmod ug+rwx {} + 2>/dev/null || true + find "${paths[@]}" -type d -exec chmod g+s {} + 2>/dev/null || true + fi +} + +normalize_shared_permissions() { + local owner="${LADILL_DEPLOY_USER:-deploy}" + local group="${LADILL_DEPLOY_GROUP:-www-data}" + local shared_paths=("$SHARED_DIR/storage" "$SHARED_DIR/bootstrap-cache") + + id -u "$owner" >/dev/null 2>&1 || return 0 + getent group "$group" >/dev/null 2>&1 || return 0 + + if chown -R "$owner:$group" "${shared_paths[@]}" 2>/dev/null; then + : + elif command -v sudo >/dev/null 2>&1; then + sudo -n chown -R "$owner:$group" "${shared_paths[@]}" 2>/dev/null || true + fi + + ensure_writable_paths "${shared_paths[@]}" +} + +run_artisan() { + local command="$1" + + if [ -f "$NEW_RELEASE/artisan" ]; then + (cd "$NEW_RELEASE" && php artisan ${command}) + fi +} + +uses_sqlite() { + [ -f "$SHARED_DIR/.env" ] && grep -Eq '^DB_CONNECTION=sqlite([[:space:]]*)$' "$SHARED_DIR/.env" +} + +sqlite_database_setting() { + [ -f "$SHARED_DIR/.env" ] || return 1 + + grep -E '^DB_DATABASE=' "$SHARED_DIR/.env" | tail -n 1 | cut -d= -f2- | sed -e 's/^"//' -e 's/"$//' -e "s/^'//" -e "s/'$//" +} + +prepare_sqlite_database() { + local configured_path="" + local db_name="" + local shared_sqlite_path="" + local current_sqlite_path="" + local release_sqlite_path="" + + configured_path="$(sqlite_database_setting || true)" + [ -n "$configured_path" ] || configured_path="database/database.sqlite" + + if [[ "$configured_path" = /* ]]; then + shared_sqlite_path="$configured_path" + mkdir -p "$(dirname "$shared_sqlite_path")" + else + db_name="$(basename "$configured_path")" + shared_sqlite_path="$SHARED_DIR/database/$db_name" + current_sqlite_path="$CURRENT_LINK/$configured_path" + release_sqlite_path="$NEW_RELEASE/$configured_path" + + mkdir -p "$SHARED_DIR/database" "$(dirname "$release_sqlite_path")" + + if [ ! -f "$shared_sqlite_path" ]; then + if [ -f "$current_sqlite_path" ]; then + cp -fL "$current_sqlite_path" "$shared_sqlite_path" + log "Bootstrapped shared sqlite database from $current_sqlite_path" + elif [ -f "$APP_ROOT/$configured_path" ]; then + cp -fL "$APP_ROOT/$configured_path" "$shared_sqlite_path" + log "Bootstrapped shared sqlite database from $APP_ROOT/$configured_path" + else + touch "$shared_sqlite_path" + log "Created shared sqlite database at $shared_sqlite_path" + fi + fi + + rm -f "$release_sqlite_path" + ln -sfn "$shared_sqlite_path" "$release_sqlite_path" + ensure_writable_paths "$SHARED_DIR/database" + return 0 + fi + + if [ ! -f "$shared_sqlite_path" ]; then + touch "$shared_sqlite_path" + log "Created shared sqlite database at $shared_sqlite_path" + fi + + ensure_writable_paths "$(dirname "$shared_sqlite_path")" +} + +resolve_npm() { + if command -v npm >/dev/null 2>&1; then command -v npm; return 0; fi + local candidate + for candidate in "${NODE_ROOT:-/tmp/ladill-node-22-r1}/bin/npm" /tmp/ladill-node-*/bin/npm; do + [ -x "$candidate" ] && { echo "$candidate"; return 0; } + done + return 1 +} + +# Ensure compiled Vite assets exist in the release. CI builds them into the +# archive; this only (re)builds when the manifest is missing — e.g. a manual +# on-host deploy — so a release without assets is never promoted (which would +# make every @vite page 500). Runs before the current symlink is switched, so a +# failure here leaves the previous good release live. +build_frontend_assets() { + if [ -f "$NEW_RELEASE/public/build/manifest.json" ]; then + log "Frontend assets present — skipping vite build" + return 0 + fi + + [ -f "$NEW_RELEASE/package.json" ] || { log "No package.json — skipping vite build"; return 0; } + + local npm_bin + if ! npm_bin="$(resolve_npm)"; then + echo "ERROR: vite manifest missing and npm not found; cannot build frontend assets (pages would 500)." >&2 + return 1 + fi + + log "Building frontend assets with $npm_bin" + ( + cd "$NEW_RELEASE" + export PATH="$(dirname "$npm_bin"):$PATH" + if [ -f package-lock.json ]; then + npm ci --no-audit --no-fund + else + npm install --no-audit --no-fund + fi + npm run build + ) +} + +log "Preparing release $STAMP" +[ -f "$RELEASE_ARCHIVE" ] || { echo "Release archive not found: $RELEASE_ARCHIVE" >&2; exit 1; } + +mkdir -p "$RELEASES_DIR" "$SHARED_DIR" "$NEW_RELEASE" +tar -xzf "$RELEASE_ARCHIVE" -C "$NEW_RELEASE" +chmod -R u+rwX "$NEW_RELEASE" 2>/dev/null || true + +log "Linking shared paths" +mkdir -p "$SHARED_DIR/storage/"{app/public,app/private,framework/{cache/data,sessions,testing,views},logs} +mkdir -p "$SHARED_DIR/bootstrap-cache" +normalize_shared_permissions + +if bootstrap_shared_env; then + ln -sfn "$SHARED_DIR/.env" "$NEW_RELEASE/.env" +else + echo "Missing deployment environment file. Expected $SHARED_DIR/.env or an existing $CURRENT_LINK/.env / $APP_ROOT/.env to bootstrap from." >&2 + exit 1 +fi + +rm -rf "$NEW_RELEASE/storage" +ln -sfn "$SHARED_DIR/storage" "$NEW_RELEASE/storage" +mkdir -p "$NEW_RELEASE/bootstrap" +rm -rf "$NEW_RELEASE/bootstrap/cache" +ln -sfn "$SHARED_DIR/bootstrap-cache" "$NEW_RELEASE/bootstrap/cache" +normalize_shared_permissions + +if uses_sqlite; then + log "Preparing shared sqlite database" + prepare_sqlite_database + if id -u www-data >/dev/null 2>&1; then + chgrp www-data "$SHARED_DIR/database" 2>/dev/null || true + find "$SHARED_DIR/database" -type f -exec chgrp www-data {} + 2>/dev/null || true + find "$SHARED_DIR/database" -type d -exec chgrp www-data {} + 2>/dev/null || true + fi +fi + +log "Installing PHP dependencies" +if [ -f "$NEW_RELEASE/composer.json" ]; then + if [ "$(id -u)" -eq 0 ]; then + export COMPOSER_ALLOW_SUPERUSER=1 + fi + export COMPOSER_HOME="${COMPOSER_HOME:-/home/deploy/.composer}" + ( + cd "$NEW_RELEASE" + composer install \ + --no-dev \ + --prefer-dist \ + --no-interaction \ + --no-progress \ + --optimize-autoloader \ + --classmap-authoritative + ) +fi + +log "Ensuring frontend assets" +if ! build_frontend_assets; then + echo "Frontend asset build failed — keeping previous release live" >&2 + exit 1 +fi + +log "Running migrations" +if ! run_artisan "migrate --force"; then + log "Migration failed — clearing shared bootstrap cache" + run_artisan "optimize:clear" || true + exit 1 +fi + +switch_current_release() { + if ln -sfnT "$NEW_RELEASE" "$CURRENT_LINK" 2>/dev/null; then + return 0 + fi + + if command -v sudo >/dev/null 2>&1 && sudo -n ln -sfnT "$NEW_RELEASE" "$CURRENT_LINK"; then + return 0 + fi + + echo "Unable to update current release symlink at $CURRENT_LINK" >&2 + return 1 +} + +log "Switching current release" +if ! switch_current_release; then + echo "Failed to point $CURRENT_LINK at $NEW_RELEASE" >&2 + exit 1 +fi + +LIVE_REV="$(cat "$CURRENT_LINK/REVISION" 2>/dev/null || echo unknown)" +log "Live release: $STAMP (revision $LIVE_REV)" + +log "Optimizing Laravel" +if [ -L "$CURRENT_LINK" ] && [ -f "$CURRENT_LINK/artisan" ]; then + ( + cd "$CURRENT_LINK" + php artisan storage:link || true + php artisan optimize:clear || true + php artisan config:cache || true + php artisan route:cache || true + php artisan view:cache || true + ) +fi + +log "Reloading services" +if command -v systemctl >/dev/null 2>&1; then + systemctl reload php8.4-fpm 2>/dev/null || sudo -n systemctl reload php8.4-fpm + systemctl reload nginx 2>/dev/null || sudo -n systemctl reload nginx +fi + +log "Restarting queues" +if [ -L "$CURRENT_LINK" ] && [ -f "$CURRENT_LINK/artisan" ]; then + (cd "$CURRENT_LINK" && php artisan queue:restart) || true +fi +if command -v supervisorctl >/dev/null 2>&1; then + supervisorctl restart ladill-queue-worker:* 2>/dev/null || true +fi + +log "Cleaning old releases" +mapfile -t OLD_RELEASES < <(ls -1dt "$RELEASES_DIR"/* 2>/dev/null | tail -n "+$((KEEP_RELEASES + 1))" || true) +if [ "${#OLD_RELEASES[@]}" -gt 0 ]; then + chmod -R u+rwX "${OLD_RELEASES[@]}" 2>/dev/null || true + rm -rf "${OLD_RELEASES[@]}" 2>/dev/null || true +fi + +log "Deploy completed: $STAMP" diff --git a/deploy/sudoers.ladill-hosting.example b/deploy/sudoers.ladill-hosting.example new file mode 100644 index 0000000..4dc5ce2 --- /dev/null +++ b/deploy/sudoers.ladill-hosting.example @@ -0,0 +1,7 @@ +# Replace `www-data` with the actual PHP-FPM/web user that runs the app. +# Install as `/etc/sudoers.d/ladill-hosting` with mode `0440`. +# +# These helpers are root-owned fixed entry points installed by the deploy script. + +www-data ALL=(root) NOPASSWD: /usr/local/bin/ladill-hosting-admin * +www-data ALL=(root) NOPASSWD: /usr/local/bin/ladill-hosting-user * diff --git a/deployment/setup-service-subdomain-nginx.sh b/deployment/setup-service-subdomain-nginx.sh new file mode 100755 index 0000000..afde633 --- /dev/null +++ b/deployment/setup-service-subdomain-nginx.sh @@ -0,0 +1,153 @@ +#!/usr/bin/env bash +# +# Provision an nginx vhost for one of Ladill's own service subdomains +# (auth./account./pay./qr./... .ladill.com), reusing the existing +# *.ladill.com wildcard TLS certificate. +# +# The monolith phase needs nothing here — the ladill.com vhost already +# serves *.ladill.com over the wildcard cert. Use this when a service gets +# its OWN app (separate Laravel app dir, or a backend on another host/port), +# so its subdomain stops falling through to the catch-all and routes to the +# real service instead. +# +# Idempotent + safe: writes to sites-available, validates with `nginx -t`, +# and only reloads on success (restores the previous config on failure). +# +# Usage: +# setup-service-subdomain-nginx.sh --app [--fpm ] +# setup-service-subdomain-nginx.sh --proxy +# +# Options: +# --app DIR Serve a Laravel app from DIR/public via PHP-FPM. +# --fpm SOCK PHP-FPM socket for --app (default: /run/php/php8.4-fpm-ladill.sock). +# --proxy URL Reverse-proxy the subdomain to URL (e.g. http://127.0.0.1:9001). +# --zone ZONE Apex zone (default: ladill.com). +# --cert NAME Let's Encrypt lineage under /etc/letsencrypt/live (default: ladill-wildcard). +# --dry-run Print the rendered vhost and exit without writing anything. +# +# Examples: +# setup-service-subdomain-nginx.sh auth --app /var/www/auth.ladill.com/current +# setup-service-subdomain-nginx.sh pay --proxy http://127.0.0.1:9002 +set -euo pipefail + +SUB="${1:-}"; shift || true +[ -n "$SUB" ] || { echo "ERROR: missing (e.g. 'auth')"; exit 2; } + +MODE=""; APP_DIR=""; PROXY_URL="" +FPM_SOCK="/run/php/php8.4-fpm-ladill.sock" +ZONE="ladill.com" +CERT="ladill-wildcard" +DRY_RUN=0 + +while [ $# -gt 0 ]; do + case "$1" in + --app) MODE="app"; APP_DIR="${2:?--app needs a dir}"; shift 2;; + --proxy) MODE="proxy"; PROXY_URL="${2:?--proxy needs a url}"; shift 2;; + --fpm) FPM_SOCK="${2:?}"; shift 2;; + --zone) ZONE="${2:?}"; shift 2;; + --cert) CERT="${2:?}"; shift 2;; + --dry-run) DRY_RUN=1; shift;; + *) echo "ERROR: unknown arg '$1'"; exit 2;; + esac +done + +[ -n "$MODE" ] || { echo "ERROR: choose a backend: --app or --proxy "; exit 2; } + +FQDN="${SUB}.${ZONE}" +CERT_DIR="/etc/letsencrypt/live/${CERT}" +WEBROOT="${APP_DIR:-/var/www/${ZONE}/current}/public" + +if [ "$MODE" = "app" ]; then + BODY=$(cat <> Backed up existing vhost to $BK" +fi + +printf '%s\n' "$VHOST" > "$AVAIL" +ln -sfn "$AVAIL" "$ENABLED" + +if nginx -t; then + systemctl reload nginx + echo ">> ${FQDN} vhost active (${MODE})." +else + echo "ERROR: nginx config test failed — rolling back." + if [ -n "${BK:-}" ] && [ -f "${BK:-}" ]; then + cp -a "$BK" "$AVAIL" + else + rm -f "$AVAIL" "$ENABLED" + fi + nginx -t && systemctl reload nginx || true + exit 1 +fi diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..c5d1065 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2564 @@ +{ + "name": "ladill-frontdesk", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "@alpinejs/collapse": "^3.15.12", + "@tailwindcss/forms": "^0.5.11", + "alpinejs": "^3.15.12", + "html5-qrcode": "^2.3.8", + "qr-code-styling": "^1.9.2", + "qrcode-generator": "^2.0.4" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.0.0", + "axios": "^1.11.0", + "concurrently": "^9.0.1", + "laravel-vite-plugin": "^2.0.0", + "tailwindcss": "^4.0.0", + "vite": "^7.0.7" + } + }, + "node_modules/@alpinejs/collapse": { + "version": "3.15.12", + "resolved": "https://registry.npmjs.org/@alpinejs/collapse/-/collapse-3.15.12.tgz", + "integrity": "sha512-BKNANLtNXuWYOSAnajSKLPjTsmHRNrv0ALFTbpmqt2/klHFooPhctSwkhFVPQb7rZ8BjEKHmNaBwnSbgtpk6xg==", + "license": "MIT" + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "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/@rollup/rollup-android-arm-eabi": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.61.0.tgz", + "integrity": "sha512-dnxczajOqt0gesZlN5pGQ1s1imQVrsmCw5G2Ci4oM+0WvNz3pyRnlWrT7McoZIb8VlFwCawdmbWRmxRn7HI+VQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.61.0.tgz", + "integrity": "sha512-Bp3JpGP00Vu3f238ivRrjf7z3xSzVPXqCmaJYA9t2c+c8vKYvOzmXF7LkkeUalTEGd6cZcSWe+PFIP3Vy48fRg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.61.0.tgz", + "integrity": "sha512-zaYIpr670mUmmZ1tVzUFplbQbG7h3Gugx3L5FoqhsC2m/YnLlR1a7zVLmXNPy+iY1tFPEbNG+HHBXZGyId0G5w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.61.0.tgz", + "integrity": "sha512-+P49fvkv2dSoeevUW+lgZ/I2JHSsJCK1Lyjj7Cu6E4UHG4tS9XIefzIjo5qhgELjAclnen1rLzK2PMKJdo+Dyg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.61.0.tgz", + "integrity": "sha512-l3FAAOyKJXH2ea6KNFN+MMgC/rnE94YGLXs2ehYqDcCoHt1DpvgWX75BhUJxN38XojP7Ul+4H8PRn7EdyqSDrw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.61.0.tgz", + "integrity": "sha512-VokPN3TSctKj65cyCNPaUh4vMFA8awxOot/0sp+4J7ZlNRKQEhXhawqPwajoi8H5ZFt61i0ugZJuTKXBjGJ17Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.61.0.tgz", + "integrity": "sha512-DxH0P3wxm+Yzs/p3zrk9dw1rURu8p0Nv5+MRK/L7OtnLNg5rLZraSBFZ8iUXOd9f2BlhJyEpIZUH/emjq4UJ4g==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.61.0.tgz", + "integrity": "sha512-T6ZvMNe84kAz6TBWHC7hGAoEtzP1LWYw/AqayGWEF6uISt3Abk/st06LqRD9THd7Xz3NxzurUpzAuEAUbZf+nw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.61.0.tgz", + "integrity": "sha512-q/4hzvQkDs8b4jIBab1pnLiiM0ayTZsN2amBFPDzuyZxjEd4wDwx0UJFYM3cOZzSf5Kw8fnWSprJzIBMkcR44Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.61.0.tgz", + "integrity": "sha512-vvYWX3akdEAY6km+9wAqFDnk6pQsbJKVnj7xawcvs/+fdlYBGp+U+Qq/lLfpIxYIZvZLHMAKD9HLdacSx/r3dw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.0.tgz", + "integrity": "sha512-DePa5cqOxDP/Zp0VOXpeWaGew5iIv5DXp9NYbzkX5PFQyWVX9184WCTh3hvr/7lhXo8ZVlbFLkz8+o/q1dU6gA==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.0.tgz", + "integrity": "sha512-LV8aWMB8UChglMCEzs7RkN0GsH29RJaLLqwm9fCIjlqwxQTiWAqNcc7wjBkH31hV0PU/yVxGYvrYsgfea2qw6g==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.61.0.tgz", + "integrity": "sha512-QoNSnwQtaeNu5grdBbsL0tt1uyl5EnS8DA8Mr3nluMXbhdQNyhN+G4tBax7VCdxLKj8YJ0/4OO9Ho84jMnJtKA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.61.0.tgz", + "integrity": "sha512-/zZp5MKapIIApE8trN8qLGNSiRN9TUoaUZ1cmVu4XnVdd5LQLOXTtyi+vtfUbNnT3iyjzpPqYeKXmvJ+gJGYWw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.61.0.tgz", + "integrity": "sha512-RbrzcD3aJ1k3UbtMRRBNwojdVVyXjuVAFTfn/xPa6EEl6GE9Sm/akPgFTb9aAC9pMKGJ6CtWxaGrqWcabH+ySg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.61.0.tgz", + "integrity": "sha512-ZF+onDsBso8PJf1XaG9lB+O9RnBpKGnY6OrzC4CSHrtC1jb6jWLTKK4bRqdoCXHd22gyr2hiYmEAm8Wns/BOCw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.61.0.tgz", + "integrity": "sha512-Atk0aSIk5Zx2Wuh9dgRQgLP0Koc8hOeYpbWryMXyk8G8/HmPkwPPkMqIIDhrXHHYqfUzSJA/I7IWSBv8xSmRBA==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.61.0.tgz", + "integrity": "sha512-0uMOcf3eZ5K+K4cYHkdxShFMPlPXCOdfDFEFn9dNYAEEd2cVvmOfH7zFgRVoDgmtQ1m9k5q7qfrHzyMAubKYUA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.61.0.tgz", + "integrity": "sha512-mvFtE4A/t/7hRJ7X8Ozmu8FsIkAUat2nzl12pgU337BRmq87AQUJztwHz2Zv5/tjo9/C95E66CK03SI/ToEDJw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.61.0.tgz", + "integrity": "sha512-z9b9+aTxvt8n2rNltMPvyaUfB8NJ+CVyOrGK/MdIKHx7B+lXmZpm/XbRsU7Rpf3fRqJ2uS6mBJiJveCtq8LHDg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.61.0.tgz", + "integrity": "sha512-jXaXFqKMehsOc+g8R6oo33RRC6w07G9jDBxAE5eAKX7mOcCbZloYIPNhfG9Wl+P9O9IWHFO4OJgPi1Ml2qkt7w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.61.0.tgz", + "integrity": "sha512-OXNWVFocS2IA4+QplhTZZ2a+8hPZR7T8KuozsNmJKK8y7cp83StHvGksfHzPG3wczWTczyWHVQuqeiTUbjiyBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.61.0.tgz", + "integrity": "sha512-AlAbNtBO637LxSldqV43z0FfXoGfl2TW1DgAg/bs7aQswFbDewz2SJm3BUhiGfbOVtW571xbc9p+REdxhyN/Eg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.61.0.tgz", + "integrity": "sha512-QRSrQXyJ1M4tjNXdR0/G/IgV6lzfQQJYBjlWIEYkY2Xs86DRl/iEpQ4blMDjJxSl7n19eDKKXMg0AmuBVYy8pQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.61.0.tgz", + "integrity": "sha512-tkuFxhvKO/HlGd0VsINF6vHSYH8AF8W0TcNxKDK6JZmrehngFj78pToc8iemtnvwilDjs2G/qSzYFhe9U8q+fw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "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==", + "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.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz", + "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.21.0", + "jiti": "^2.6.1", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.0" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz", + "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.0", + "@tailwindcss/oxide-darwin-arm64": "4.3.0", + "@tailwindcss/oxide-darwin-x64": "4.3.0", + "@tailwindcss/oxide-freebsd-x64": "4.3.0", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.0", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.0", + "@tailwindcss/oxide-linux-x64-musl": "4.3.0", + "@tailwindcss/oxide-wasm32-wasi": "4.3.0", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.0" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz", + "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz", + "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz", + "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz", + "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz", + "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz", + "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz", + "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz", + "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz", + "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz", + "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==", + "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.10.0", + "@emnapi/runtime": "^1.10.0", + "@emnapi/wasi-threads": "^1.2.1", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz", + "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz", + "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.0.tgz", + "integrity": "sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.0", + "@tailwindcss/oxide": "4.3.0", + "tailwindcss": "4.3.0" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "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==", + "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==", + "license": "MIT" + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/alpinejs": { + "version": "3.15.12", + "resolved": "https://registry.npmjs.org/alpinejs/-/alpinejs-3.15.12.tgz", + "integrity": "sha512-nJvPAQVNPdZZ0NrExJ/kzQco3ijR8LwvCOadQecllESiqT4NyZ/57sN9V2XyvhlBGAbmlKYgeWZvYdKq99ij/Q==", + "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/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/axios": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.17.0.tgz", + "integrity": "sha512-J8SwNxprqqpbfenehxWYXE7CW+wM1BB4w3+N+g+/Wx40xM4rsLrfPmHHxSWIxJLYDgSY/HqlFPIYb2/S3rxafw==", + "dev": true, + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.16.0", + "form-data": "^4.0.5", + "https-proxy-agent": "^5.0.1", + "proxy-from-env": "^2.1.0" + } + }, + "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/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/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/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/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "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/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/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.22.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.22.1.tgz", + "integrity": "sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "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.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "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/esbuild": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" + } + }, + "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/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/follow-redirects": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "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/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/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.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html5-qrcode": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/html5-qrcode/-/html5-qrcode-2.3.8.tgz", + "integrity": "sha512-jsr4vafJhwoLVEDW3n1KvPnCCXWaQfRng0/EEYk1vNcQGcG/htAdhJX0be8YyqMoSz7+hZvOZSTAepsabiuhiQ==" + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "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/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/laravel-vite-plugin": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-2.1.0.tgz", + "integrity": "sha512-z+ck2BSV6KWtYcoIzk9Y5+p4NEjqM+Y4i8/H+VZRLq0OgNjW2DqyADquwYu5j8qRvaXwzNmfCWl1KrMlV1zpsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "vite-plugin-full-reload": "^1.1.0" + }, + "bin": { + "clean-orphaned-assets": "bin/clean.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^7.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/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/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==", + "license": "MIT", + "bin": { + "mini-svg-data-uri": "cli.js" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "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/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": "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/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "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.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "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/qr-code-styling": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/qr-code-styling/-/qr-code-styling-1.9.2.tgz", + "integrity": "sha512-RgJaZJ1/RrXJ6N0j7a+pdw3zMBmzZU4VN2dtAZf8ZggCfRB5stEQ3IoDNGaNhYY3nnZKYlYSLl5YkfWN5dPutg==", + "license": "MIT", + "dependencies": { + "qrcode-generator": "^1.4.4" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/qr-code-styling/node_modules/qrcode-generator": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/qrcode-generator/-/qrcode-generator-1.5.2.tgz", + "integrity": "sha512-pItrW0Z9HnDBnFmgiNrY1uxRdri32Uh9EjNYLPVC2zZ3ZRIIEqBoDgm4DkvDwNNDHTK7FNkmr8zAa77BYc9xNw==", + "license": "MIT" + }, + "node_modules/qrcode-generator": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/qrcode-generator/-/qrcode-generator-2.0.4.tgz", + "integrity": "sha512-mZSiP6RnbHl4xL2Ap5HfkjLnmxfKcPWpWe/c+5XxCuetEenqmNFf1FH/ftXPCtFG5/TDobjsjz6sSNL0Sr8Z9g==", + "license": "MIT" + }, + "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/rollup": { + "version": "4.61.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.61.0.tgz", + "integrity": "sha512-T9mWdbWfQtp0B5lv/HX+wrhYsmXRlcWnXXmJbXqKJhlRaoS6KMhq0gpyzW4UJfclcxrEdLnTgjT2NjruLONu0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.61.0", + "@rollup/rollup-android-arm64": "4.61.0", + "@rollup/rollup-darwin-arm64": "4.61.0", + "@rollup/rollup-darwin-x64": "4.61.0", + "@rollup/rollup-freebsd-arm64": "4.61.0", + "@rollup/rollup-freebsd-x64": "4.61.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.61.0", + "@rollup/rollup-linux-arm-musleabihf": "4.61.0", + "@rollup/rollup-linux-arm64-gnu": "4.61.0", + "@rollup/rollup-linux-arm64-musl": "4.61.0", + "@rollup/rollup-linux-loong64-gnu": "4.61.0", + "@rollup/rollup-linux-loong64-musl": "4.61.0", + "@rollup/rollup-linux-ppc64-gnu": "4.61.0", + "@rollup/rollup-linux-ppc64-musl": "4.61.0", + "@rollup/rollup-linux-riscv64-gnu": "4.61.0", + "@rollup/rollup-linux-riscv64-musl": "4.61.0", + "@rollup/rollup-linux-s390x-gnu": "4.61.0", + "@rollup/rollup-linux-x64-gnu": "4.61.0", + "@rollup/rollup-linux-x64-musl": "4.61.0", + "@rollup/rollup-openbsd-x64": "4.61.0", + "@rollup/rollup-openharmony-arm64": "4.61.0", + "@rollup/rollup-win32-arm64-msvc": "4.61.0", + "@rollup/rollup-win32-ia32-msvc": "4.61.0", + "@rollup/rollup-win32-x64-gnu": "4.61.0", + "@rollup/rollup-win32-x64-msvc": "4.61.0", + "fsevents": "~2.3.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/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/tailwindcss": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz", + "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==", + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "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/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/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/vite": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.5.tgz", + "integrity": "sha512-KuOaNhcnGFN2zIPGA7wRmzF+lJA1sea7rHq17aiJ++9lzY1WWG6Jpwqwe1KNbRVPIqHmr8GLYx7jbrQcN/7/ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "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", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.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 + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "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-plugin-full-reload/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/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..15dfc22 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://www.schemastore.org/package.json", + "private": true, + "type": "module", + "scripts": { + "build": "vite build", + "dev": "vite" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.0.0", + "axios": "^1.11.0", + "concurrently": "^9.0.1", + "laravel-vite-plugin": "^2.0.0", + "tailwindcss": "^4.0.0", + "vite": "^7.0.7" + }, + "dependencies": { + "@alpinejs/collapse": "^3.15.12", + "@tailwindcss/forms": "^0.5.11", + "alpinejs": "^3.15.12", + "html5-qrcode": "^2.3.8", + "qr-code-styling": "^1.9.2", + "qrcode-generator": "^2.0.4" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..4bc00b4 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,38 @@ + + + + + tests/Unit + + + tests/Feature + + + + + app + + + + + + + + + + + + + + + + + + + + + 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 0000000000000000000000000000000000000000..e6f7266459fd9b9fc3ec4528ace7ff62b3d76458 GIT binary patch literal 270398 zcmeI53w#vix&J4Cf*=%mwAdJHPxq$^4Jw4|x^xcgRl2VTi(Ys@pjH zt9Brj?Jn4Xze8SwJO^11Tkvy;ICram7Hq-<$dEZ({Kw4M>@R@mMZJ6Po!zO$W+li1<=5O&2s(#%sEZD*}K{pwZZzQK0a8eoX>=*&&r-J!% zZ0`f_&w|yDAl;B7iMY+w@htEk&nD2ZBank&|9`N339=F*!6r<{u@TtjRQLR2tbtr= z09*@_>?@F@wxN=w`0_tQ`Th%V{1Sx9_WhY+I-Tp}kpFmg;Q(yFCy*A{fJa~h=3`6# z!O(@9{r%>#Z;;C@%Di28h=Cnz3%Gt>DU*8^RLRY7x z!3M}&$Z3A~1J&#kq>{DyJ3VMX>7$o?{ans{qrklkww{NC#?Pk1njXJv68=>?K-+G} zOYjMnVJvbX#u;%xVh{P7lj3W@RdZOVu0GHYV{Xqz|6MiO^EQFsPCYW*mwPfH|Eet@ zJFo+GU^(Pm^cfrrTM++c^HJ77Py@2uCCF&c2lwM8(YFF@ZGmKLylr1t&BnPV=3lh~ z)L!^5ofBo;-CBh zY8!YRcAy+~U^uqsg1~}LTh;%K!`1pD`+eQ$TRSTf>ung0m>)j9#iFIo%! z?HEJU5AzN!NRIIz8LSJCf#CiIu(=sx=&`!lurJJiT>i-p(3s-4;Rh@M|HIe@7{?ya znB66dc9Xw95zMTHShjsHnayDS6Y{V60{dYD9!L9N(QJxg%D#ZE4M9!KL7}$x2x8{8 z|0{%I<7OmIrdhAU{3qpKwFBExAE5YTgV_e?(*!uHI%wSPXs}ujp}Bd?ei9up|0(lN zc3>}LCG5bNTp!Sn4RE>k32t{+f3)#U1M|OwaNB+o?p52!{HMh~*?_|+|NjcP7}Ae@ zf&AJ5%*~^5e8@u_qvM-Q3Lx8z@f>ZX5LmZxU;GSY>GyA>J z0rTG{{>cV(gZpP7B{hf-wUFbKXVnPMx_C<}_hLMc5?lMv;GX^cUU0A4OXk1N{HyhW z&8Q2^gbaXWl>w_>9DY8{)1}z@G+*y6H4pQ)_r4GFpE3T)4txssD;FZx5XTtFtd(-P zIuVbnYY^D40PhrIoBjO^=z#gpDF0*wzJU!`f%?D*ZV$+e4G^o^5O=p@IGDd3@(r_} zIorqlXPkes0bOAKL2OT*vz_Y#eX#=IKES@zeh;{(HF3Gz&!7&N|E%y&Hh|_2tcM*K zi>)vRYn}67>Kc%pK0&U4NWRm+{38(4#opC}Eo1((#y{BriaGcgY`|Gm7a-xk)HHw? z9TcZyEc*8z11E-APfHI>r*jX?e^&V?8$j`g|AaPy$=olHoPDRO195oK&M$#|v3)({ zP&)aUznfnDi22Vt|Edk3HA&7V8^CrTu^m8puf*rV_HnSx^Yt@W*Na&pv;a*(ZCz{O62+vH>LI2TaD6V+;n(fYR1i6|C=z zN`0Sw{v5E+{O6o~wJy*C8^Cn|m49yQ%Uho&m;ZUO0g4}h{(uQq?i0A}F2B;&=W;1y zdsd-5;`)A$%6%&Px%|%?`@}zu4|p8>2gV0jaBWh=>p*?K^LVuN-G{trxwUsx2J^Y) z@;|ROfZ~lm1~~~5+bCw@Bkt<`LXEq7AoBiA5FXo;<8oiMIm~}v`6oZ%Abfy(Aj7Rv z7jVh@ge9(S#OU-nkq>!1f1cPU8^HYMoqw_cU1$%y19JukVZ8wpm->N6lLV}_Eh%$& zKUK>i-ljKhCsX=j{&m4W*#Me1SXutMzrd^pVCf3KP+7hc{rv64$iF;)Kab_UYCo8N z-SAH~;1kpVu9))@<_egsJ@A%WsI7mm;F5iXh}rkNn*Vs4pK@Q-JM*tA{>cVxf!Ju? zu$kHekl!eF&roceAl%QVgR-A&0Q0Xq{{7(oS;Q0_jrxEossb|R@XM|aT8HmenwT3DychNeWlfgW#zsv0FOb5)rZuzHrz{l_d%C0kLJs=pvVmXlK{$kO$4w!!f@xRUAfqFnS+5-CN(GQR+_mJN|9`*m%n0tM5uf8AV-%$Kh z-RYxw+x$hdb+)chwYy7jxjP5K_rD)`i(_{h#P?zT4aYx?3!pVchCy`E7EmkhqdGs$ z>$?o>b9=u**e4%=`8Oc{+x+cdzx+z@uZMMpslN|$D)Q5Fl&4sXqXXvOko;3U;B~YC zoI^gqf;{>GPN_p!T79$t{JX*Z0cPJg?9;nq{te4NjSc+Oye<7nDe2wydX1>}1l=1z}4#e*WA~R(pnTffCj?NqAZ1(SE{ta#a4uSvW zFV*B`Jb;Wgf5^$mQ-5Oi^KSd7OmByL47UFr+uJ44cRltm!2UU?pN&QgrXi35ip8Y; z1M>o8G~_Gh-_ZP%f3^eV|HN$j05ry5p749>@2CDgp4XqBa{nN7{~=@}%JiS1Jf8&_ z1?GoHlCQrs`=5g3jAUKQy}FM)!~E;nuTSsZj)48!ApNpw1A_H_8tcPle{R{Q{*^tD zKcIYHj`vXNlsbnmUhc;lirp&GX>FN*!|-q{!Pb!zz5iz9UnlJI#KW6cLMU_ix6(} z%dQTnZUsHJEp>{%!U}O$fh1xL6^ymc)F1P2I{wKYcn@X&S(z^XW%4sC_E5cl4)P$i zH!=U&(LpEb@h_u%Unt4#r#Y(+6v!#m<$Gfjn1569e+cZ~?nc|r4H=vl5Nz`w4emEG z`&qGl)TT$=mt#!z$Xg|p^-^1Juul0L=HHb3lMk>J{ej=k)R@4UnnOb6;@$B5l{GwQ z>J8iFN>~ieh{Crh6f{3|1FH4T!^;4 zjn12)Vzs=tT{%7|!P8hX4Vg1hjD5o9<|2)U9@BDW{m%l-of4+3} zhu}WDb^M-;3iEGj{;3_{Im8AT(wF!k!TJ5?fqkCe-*@&YHrkKThdNALv=8wTlaJBs ziQm4aG5@CL{|os4y^asC1nqtc=6_D(eQJ?!4?(!yulG8jxj0w5Yr2jR^H}C>P$#skS|j0d2(VpWxUson2Vz)0hKK&=KCc=b@g!( z5g%mX_uo&iFOd48Q2r0VmSTIc-=Dq?Xx#pzPPt5K<- zxjF@>bKf}luJ1GdY1==FiE_Wo*)g&TYa;3OkNLL<|J(duqAzfII^zM+Rz+)iEJQx; zVE)tMpM3uNp}P}EhkE{F{w>4*QI!98&PM$oYX>IHk}g-5;C3HCT;KL}%zj$zQy
+k_}>K|;8IABYlgYq-NNGXuc_UC9`ZBy`KQJ{Y-HOXWx0I9{{ms5Ie48FnoY!F8fpVeK3~aH(9LA-&o$>*c9g9V*Cf{!`-rbJ)u3mY25|(0C~${W1U6;vesOFW8?!?>*600Y7QEL^>{bQ{9BU$19&8gF70iB*?EBH)_c-SB4X5?bjr_;_TatgO1FTxG#Xm^f4@h}gcKSvjZ$HWW z_ryP9bxJYato^ zkNLMO|9deO$bJLr0OhCyxLw_t>yNcPq>eJM&;5Rh`~6-)%+9kRMn_+{f9Bt^{2xZy zUwM+>FOUyFbN$_7djYmf!9R^-=Q01WI@pK0Q90R3_fq4w`DqOo^KV)H{ouZN9^!%p z_{W$(aW7(hv^~n~C$N3ACYS6R2^*kA$k6-DzjgV?yWfntz{3|(`Hy~ojQKke?7z+Y z$K}5Z+%K3t>oe%e*lqq=gT?$?n*YyG_ABE6oRUv~Ob7cEpPGIDSRHHv|7V)1>?b?G z{9BrTAI1RAr*VK(|A#CD`yA^hmVLzWYg<+^|DTGVq%A*2`))q%;v3L6(rGBJQ@vT{-}3xZ zOh7ldcQO0X?6?0D<^CmRE&ItvF#pUy^1v$0XS;p_D7Wc zWDoB}9OPp#_J{d5dEPfW+o?Ps^B={(djcHf_D0eEKq*}viXe`NjtJ36JYec}KYBRX>ktTL4=S2F+1KifUU?pdb%C;pv{#lz74_ayVr{4@X7;$QOE z1jrd+|7GT%`DgyE#(xp`FLHqWR_34iXa23jzpJT)>ir~_L-sTO%s=yQ9sVVcU8wnW zSpn+)OPT#J`=krzK;giuday+MAN+o_{}&yH?K-gGyi7u0Z_hyecMp5|0tLJ z(Ph6f4(ck8RD34b|1Z#MqL zhGH7?cMI4*%>2jjzX|=KXMuYGau@T@{F{k?n(r%n?W4f`CT2f|eZ)Srt*dFiV2~I5 zLl%Pn4z>Z7vjL`T|8sBno*=G1kNW)Qg8g>pKOX-@cT_+}Udcf+9qfP3{4@V%@Bu{3 z_Ypmg6T$s&nfnK%{co86xcq;H zc2PUci$wn)q<8?fk23$vztQ&gzRJf6Y{^8>i#q~ zYDx1&%Bv3c0h|E#c`mTE)&n$+|6jFcvLJgLXMy`Snf-+9Q{Denl>etgLT0|HW`?k8 z?%9Gza;)I;pUeMH#xTfEwWmaIc}fOiOv}B<-$$7Lp7^(|lD(yaB#$HF?FQ=rv%vqC zYy&J~0}NmO(;Pnu^L!vzfcvkQ{hrt_It2YVD^^buZd`jw1pf_ku>hg9pkHDBng58) zq0GF`mhCe z(=^2OwegyM(R2Ibe}3NODLx(&_mwtO*{C0I4*2JOKx?!E8rJ`(_Wr6h#RXu$9OWAK z^~dL(%6wH0L07j{t(g*+eLCn7!M|McE%5&-`v8{k0Sw8%>@60`SJGO(wu_O!-`C`E zHLvqF%)P3Mz0lVT=qfS)Xan##O9rDKpqcq+{u5@DJST{&&lg0meLV6qujLubxypO= z_I2p%q@MV1bWa!7lz)f%0q24LLu>;~ZvzZh{-ckd`uWEoAOC;IQAl(?=g;wVatHcK zFy=RY+n;LE!9MXn3G8oY{+WL@U+7^=Wfz3z_N;<%OrQ9i$FqOCps!0HNnfKE^8p&& z7YqdZ>zIG$KWT=^(HAK1LWuo)AUwV|b@s^~yohrDv}9$!`YMAy0LKI}e;>L0}fY!vMSuziU6XZ};oH<|ukko^(ZlF#4C?5E8>`9vEr zC;B*=Ba!N#$Ax~tN*me%?U#aojtgqudVns=|60sTUA+1`)Xsk@@-MaZaeY6&Z=bBr zgEmsz!Uew?gSq~Z^L>)p0x#l%K~4exe_$WLv_63D_;;_JCfxe`)fC6$TyXycgyyUy z%jcXPUq{<9=I<<;>tFxm^~sQrNN=vWP*^qp9EuNC3;ua5fH{2tUGY!t(^YG1{gG!c z1M`1n?)z-_?yYW~I)K(f=*^#3!rB0m{XFo`ae|w57lGhVT4#ou<3ih95{+a(!#^}S2(`y$X1JJ%d0cHO~;C?5U`I+;1 zP>1?&tbI6|*7xb_UlZB^*DRh)KESo$e;?ZbQ`vx=`~TP7Gn(Q~kC7URTws11gvaq` zrp#CCJk(#}zU%obY5mi_;;)?Fh&e$JiVe1r`Dgyq%~Z&b!lHY}3X<0`EVwqu3pmDo z`kCck<$o(|>$f54zNUoVe_{ELgjE%jXq{k+4b;vyz%(`>tL1-Zk z?*9|q(|WvI&(99~RQBICap@qcUnS(ZHwjHri2$KB0$ybPng2w2h~}7x4OK$r>Y@U) z?~Ov+-Xi2lm3y^};%#>Le-G^`XUUq_{)ygGy2qQOV&Or>2XM>=|J`f@Oko2uR{m3Y z<7#viAn%Qkymkk;$DFgGzd?A;PIg$2wxLJB{%y`iM?dOM&BkAFUhwH)zlHf{{+F+t zDa?K7bfLPj^mw#2mtu}t4eFi01@m7)cpZ-1aIe~d9nkqX5W(HpyYYU>Y=&2M2+J=~ z;sd$CKgS3*{+Pg&%m3w%UoKq#^FqPZG_4=X_Q7C%B;;b`w|dC45E`?05TfQs-sVmh zWNU9*(p20p8@|8RE;Pw#2aron0{?$vAHeWFKwSRa-cq5~GmXl1tP^D)3EnBz=5+X# zS3;I!|7pm_5E`pTZBER3es%B`-pj;n`Tbh{X+OAL_|@Q_`vMH?12jnXy~}=KyP?Ws zn+3+N0LSwo)sPjCU!r_pi{sB=|1}8v^!a5xk&UIe{>%S%_~B?wv-UYSCU6+|=P`i> z=Km3w{Ydr0MZ3W^jlU!DLAoLA$Lo{z7#o0gmrb(QHYO8e{Zcg;O-n8k)-0MtV*T1B_V@SXFKJga4R31^)S%F?7&@aTRkHKX|SnH>V!oCsodS`kp7SRtUuj=Jf&% z>H{$UhPQLSl|98L(V7VP_`_O(v|iw3*Z__bYCs#n{2QA8uhBL$6Os?~mER=(*H%w0 z0RPkQBTNTzn*V`Y>4S4XHiHH|&zYg*>+W`IB051Qt!f3X}PIRE`udQ6|=%3Fv|DNnl zBi0RUte!d;;{)#o{|DIy=-UP`|Ayj!z1-+H0n!tKc~4W?0%Zr!5jH?OAoFh+{@+KL zZ_{hJuQfUiSU0Q@0v})&%KtCe2hgt%!2BD6e;@kz%kOyly9Jq!>80g1llva58{(-h z83gu!0^v9TI`svZf8Fy>^ZFka8yrK$hRnwE%OvmduBFTmkc&s6Pmt#bGXL3X6EpjD zTTu3o&-WO=czmaFY)yrY`UEjQz_FR@0s5;4aQUz6^8aJZ?JKK%WKt@q>GC@s7wQ3b zURdCf9oK+=9vi4LKY;nyE&pxs`<-G#Df;@1<@ZM$B9F5~@VH88Y~W8}12}H5j%)z) zuS@=wIzN1V#8l1S+`edz`|??d7bH2bhM=PfHsCPV1@uuDVE%Q<|8p4QHx|BsUy#$) zxsTp*g%BJcdKG9a!2mbf74amI> zVE*&U|6#0^_?WZ7eiF7uLN_D#>bdh0!CPgg@qs6T{RRm43+8xi0P~+W{;7}uam4T$ zTLt!A7V-Pz8IIsQfwAxd9)k_w*kL)e0nC5i_|c_$cQK5sl`GkHuIA6R7*UbI$)!l>0QN=X@I5N5X%C;HjMvh#@Q&Q{0gC5cUI@|9thsXY+So z0`rq$0|dnGXY`{qKy8BX1J1zqao7NE56H3&;PO9b<^NG||1v}=_oK2se++5>^MnKs z)deI6)dk28;JQE-Z2I{(D}AHn{4kQ8%2e~sD% z8!M*J+M=hy2Y3X+V}!Ec2QdFx<^K@ae+=B8;KzrUXP_pue0tu0MI^Ya;s2E0{RW1MV&=(r6wfaeQj&;~I7S>eA6%s&YB zPZig&&z}i1*65lhV9vlGv_4yh>4WJGn zc$`HAumLo8cstvGzS}_NKcoDAf^xsIrfJ5p5au=u8t_PnB`8fN8!!X>zXUnTcA)om zfceiD|C`ayHxn{|+xfEqe$*vBm^Xwz!g25k)`5RsU!<3H0p`EY{C7(Ywr5b+FS+fR z9}3mY7ewV${+KNdzz3jlLMM7f$1Sh{JJ}CN-w$B^`^0}c>iQ4J9>>_p4;(AFz1+s1 zE!GoV7wpqogU5PB`}N>|2ZZYbY4`%nf3Nv(g`Y1<9{XVK*H1)eZjLK!jJS*Yd!*uN z;Qx0JUUxi28^HXh&HrJ^Q}kb8|GUn{;sLVPS}}WaLv-(c#Vca1G0`y^{MSRigm52W z5*;xAY4N`o?fWai{+THEdzVT1tgLFFsb+@ITw8|NqQ&3Gc%fI>2J~zLng5je-;Q>^ zd5Fp`|NBwqKaMiLsB*Qffb05M z05(gP1p5MHAnF9O!9T4(%<%-G>I2MwLjGy|{@dVviOX9$43ec>%9qWi20Yd91y+>O zc%g~le`Ag?U<`?y?Fe&;xOO8Lt};@10XiofhO31Jyx{?%zu#&tUrbJy-TI0(m|CEpO^3K z$-kc?4Zshe_(I2F?BG@4es^=-$qub(66boette_#xJfhyR5 zO%Th(8L}Y%RL9=|Uw;{xFQn}F)5osTVXov`%B2Pr8&GBM=aouM!M+PNV5=4U0Soa@ zvH0FaS^s0KvHLBox7Q#0xy)kxTL#cTvs@}{TyhoF3&z6^tbh&J0x|8JA`9?O@pnH! zyWZWHqkG2DA)lBHsCo(JH!sfm6tcb7C1(N{i`9(5Sn9X=rP46;h)Cp?!>&@4cN|= z8tkX}{eIz&C+FxY5An?yUjt3<5@Fr)>C`?j7-I^jz$ds9HsB3N2gGnbfx-Dd0NyF? z9%60Vr(ru(Y$(MX9j@OSpEUhH0eBahAvB&4_MjYdjc6=UE98h#Y=Hs!r}n(hAx}Z7 zC68m=P3tc0SG%@M{~3nw(3Bc@art#Z&Gkc3Hz*wf8!!nmNo&CWOAx9b=z5-kLHMV> zyPc4~pp3r-+amb*BW`ZGq@dP2-IRHXAIg{-@W>RG*pB&z_T%6aTmb%m0(lnlDMWW| z1v=)R%K0zQZ}$S^|6-ipWtf9IT=v=uxINF9Y*_KGy)Mi(2(%fNVtk>5_5zAeNb46- z%<{a~6LiEs@lI{`#QZZDpSK*_8M3!{)I-m$DDeKF-iq0WpV=fD0QWTixB&HopZ7AMH~$3RFCv!SO6*J6mLZq{vqUV;QCp}dhFi= z-f3NoSy&fmg40_v1fP!)8yx7D=UDma<^%pdYam(!9v9X?b(IYAIEzn)k1zo?p#*Xn z*uNIrrI32GFFb(HPe7i==QknmLf(PAhhw4f%W?Sc0Ls51$_Q2Nd0?--+`B zt!f%=2dWnhZ?(yS5I!E<3+h(=R$25HB7Q#3OKMTi3~XamSRa`lt%1_^D zA9Dj5s>$xcM4h#MMi1gu6cLM^n zucsjTX`<2xMyKNiwQ7E`EJ=Edws3w+_?xhhNpyOh=0IVR^tyQIn%9rynCq8?)0NDu`8nmrHR%d0G3nv# zL5~-6{laj%VlAW3*Q6K5JAZgMdzJMuy)Mc5lpJ&a16$Sir>LigbVWUBr}uABudk>t z=KR#t74^oRU$0)jFz)jeq?}%sTpRV4$T9`-YpK!Wz`IzTVIX&=t6QAGL z^g#AVeEoc<2eMz{`_p@RAp0l2|7@p+Gg^N40vJV<$`LnYko4Awo7Q{?-hZ~!TQolz zu^asTe5cn(+?3`+@c#OmuDN35Zt(h%2Q{Ap>0vWnuSuibG}FW7Q}8;0^Fv-sFVjO_ zNrLmk=`F$ERX2g(4|yg1dzap-Uao&=FL)$y{gzbI2ezu;3~mGG*Q-YdhVC>XT}>9^ zr-xsk#{UYOqg+2(dg%2C!$X?X{(ksi{PgfmYy3ma@3#goh8kq}r!?s;p>&P^s!6X; zk{(JH%EFHtK3{XJPP4Ckf%K!fr#g-QA4(5D9&iZ%Rw%tSd`w$^2&K1Z)9b?@XpeqB zd<0%gefSgYAzgEONN(|pZ@CUD$E>FAYG#j z`bJ&E3GveF0~b>MN2#v4TRK!1alP2|+cjq^4GJsLhj>Gk1{(R+&1+7f*<{8@22lcl$YzaPD)IE4`kkNifmbj2x)dV$(2 z6w>qc@Pd-1m(lq>yns4N??J&za?Wd*H{EeVb zn^1wt(hCF6mr%iFf%Jq5tP7+kR8TNEQ4S5NC&t964;WNWj0sWGgX&4Bpy1=jmLdo$J5PJLs3J5)Z0tJK~KY;>5kDmacvhe-IeZabKdfW%p zB*%L|&Ev&=0L|^keE`kv$9;f8?eE8VfI4k@oCkzS^SZ+Q3$mIRY1oG6GSz7o)+lz*(CABd@PX2=2COzYy{A0$+%@fta7i zceLl%1uv@Iw1mG9^YrvR%`1p^dF>C>X|EgF5B)%l@&aE8y`%W2hu%Sg(?dEg3;kmB Lj-sQ&h@<}tE++9L literal 0 HcmV?d00001 diff --git a/public/images/ladill-icons/bird.svg b/public/images/ladill-icons/bird.svg new file mode 100644 index 0000000..ad8a1a1 --- /dev/null +++ b/public/images/ladill-icons/bird.svg @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file diff --git a/public/images/ladill-icons/domains.svg b/public/images/ladill-icons/domains.svg new file mode 100644 index 0000000..ba4956e --- /dev/null +++ b/public/images/ladill-icons/domains.svg @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file diff --git a/public/images/ladill-icons/events.svg b/public/images/ladill-icons/events.svg new file mode 100644 index 0000000..6465988 --- /dev/null +++ b/public/images/ladill-icons/events.svg @@ -0,0 +1,2 @@ + + diff --git a/public/images/ladill-icons/pro.svg b/public/images/ladill-icons/pro.svg new file mode 100644 index 0000000..8ab5fc4 --- /dev/null +++ b/public/images/ladill-icons/pro.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/images/ladill-icons/qrplus.svg b/public/images/ladill-icons/qrplus.svg new file mode 100644 index 0000000..023c58d --- /dev/null +++ b/public/images/ladill-icons/qrplus.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/ladill-icons/server.svg b/public/images/ladill-icons/server.svg new file mode 100644 index 0000000..5fbb2ac --- /dev/null +++ b/public/images/ladill-icons/server.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/ladill-icons/wordpress.svg b/public/images/ladill-icons/wordpress.svg new file mode 100644 index 0000000..0be90e4 --- /dev/null +++ b/public/images/ladill-icons/wordpress.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/launcher-icons/accounting.svg b/public/images/launcher-icons/accounting.svg new file mode 100644 index 0000000..68b5263 --- /dev/null +++ b/public/images/launcher-icons/accounting.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/bird.svg b/public/images/launcher-icons/bird.svg new file mode 100644 index 0000000..ba4956e --- /dev/null +++ b/public/images/launcher-icons/bird.svg @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/care.svg b/public/images/launcher-icons/care.svg new file mode 100644 index 0000000..080dbb9 --- /dev/null +++ b/public/images/launcher-icons/care.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/crm.svg b/public/images/launcher-icons/crm.svg new file mode 100644 index 0000000..5a15828 --- /dev/null +++ b/public/images/launcher-icons/crm.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/domains.svg b/public/images/launcher-icons/domains.svg new file mode 100644 index 0000000..ad8a1a1 --- /dev/null +++ b/public/images/launcher-icons/domains.svg @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/email.svg b/public/images/launcher-icons/email.svg new file mode 100644 index 0000000..72877c8 --- /dev/null +++ b/public/images/launcher-icons/email.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/events.svg b/public/images/launcher-icons/events.svg new file mode 100644 index 0000000..feb13f8 --- /dev/null +++ b/public/images/launcher-icons/events.svg @@ -0,0 +1,21 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/frontdesk.svg b/public/images/launcher-icons/frontdesk.svg new file mode 100644 index 0000000..ea54262 --- /dev/null +++ b/public/images/launcher-icons/frontdesk.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/give.svg b/public/images/launcher-icons/give.svg new file mode 100644 index 0000000..8985473 --- /dev/null +++ b/public/images/launcher-icons/give.svg @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/hosting.svg b/public/images/launcher-icons/hosting.svg new file mode 100644 index 0000000..bd7b96f --- /dev/null +++ b/public/images/launcher-icons/hosting.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/invoice.svg b/public/images/launcher-icons/invoice.svg new file mode 100644 index 0000000..8c0e070 --- /dev/null +++ b/public/images/launcher-icons/invoice.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/link.svg b/public/images/launcher-icons/link.svg new file mode 100644 index 0000000..4122dc4 --- /dev/null +++ b/public/images/launcher-icons/link.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/mail.svg b/public/images/launcher-icons/mail.svg new file mode 100644 index 0000000..17ee6ca --- /dev/null +++ b/public/images/launcher-icons/mail.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/merchant.svg b/public/images/launcher-icons/merchant.svg new file mode 100644 index 0000000..5029df3 --- /dev/null +++ b/public/images/launcher-icons/merchant.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/mini.svg b/public/images/launcher-icons/mini.svg new file mode 100644 index 0000000..62957e6 --- /dev/null +++ b/public/images/launcher-icons/mini.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/pos.svg b/public/images/launcher-icons/pos.svg new file mode 100644 index 0000000..3bdb6c6 --- /dev/null +++ b/public/images/launcher-icons/pos.svg @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/qrplus.svg b/public/images/launcher-icons/qrplus.svg new file mode 100644 index 0000000..023c58d --- /dev/null +++ b/public/images/launcher-icons/qrplus.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/queue.svg b/public/images/launcher-icons/queue.svg new file mode 100644 index 0000000..3c3dd8b --- /dev/null +++ b/public/images/launcher-icons/queue.svg @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/servers.svg b/public/images/launcher-icons/servers.svg new file mode 100644 index 0000000..169dc36 --- /dev/null +++ b/public/images/launcher-icons/servers.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/sms.svg b/public/images/launcher-icons/sms.svg new file mode 100644 index 0000000..bc628c1 --- /dev/null +++ b/public/images/launcher-icons/sms.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/launcher-icons/transfer.svg b/public/images/launcher-icons/transfer.svg new file mode 100644 index 0000000..1a18372 --- /dev/null +++ b/public/images/launcher-icons/transfer.svg @@ -0,0 +1,25 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillcrm-logo.svg b/public/images/logo/ladillcrm-logo.svg new file mode 100644 index 0000000..1fc582f --- /dev/null +++ b/public/images/logo/ladillcrm-logo.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladilldomains-logo-white.svg b/public/images/logo/ladilldomains-logo-white.svg new file mode 100644 index 0000000..0ba849c --- /dev/null +++ b/public/images/logo/ladilldomains-logo-white.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladilldomains-logo.svg b/public/images/logo/ladilldomains-logo.svg new file mode 100644 index 0000000..72e4745 --- /dev/null +++ b/public/images/logo/ladilldomains-logo.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillemail-logo.svg b/public/images/logo/ladillemail-logo.svg new file mode 100644 index 0000000..f5d4f15 --- /dev/null +++ b/public/images/logo/ladillemail-logo.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillevents-logo.svg b/public/images/logo/ladillevents-logo.svg new file mode 100644 index 0000000..e23909f --- /dev/null +++ b/public/images/logo/ladillevents-logo.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillfrontdesk-logo.svg b/public/images/logo/ladillfrontdesk-logo.svg new file mode 100644 index 0000000..0008bdf --- /dev/null +++ b/public/images/logo/ladillfrontdesk-logo.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillhosting-logo.svg b/public/images/logo/ladillhosting-logo.svg new file mode 100644 index 0000000..6a66d01 --- /dev/null +++ b/public/images/logo/ladillhosting-logo.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillinvoice-logo.svg b/public/images/logo/ladillinvoice-logo.svg new file mode 100644 index 0000000..991b473 --- /dev/null +++ b/public/images/logo/ladillinvoice-logo.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillmini-logo-email.png b/public/images/logo/ladillmini-logo-email.png new file mode 100644 index 0000000000000000000000000000000000000000..c22d791eb39c354ccdf920ad021f2b341bcf5b72 GIT binary patch literal 3302 zcmVou@P)_Z1)Eers31uNKn2NGK(+!x1!OD0SHZc1oCn758Dm+0EZMUC{oeEAF6%h5EzPHq zG$SDZ0001&oKB}%cC54GB|H8*6)2tea{3DW|28}3*%1YNe^GWUxvX!cdsw3e001BY zr_=LEfkF_{Tn2N~?C2Qipuf9M_~R0#k81VPekWNC@Vr1^@sc@ep{d{y9)FD2hVdKn#`;0{{R}2m*TsQ4h-hY!l2z z@e|pf2fTg&0H_fJUNJN6N%?b6#zYM0JD4*70Dw9{;CX{p&+cJrxa@N)!X63(;7bRF z5;+-$^Wg?^~T|QqG3YXD+@EO(#tki!?0Lw8}EavGy5R8;ZEWxr+0b*;ljmDm_Va-m z%emxbM}{vOfUYp9r$hF5*<^g=#VPmb;V~GE&_ewU~q0ag6FaIyxewc<7u6pojqoM z?hBp*3BgStCi=OIH-)-(%#K@{$fs3C(}7i>svgBu0MHMPZ0J=+kd`?fNANr%Hrmct z?{NAW>(K)ig~vWVRIWQW<+Av|06?&!@R3qrgtt!KQB}ln zKFqVQy)Xxk&1-&l^d15P0kleCNG~pYoKL1EA+6NlVTy^UUaW8&@X$?{LU_!cyR4^9 z83|r(@&+m94Ib%Tj(yJY0@V++WK{FKHB*iANe~X%@u#DlHZvZ!P%g=)o%_V+lEXh@ z_`^AEiUJLpT}yiNG@o#==s3tyf>38<6G&T`aU1!;9oxLUBz#a=U#WfgsA~`e;M)^e z3G*oNhz$Yt2C33NaStx_T;4gC*VMzzv*MmMmdzJT*~shmx|c46mEP~^J1>%RzfmgNyQof< zr(M@fgZE@*f*=4NF7LZ=pDyI1SD0PjY2+#!?ib-ccyT4{QX+t_qHq-Qn2V)q%%Ag^ z$yN>RI^KI>E8Of|Pj&6Z#j;!o0&rQu*N!T99doYy6GsiwXWDnAUUKR}6flPXT=sV6E&W_x`K{Naw_IM(oCUx4sLFE`6=@h0`@`RM zyZ}HIc};>v-qBzF{~wb3FF%XCU0BU8!9xHp#9-Nhah=+F3J`-{dI@#&3Exs>7Zx;B z5%PrmE<0#9yi3}BjkfOOgZ}$cd`_hA6r%8K>p?>hKvOZGhSyb27~_029f=okBMJv0 zUmm*3hf5SGt@k_x6&mCbP|to*Csy=tbPfxH?7YafO=8FhG!X;aT=G&Rk| z8axLI-lJhM*@6ga7r$9VAqb!qOqa@$tE*Z!eQyyDkOwNM8k9+nnuN<*=brB^%L|%8 zsj%NG>Ru%IJZBML;GnS>6ht9ah{8&k?XQ6$BVg?vP~+20Nt_nk;Y6dN?|8gaH+ocA z79QG)4TS4TcS$0jryAP@?!1Il$oEH(iNVISx7-qqM5^#Cs;&{6t~!Ds09)n;J)ldQ z#z?~h1}^@c;@@?5&D*hXrKSy&$95qK?T7-^C*8S#1J|X{*tnS7=1$h8VZDbSfJW$4 zv^;lzlO7NmSe^Cavi-F4xegrx+p|$`(m3h+NO;$dDBKJA#Ojwi7+~>J;c&M#o+z(s zXGQ^{5CmWhyP=WBsrN4OtZ-%5@i2Z$KA&keP*)Rr@yEwt$7Lg98kW$ zK@xa*lMt^7K>$8TJvE|(1F^Cd8WGTSL3RD0=Y553O(6&XR3e#EXhpy@ubbd4h28Up zAOH}iaW@_g(liiLPes#=dAhDI!~IXst_uJJ0R)3;C?wJxs%c9QRK4)n z({qX)lnnp~0tgzN$KW17~VhX&q3zCJzCIQ6-yS7W$~9M;Q&@d*OPNe9VJ^So^nQQ+?`9h6rm zIUX7F7uyaDfA2-;MN99{EuquIIZbrlUHyj?D7)TK?%@whI2lKeQ2L%@tGETuMmPe!#WM` z0E|`;%00_}2lyPv+PEpj^Dm(vh!(MkJ+QG&3iaU!_s%0mVaf`_iUd zkBgJQ*IZsx(MpBh4sZYrQV?Dh0?~T{-h{*VeWx_EB0k5>P3g)@Tv!OtBo_wgin4;8skn3W7z0` z)goWs>st67j&Z%s<;R999!32_bRY%*f{^vR6zjO32JrlTqY8a9vh>a`h1*T$Q}#X< z9?DBG7PpSQg@nC=tBUvy0D{HmDkIhK0T~P*Yt7pt@!az}gyadC8rkg6J;xl(8@%U) zMR&(>50OT_vU+Yj*?Y-x1+otEImyCZNpYT^; z_|WDVSJi{0%jd}NeJbfN6wjm1NmTY^t31N0q=~-jwj@F0u{@V6Ez`*lvB3?zd-(lz zQFJ_9{~66005CLs%pp7)s^4wTp4rE$5mX%j00f~Pa!rhal-R}UQz$9 zQXnAh0001jpur{w>Uo5M(D ky4IXS)&T%uwEQo?0Gr(_e5Em=M*si-07*qoM6N<$g38eo9smFU literal 0 HcmV?d00001 diff --git a/public/images/logo/ladillmini-logo.svg b/public/images/logo/ladillmini-logo.svg new file mode 100644 index 0000000..76652b5 --- /dev/null +++ b/public/images/logo/ladillmini-logo.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillqrplus-logo-white.svg b/public/images/logo/ladillqrplus-logo-white.svg new file mode 100644 index 0000000..3ea536b --- /dev/null +++ b/public/images/logo/ladillqrplus-logo-white.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillqrplus-logo.svg b/public/images/logo/ladillqrplus-logo.svg new file mode 100644 index 0000000..d9b81fd --- /dev/null +++ b/public/images/logo/ladillqrplus-logo.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/logo/ladillqueue-logo.svg b/public/images/logo/ladillqueue-logo.svg new file mode 100644 index 0000000..e53987d --- /dev/null +++ b/public/images/logo/ladillqueue-logo.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/images/qr-icons/app.svg b/public/images/qr-icons/app.svg new file mode 100644 index 0000000..cf2c12f --- /dev/null +++ b/public/images/qr-icons/app.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/public/images/qr-icons/business-profile.svg b/public/images/qr-icons/business-profile.svg new file mode 100644 index 0000000..77284d8 --- /dev/null +++ b/public/images/qr-icons/business-profile.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/public/images/qr-icons/facebook.svg b/public/images/qr-icons/facebook.svg new file mode 100644 index 0000000..94a3b7b --- /dev/null +++ b/public/images/qr-icons/facebook.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/qr-icons/instagram.svg b/public/images/qr-icons/instagram.svg new file mode 100644 index 0000000..658eb6e --- /dev/null +++ b/public/images/qr-icons/instagram.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/qr-icons/linkedin.svg b/public/images/qr-icons/linkedin.svg new file mode 100644 index 0000000..875694f --- /dev/null +++ b/public/images/qr-icons/linkedin.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/qr-icons/list.svg b/public/images/qr-icons/list.svg new file mode 100644 index 0000000..ccf7f95 --- /dev/null +++ b/public/images/qr-icons/list.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/public/images/qr-icons/terms.svg b/public/images/qr-icons/terms.svg new file mode 100644 index 0000000..6b352e0 --- /dev/null +++ b/public/images/qr-icons/terms.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/images/qr-icons/tik-tok.svg b/public/images/qr-icons/tik-tok.svg new file mode 100644 index 0000000..7e6913c --- /dev/null +++ b/public/images/qr-icons/tik-tok.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/qr-icons/twitter.svg b/public/images/qr-icons/twitter.svg new file mode 100644 index 0000000..2e05e5f --- /dev/null +++ b/public/images/qr-icons/twitter.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/images/qr-icons/website.svg b/public/images/qr-icons/website.svg new file mode 100644 index 0000000..e6b7459 --- /dev/null +++ b/public/images/qr-icons/website.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/public/images/qr-icons/whatsapp.svg b/public/images/qr-icons/whatsapp.svg new file mode 100644 index 0000000..17ee32c --- /dev/null +++ b/public/images/qr-icons/whatsapp.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/qr-icons/wifi.svg b/public/images/qr-icons/wifi.svg new file mode 100644 index 0000000..d56723c --- /dev/null +++ b/public/images/qr-icons/wifi.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/public/images/qr-icons/youtube.svg b/public/images/qr-icons/youtube.svg new file mode 100644 index 0000000..cf2e8d9 --- /dev/null +++ b/public/images/qr-icons/youtube.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + 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..4547a36 --- /dev/null +++ b/resources/css/app.css @@ -0,0 +1,223 @@ +@import 'tailwindcss'; +@plugin '@tailwindcss/forms'; + +@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php'; +@source '../../storage/framework/views/*.php'; +@source '../**/*.blade.php'; +@source '../**/*.js'; + +@theme { + --font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', + 'Segoe UI Symbol', 'Noto Color Emoji'; +} + +[x-cloak] { + display: none !important; +} + +/* QR create/show: flush mobile action bar to the physical screen bottom (mobile only) */ +@media (max-width: 1023px) { + .mobile-action-bar { + position: fixed; + inset-inline: 0; + bottom: 0; + z-index: 50; + display: flex; + flex-direction: column; + background-color: #fff; + } + + .mobile-action-bar__toolbar { + display: flex; + height: 4rem; + flex-shrink: 0; + align-items: center; + gap: 0.75rem; + border-top: 1px solid rgb(226 232 240); + background-color: #fff; + padding-inline: 1rem; + } + + .mobile-action-bar__inset-fill { + flex-shrink: 0; + width: 100%; + background-color: #fff; + height: env(safe-area-inset-bottom, 0px); + min-height: max(env(safe-area-inset-bottom, 0px), 20px); + } +} + +/* Extra white bleed behind the bar for any remaining viewport gap on mobile */ +.qr-mobile-bottom-bleed { + position: fixed; + inset-inline: 0; + bottom: 0; + z-index: 48; + pointer-events: none; + background-color: #fff; + height: calc(4rem + env(safe-area-inset-bottom, 0px) + 24px); + min-height: calc(4rem + 24px); +} + +html.qr-mobile-page { + background-color: #fff; +} + +html.qr-mobile-page body { + background-color: #fff; +} + +/* Payment QR landing: lock scroll and keep the amount sheet flush to the screen bottom */ +@media (max-width: 767px) { + html.mini-payment-page, + html.mini-payment-page body { + overflow: hidden; + width: 100%; + height: 100%; + } + + html.mini-payment-page body { + position: fixed; + inset: 0; + } + + .mini-payment-sheet { + position: fixed; + inset-inline: 0; + bottom: 0; + z-index: 20; + } + + .mini-payment-bottom-bleed { + position: fixed; + inset-inline: 0; + bottom: 0; + z-index: 19; + pointer-events: none; + background-color: #fff; + height: calc(12rem + env(safe-area-inset-bottom, 0px)); + min-height: 8rem; + } +} + +.mobile-stats-card { + width: calc(66.666667% - 0.5rem); +} + +@layer components { + .btn-primary { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.5rem; + border-radius: 9999px; + background-image: linear-gradient(to right, rgb(79 70 229), rgb(124 58 237)); + padding: 0.5rem 1rem; + font-size: 0.875rem; + line-height: 1.25rem; + font-weight: 600; + color: #fff; + box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); + transition: filter 0.15s ease; + } + + .btn-primary:hover { + filter: brightness(0.92); + } + + .btn-primary:disabled { + opacity: 0.6; + pointer-events: none; + } + + .btn-primary-sm { + padding: 0.375rem 0.75rem; + font-size: 0.75rem; + line-height: 1rem; + } + + .btn-primary-lg { + padding: 0.625rem 1.25rem; + } + + .btn-fab { + display: inline-flex; + height: 2.75rem; + width: 2.75rem; + align-items: center; + justify-content: center; + border-radius: 9999px; + background-image: linear-gradient(to right, rgb(79 70 229), rgb(124 58 237)); + color: #fff; + box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); + transition: filter 0.15s ease; + } + + .btn-fab:hover { + filter: brightness(0.92); + } +} + + +@media (min-width: 640px) { + .mobile-stats-card { + width: auto; + } +} + +/* Ladill app launcher — cap at 5 rows (15 apps), always-visible scroll indicator */ +.ladill-launcher-apps-wrap { + position: relative; +} + +.ladill-launcher-apps { + max-height: calc(5 * 5.25rem + 4 * 0.25rem); + overflow-y: scroll; + overscroll-behavior: contain; + scrollbar-gutter: stable; + scrollbar-width: thin; + scrollbar-color: rgb(148 163 184) rgb(241 245 249); + margin-right: -0.25rem; + padding-right: 0.25rem; +} + +.ladill-launcher-apps::-webkit-scrollbar { + -webkit-appearance: none; + width: 8px; +} + +.ladill-launcher-apps::-webkit-scrollbar-track { + background: rgb(241 245 249); + border-radius: 9999px; +} + +.ladill-launcher-apps::-webkit-scrollbar-thumb { + background-color: rgb(148 163 184); + border-radius: 9999px; + min-height: 2.5rem; + border: 2px solid rgb(241 245 249); + background-clip: padding-box; +} + +.ladill-launcher-apps::-webkit-scrollbar-thumb:hover { + background-color: rgb(100 116 139); +} + +.ladill-launcher-scroll-more { + position: absolute; + left: 50%; + bottom: 0.125rem; + z-index: 1; + display: flex; + height: 1.25rem; + width: 1.25rem; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + align-items: center; + justify-content: center; + border-radius: 9999px; + background: rgb(255 255 255); + color: rgb(100 116 139); + box-shadow: 0 1px 2px rgb(15 23 42 / 0.08); + pointer-events: none; +} diff --git a/resources/js/app.js b/resources/js/app.js new file mode 100644 index 0000000..1af3fdd --- /dev/null +++ b/resources/js/app.js @@ -0,0 +1,174 @@ +import Alpine from 'alpinejs'; +import collapse from '@alpinejs/collapse'; +import { registerKioskFlow } from './kiosk-flow'; + +Alpine.plugin(collapse); +document.addEventListener('alpine:init', () => registerKioskFlow(Alpine)); + +// In-app notification bell + dropdown. +Alpine.data('notificationDropdown', (config = {}) => ({ + open: false, + loading: false, + notifications: [], + unreadCount: 0, + unreadUrl: config.unreadUrl || '/notifications/unread', + markReadUrl: config.markReadUrl || '/notifications/__ID__/read', + markAllReadUrl: config.markAllReadUrl || '/notifications/mark-all-read', + indexUrl: config.indexUrl || '/notifications', + csrfToken: config.csrfToken || document.querySelector('meta[name="csrf-token"]')?.content || '', + + init() { + this.fetchUnread(); + setInterval(() => this.fetchUnread(), 60000); + }, + async fetchUnread() { + try { + const res = await fetch(this.unreadUrl, { + headers: { Accept: 'application/json', 'X-Requested-With': 'XMLHttpRequest' }, + }); + const data = await res.json(); + this.notifications = data.notifications || []; + this.unreadCount = data.unread_count || 0; + } catch (e) { + console.error('Failed to fetch notifications', e); + } + }, + toggle() { + this.open = !this.open; + if (this.open) { + this.loading = true; + this.fetchUnread().finally(() => { this.loading = false; }); + } + }, + async markRead(id) { + const url = this.markReadUrl.replace('__ID__', id); + try { + await fetch(url, { + method: 'POST', + headers: { Accept: 'application/json', 'Content-Type': 'application/json', 'X-CSRF-TOKEN': this.csrfToken, 'X-Requested-With': 'XMLHttpRequest' }, + }); + this.notifications = this.notifications.filter(n => n.id !== id); + this.unreadCount = Math.max(0, this.unreadCount - 1); + } catch (e) { + console.error('Failed to mark notification as read', e); + } + }, + async markAllRead() { + try { + await fetch(this.markAllReadUrl, { + method: 'POST', + headers: { Accept: 'application/json', 'Content-Type': 'application/json', 'X-CSRF-TOKEN': this.csrfToken, 'X-Requested-With': 'XMLHttpRequest' }, + }); + this.notifications = []; + this.unreadCount = 0; + } catch (e) { + console.error('Failed to mark all notifications as read', e); + } + }, + getIconBg(icon) { + const map = { success: 'bg-green-50', task: 'bg-amber-50' }; + return map[icon] || 'bg-slate-100'; + }, + getIconColor(icon) { + const map = { success: 'text-green-600', task: 'text-amber-600' }; + return map[icon] || 'text-slate-500'; + }, +})); + +// Afia — in-app AI assistant slide-over. Opened via $dispatch('afia-open'). +Alpine.data('afia', (config = {}) => ({ + open: false, + input: '', + loading: false, + messages: [ + { role: 'assistant', text: config.greeting || "Hi, I'm Afia 👋 How can I help?" }, + ], + suggestions: config.suggestions || [], + init() { + window.addEventListener('afia-open', () => { + this.open = true; + this.$nextTick(() => this.$refs.input && this.$refs.input.focus()); + }); + }, + close() { this.open = false; }, + useSuggestion(s) { this.input = s; this.send(); }, + scrollDown() { + this.$nextTick(() => { const el = this.$refs.scroll; if (el) el.scrollTop = el.scrollHeight; }); + }, + async send() { + const text = this.input.trim(); + if (!text || this.loading) return; + const history = this.messages.map((m) => ({ role: m.role, text: m.text })); + this.messages.push({ role: 'user', text }); + this.input = ''; + this.loading = true; + this.scrollDown(); + try { + const res = await fetch(config.chatUrl, { + method: 'POST', + headers: { 'Content-Type': 'application/json', 'X-CSRF-TOKEN': config.csrf, 'Accept': 'application/json' }, + body: JSON.stringify({ message: text, history }), + }); + const data = await res.json(); + if (! res.ok) { + this.messages.push({ role: 'assistant', text: data.message || data.reply || 'Sorry, I could not respond.' }); + } else { + this.messages.push({ role: 'assistant', text: data.reply || data.message || 'Sorry, I could not respond.' }); + } + } catch (e) { + this.messages.push({ role: 'assistant', text: 'Network error — please try again.' }); + } + this.loading = false; + this.scrollDown(); + }, +})); + +// Wallet balance peek for the avatar dropdown. +Alpine.data('walletWidget', (config = {}) => ({ + display: '…', + async load() { + try { + const res = await fetch(config.url, { headers: { Accept: 'application/json', 'X-Requested-With': 'XMLHttpRequest' } }); + const data = await res.json(); + this.display = data.available ? data.formatted : 'View wallet'; + } catch (e) { + this.display = 'View wallet'; + } + }, +})); + +// Deal line-items editor — products/services as quote lines; deal value = subtotal. +Alpine.data('dealForm', (initialLines = [], products = []) => ({ + lines: Array.isArray(initialLines) ? initialLines : [], + products: Array.isArray(products) ? products : [], + selectedProduct: '', + addLine() { + this.lines.push({ product_id: '', description: '', quantity: 1, unit_price: '' }); + }, + removeLine(index) { + this.lines.splice(index, 1); + }, + addProductLine() { + const p = this.products.find((x) => String(x.id) === String(this.selectedProduct)); + if (!p) return; + this.lines.push({ + product_id: p.id, + description: p.name || '', + quantity: 1, + unit_price: (Number(p.unit_price_minor || 0) / 100).toFixed(2), + }); + this.selectedProduct = ''; + }, + lineTotal(line) { + return (parseFloat(line.quantity) || 0) * (parseFloat(line.unit_price) || 0); + }, + get subtotal() { + return this.lines.reduce((sum, line) => sum + this.lineTotal(line), 0); + }, + money(value) { + return (Number(value) || 0).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 }); + }, +})); + +window.Alpine = Alpine; +Alpine.start(); diff --git a/resources/js/kiosk-flow.js b/resources/js/kiosk-flow.js new file mode 100644 index 0000000..f3ee874 --- /dev/null +++ b/resources/js/kiosk-flow.js @@ -0,0 +1,98 @@ +export function registerKioskFlow(Alpine) { + Alpine.data('kioskFlow', (config = {}) => ({ + step: 'select', + queueId: null, + customerName: '', + customerPhone: '', + ticket: null, + error: null, + loading: false, + issueUrl: config.issueUrl, + csrf: config.csrf, + + selectQueue(id) { + this.queueId = id; + this.step = 'details'; + }, + + async issue() { + if (! this.queueId) return; + this.loading = true; + this.error = null; + try { + const res = await fetch(this.issueUrl, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'Accept': 'application/json', + 'X-CSRF-TOKEN': this.csrf, + }, + body: JSON.stringify({ + queue_id: this.queueId, + customer_name: this.customerName || null, + customer_phone: this.customerPhone || null, + }), + }); + const data = await res.json(); + if (! res.ok) throw new Error(data.message || 'Could not issue ticket'); + this.ticket = data.data; + this.step = 'ticket'; + } catch (e) { + this.error = e.message || 'Something went wrong'; + } finally { + this.loading = false; + } + }, + + reset() { + this.step = 'select'; + this.queueId = null; + this.customerName = ''; + this.customerPhone = ''; + this.ticket = null; + this.error = null; + }, + })); + + Alpine.data('displayBoard', (dataUrl) => ({ + payload: null, + async poll() { + try { + const res = await fetch(dataUrl, { headers: { Accept: 'application/json' } }); + this.payload = await res.json(); + if (this.payload?.announcements?.length && window.speechSynthesis) { + const msg = this.payload.announcements[0]?.message; + if (msg) { + const utter = new SpeechSynthesisUtterance(msg); + window.speechSynthesis.speak(utter); + } + } + } catch (e) { + console.error('Display poll failed', e); + } + }, + init() { + this.poll(); + setInterval(() => this.poll(), 5000); + }, + })); + + Alpine.data('mobileTracker', (pollUrl) => ({ + data: null, + ahead: 0, + async poll() { + try { + const res = await fetch(pollUrl, { headers: { Accept: 'application/json' } }); + const json = await res.json(); + this.data = json.data; + this.ahead = json.customers_ahead ?? 0; + } catch (e) { + console.error('Tracker poll failed', e); + } + }, + init() { + this.poll(); + setInterval(() => this.poll(), 10000); + }, + })); +} diff --git a/resources/views/auth/signed-out.blade.php b/resources/views/auth/signed-out.blade.php new file mode 100644 index 0000000..adbca09 --- /dev/null +++ b/resources/views/auth/signed-out.blade.php @@ -0,0 +1,52 @@ +@php + $signedOut = (array) config('signed_out'); + $logo = (string) ($signedOut['logo'] ?? 'images/logo/ladillfrontdesk-logo.svg'); + $logoPath = public_path($logo); +@endphp + + + + + + Signed out — {{ $signedOut['title'] ?? config('app.name') }} + @include('partials.favicon') + + + @vite(['resources/css/app.css']) + + + +
+
+ +
+ {{ $signedOut['title'] ?? config('app.name') }} + +
+ +
+ +

You’re signed out

+

+ {{ $signedOut['description'] ?? ('Your '.($signedOut['title'] ?? config('app.name')).' session has ended. Sign in again to continue.') }} +

+ + + Sign in again + + + + Go to ladill.com + +
+
+ + diff --git a/resources/views/auth/sso-error.blade.php b/resources/views/auth/sso-error.blade.php new file mode 100644 index 0000000..95af715 --- /dev/null +++ b/resources/views/auth/sso-error.blade.php @@ -0,0 +1,30 @@ +@php + $signedOut = (array) config('signed_out'); + $logo = (string) ($signedOut['logo'] ?? 'images/logo/ladillfrontdesk-logo.svg'); + $title = (string) ($signedOut['title'] ?? config('app.name')); + $logoPath = public_path($logo); +@endphp + + + + + + Sign-in problem · {{ $title }} + @include('partials.favicon') + @vite(['resources/css/app.css']) + + +
+ {{ $title }} +

We couldn't sign you in

+

+ Sign-in didn't complete after a few tries. This is usually a temporary + issue with the Ladill account service. Please wait a moment and try again. +

+ @if ($reason !== '') +

Reference: {{ $reason }}

+ @endif + Try again +
+ + diff --git a/resources/views/auth/sso-logout-bridge.blade.php b/resources/views/auth/sso-logout-bridge.blade.php new file mode 100644 index 0000000..2540367 --- /dev/null +++ b/resources/views/auth/sso-logout-bridge.blade.php @@ -0,0 +1,26 @@ + + + + + + Signing out… + @include('partials.favicon') + + + + +

Signing you out of Ladill…

+ + + + diff --git a/resources/views/components/app-layout.blade.php b/resources/views/components/app-layout.blade.php new file mode 100644 index 0000000..52887ea --- /dev/null +++ b/resources/views/components/app-layout.blade.php @@ -0,0 +1,61 @@ +@props(['title' => 'Ladill Queue', 'heading' => null]) + + + + + + + {{ $title }} · Ladill Queue + @include('partials.favicon') + + + @vite(['resources/css/app.css', 'resources/js/app.js']) + + + @include('partials.boot-splash') +
+
+ +
+ @include('partials.topbar', ['heading' => $heading ?? $title]) +
+ @include('partials.flash') + {{ $slot }} +
+
+
+ @auth + @php + $navUser = auth()->user(); + $navInitials = collect(explode(' ', trim((string) $navUser?->name))) + ->filter()->take(2) + ->map(fn ($part) => strtoupper(substr($part, 0, 1))) + ->implode(''); + $navAvatarUrl = $navUser && method_exists($navUser, 'avatarUrl') + ? $navUser->avatarUrl() + : ($navUser?->avatar_url ?? null); + @endphp + @include('partials.mobile-bottom-nav', [ + 'homeUrl' => route('frontdesk.dashboard'), + 'homeActive' => request()->routeIs('frontdesk.dashboard'), + 'searchUrl' => route('frontdesk.visitors.index'), + 'searchActive' => request()->routeIs('frontdesk.visitors.*'), + 'notificationsUrl' => route('notifications.index'), + 'notificationsActive' => request()->routeIs('notifications.*'), + 'unreadUrl' => route('notifications.unread'), + 'profileActive' => false, + 'profileName' => $navUser?->name ?? '', + 'profileSubtitle' => $navUser?->email ?? '', + 'profileMenuItems' => \App\Support\UserProfileMenu::items($navUser), + 'avatarUrl' => $navAvatarUrl, + 'initials' => $navInitials !== '' ? $navInitials : 'U', + ]) + @endauth + @include('partials.wallet-topup-modal', ['openOnLoad' => (bool) session('topup_required')]) + @include('partials.afia') + + diff --git a/resources/views/components/badge.blade.php b/resources/views/components/badge.blade.php new file mode 100644 index 0000000..a35a20f --- /dev/null +++ b/resources/views/components/badge.blade.php @@ -0,0 +1,15 @@ +@props(['color' => 'slate']) +@php + $map = [ + 'slate' => 'bg-slate-100 text-slate-700', + 'indigo' => 'bg-indigo-100 text-indigo-700', + 'green' => 'bg-green-100 text-green-700', + 'red' => 'bg-red-100 text-red-700', + 'amber' => 'bg-amber-100 text-amber-700', + 'blue' => 'bg-blue-100 text-blue-700', + ]; + $classes = $map[$color] ?? $map['slate']; +@endphp +merge(['class' => "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium $classes"]) }}> + {{ $slot }} + diff --git a/resources/views/components/btn/create.blade.php b/resources/views/components/btn/create.blade.php new file mode 100644 index 0000000..f51caf4 --- /dev/null +++ b/resources/views/components/btn/create.blade.php @@ -0,0 +1,33 @@ +@props([ + 'href' => null, + 'type' => 'button', + 'label' => null, +]) + +@php + $tag = $href ? 'a' : 'button'; + $ariaLabel = $label ?? trim(preg_replace('/\s+/', ' ', strip_tags((string) $slot))); +@endphp + +<{{ $tag }} + @if ($href) href="{{ $href }}" @endif + @if ($tag === 'button') type="{{ $type }}" @endif + aria-label="{{ $ariaLabel }}" + title="{{ $ariaLabel }}" + {{ $attributes->class(['btn-fab h-10 w-10 lg:hidden']) }} +> + + + +<{{ $tag }} + @if ($href) href="{{ $href }}" @endif + @if ($tag === 'button') type="{{ $type }}" @endif + {{ $attributes->class(['btn-primary hidden lg:inline-flex']) }} +> + + {{ $slot }} + diff --git a/resources/views/components/field.blade.php b/resources/views/components/field.blade.php new file mode 100644 index 0000000..5b84fec --- /dev/null +++ b/resources/views/components/field.blade.php @@ -0,0 +1,37 @@ +@props([ + 'name', + 'label' => null, + 'type' => 'text', + 'value' => null, + 'options' => [], + 'placeholder' => '', + 'required' => false, + 'rows' => 4, +]) +@php + $label = $label ?? \Illuminate\Support\Str::headline($name); + $current = old($name, $value); + $base = 'mt-1 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; +@endphp +
only('class') }}> + + + @if ($type === 'textarea') + + @elseif ($type === 'select') + + @else + + @endif + + @error($name)

{{ $message }}

@enderror +
diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.php new file mode 100644 index 0000000..a823707 --- /dev/null +++ b/resources/views/components/modal.blade.php @@ -0,0 +1,88 @@ +@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 + +
+ {{-- Backdrop click to close --}} +
+ + {{-- Panel: bottom-sheet on mobile, centered card on sm+ --}} +
+ {{-- Drag handle (mobile only) --}} +
+
+
+ + {{-- Close button (desktop only) --}} + + + {{ $slot }} +
+
diff --git a/resources/views/email/contact-message.blade.php b/resources/views/email/contact-message.blade.php new file mode 100644 index 0000000..3cb5cc9 --- /dev/null +++ b/resources/views/email/contact-message.blade.php @@ -0,0 +1,18 @@ + + + + + + + +
+
+
{{ $bodyText }}
+ @if (! empty($fromName)) +

— {{ $fromName }}

+ @endif +
+

Sent via Ladill Frontdesk

+
+ + diff --git a/resources/views/notifications/index.blade.php b/resources/views/notifications/index.blade.php new file mode 100644 index 0000000..737a023 --- /dev/null +++ b/resources/views/notifications/index.blade.php @@ -0,0 +1,24 @@ + +
+

Notifications

+ + + +
{{ $notifications->links() }}
+
+
diff --git a/resources/views/partials/afia-button.blade.php b/resources/views/partials/afia-button.blade.php new file mode 100644 index 0000000..35c0366 --- /dev/null +++ b/resources/views/partials/afia-button.blade.php @@ -0,0 +1,15 @@ +@props(['compact' => false]) + + diff --git a/resources/views/partials/afia.blade.php b/resources/views/partials/afia.blade.php new file mode 100644 index 0000000..265fdb5 --- /dev/null +++ b/resources/views/partials/afia.blade.php @@ -0,0 +1,106 @@ +@php + $afiaGreeting = "Hi, I'm Afia 👋 Ask me about visitor check-in, kiosks, hosts, badges, devices, or setting up your reception desk…"; + $afiaSuggestions = [ + 'How do I set up a visitor kiosk?', + 'How do I check a visitor in?', + 'Where do I add reception desks?', + 'How do hosts approve visits?', + ]; +@endphp +{{-- Afia — Ladill AI assistant slide-over. Opened via $dispatch('afia-open'). --}} +
+
+ +
+
+
+ + + + +
+

Afia

+

Frontdesk assistant

+
+
+
+ History + +
+
+ +
+
+ +
+
+
+ + + +
+
+
+
+ +
+ +
+
+ +
+
+ + +
+

Afia can make mistakes — verify important details.

+
+
+
diff --git a/resources/views/partials/boot-splash.blade.php b/resources/views/partials/boot-splash.blade.php new file mode 100644 index 0000000..5d86769 --- /dev/null +++ b/resources/views/partials/boot-splash.blade.php @@ -0,0 +1,43 @@ +@php + // Branded boot splash (Ladill Mail style). Self-icon from this app's subdomain. + $sub = strtolower((string) ((explode('.', (string) (parse_url((string) config('app.url'), PHP_URL_HOST) ?: '')))[0] ?? '')); + $icon = $sub !== '' && is_file(public_path("images/launcher-icons/{$sub}.svg")) ? "images/launcher-icons/{$sub}.svg" : null; + $label = (string) config('app.name', 'Ladill'); +@endphp +
+
+ @if ($icon) + + @endif +
+
Loading {{ $label }}…
+
+
+ + diff --git a/resources/views/partials/favicon.blade.php b/resources/views/partials/favicon.blade.php new file mode 100644 index 0000000..8933ddf --- /dev/null +++ b/resources/views/partials/favicon.blade.php @@ -0,0 +1,8 @@ +@php + $svgVer = @filemtime(public_path('favicon.svg')) ?: '1'; + $icoVer = @filemtime(public_path('favicon.ico')) ?: '1'; +@endphp + + + + diff --git a/resources/views/partials/flash.blade.php b/resources/views/partials/flash.blade.php new file mode 100644 index 0000000..657ef02 --- /dev/null +++ b/resources/views/partials/flash.blade.php @@ -0,0 +1,34 @@ +@if (session('success')) +
+
+

{{ session('success') }}

+
+
+@endif + +@if (session('error')) +
+
+

{{ session('error') }}

+
+
+@endif + +@if (session('warning')) +
+
+

{{ session('warning') }}

+
+
+@endif + +@if ($errors->any()) +
+

Please fix the following:

+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+@endif diff --git a/resources/views/partials/launcher.blade.php b/resources/views/partials/launcher.blade.php new file mode 100644 index 0000000..de21e62 --- /dev/null +++ b/resources/views/partials/launcher.blade.php @@ -0,0 +1,84 @@ +@php + // Shared Ladill app launcher — IDENTICAL across every app/service. + // Driven by config/ladill_launcher.php (fully-extracted apps only) + icons + // from public/images/launcher-icons/. Omits the current app (matched by + // APP_URL host). To replicate elsewhere, copy this file + the config + + // the launcher-icons folder verbatim. + $sidebar = (bool) ($sidebar ?? false); + $selfHost = parse_url((string) config('app.url'), PHP_URL_HOST); + $launcherApps = array_values(array_filter( + config('ladill_launcher.apps', []), + fn (array $app) => parse_url($app['url'], PHP_URL_HOST) !== $selfHost + )); + $launcherOverflows = count($launcherApps) > 15; +@endphp +@if (! empty($launcherApps)) +
+ +
! $sidebar, + 'bottom-full left-0 mb-2' => $sidebar, + ])> +

All apps

+
$launcherOverflows])> +
+
+ @foreach ($launcherApps as $app) + + + + + {{ $app['name'] }} + + @endforeach +
+
+ @if ($launcherOverflows) + + @endif +
+
+
+@endif diff --git a/resources/views/partials/mobile-bottom-nav.blade.php b/resources/views/partials/mobile-bottom-nav.blade.php new file mode 100644 index 0000000..5fbdf50 --- /dev/null +++ b/resources/views/partials/mobile-bottom-nav.blade.php @@ -0,0 +1,130 @@ +@php + $showSearch = isset($searchUrl) && $searchUrl !== null && $searchUrl !== '#'; + $gridCols = match (true) { + ! empty($centerCompose) => $showSearch ? 'grid-cols-5' : 'grid-cols-4', + default => $showSearch ? 'grid-cols-4' : 'grid-cols-3', + }; + $avatarUrl = $avatarUrl ?? null; + $initials = $initials ?? 'U'; + $notificationsUrl = $notificationsUrl ?? '#'; + $unreadUrl = $unreadUrl ?? null; + $profileUrl = $profileUrl ?? '#'; + $profileName = trim((string) ($profileName ?? '')); + $profileSubtitle = trim((string) ($profileSubtitle ?? '')); + $profileMenuItems = $profileMenuItems ?? []; + if ($profileMenuItems === [] && $profileUrl !== '#') { + $profileMenuItems = [['type' => 'link', 'label' => 'Profile', 'href' => $profileUrl]]; + } + $navActive = fn (bool $active) => $active ? 'text-indigo-600' : 'text-slate-600'; +@endphp +
+ + + {{-- Profile menu bottom sheet (matches desktop avatar dropdown) --}} +
+
+ +
+
+ +
+ + @if ($profileName !== '' || $profileSubtitle !== '') +
+ @if ($avatarUrl) + + @else + {{ $initials }} + @endif +
+ @if ($profileName !== '') +

{{ $profileName }}

+ @endif + @if ($profileSubtitle !== '') +

{{ $profileSubtitle }}

+ @endif +
+
+ @endif + + @include('partials.user-profile-menu', [ + 'items' => $profileMenuItems, + 'variant' => 'sheet', + 'onNavigate' => 'profileOpen = false', + ]) +
+
+
diff --git a/resources/views/partials/mobile-header-btn.blade.php b/resources/views/partials/mobile-header-btn.blade.php new file mode 100644 index 0000000..97d79c4 --- /dev/null +++ b/resources/views/partials/mobile-header-btn.blade.php @@ -0,0 +1,53 @@ +@php + $variant = $variant ?? 'primary'; + $type = $type ?? 'submit'; + $tag = ! empty($href) ? 'a' : 'button'; + $ariaLabel = $ariaLabel ?? $label ?? ''; + $desktopLabel = $desktopLabel ?? $label ?? ''; + $showDesktopIcon = $showDesktopIcon ?? ($variant === 'primary'); + + $mobileClass = match ($variant) { + 'primary' => 'btn-fab h-10 w-10 lg:hidden', + 'outline' => 'inline-flex h-10 w-10 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-700 shadow-sm transition hover:border-slate-300 hover:bg-slate-50 lg:hidden', + 'dark' => 'inline-flex h-10 w-10 items-center justify-center rounded-full bg-gray-900 text-white shadow-sm transition hover:bg-gray-800 lg:hidden', + 'indigo' => 'inline-flex h-10 w-10 items-center justify-center rounded-full bg-indigo-600 text-white shadow-sm transition hover:bg-indigo-700 lg:hidden', + default => 'btn-fab h-10 w-10 lg:hidden', + }; + + $desktopClass = match ($variant) { + 'primary' => 'btn-primary hidden items-center lg:inline-flex', + 'outline' => 'hidden items-center rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm transition hover:bg-gray-50 lg:inline-flex', + 'dark' => 'hidden items-center gap-1.5 rounded-lg bg-gray-900 px-3.5 py-2 text-sm font-medium text-white transition hover:bg-gray-800 lg:inline-flex', + 'indigo' => 'hidden items-center justify-center rounded-xl bg-indigo-600 px-4 py-2.5 text-sm font-semibold text-white transition hover:bg-indigo-700 lg:inline-flex', + default => 'btn-primary hidden items-center lg:inline-flex', + }; + + $extraClass = $class ?? ''; +@endphp + +<{{ $tag }} + @if ($tag === 'a') href="{{ $href }}" @endif + @if ($tag === 'button') type="{{ $type }}" @endif + aria-label="{{ $ariaLabel }}" + title="{{ $ariaLabel }}" + @if (! empty($attributes)) {!! $attributes !!} @endif + class="{{ trim($mobileClass.' '.$extraClass) }}" +> + + + +<{{ $tag }} + @if ($tag === 'a') href="{{ $href }}" @endif + @if ($tag === 'button') type="{{ $type }}" @endif + @if (! empty($attributes)) {!! $attributes !!} @endif + class="{{ trim($desktopClass.' '.$extraClass) }}" +> + @if ($showDesktopIcon) + + @endif + {{ $desktopLabel }} + diff --git a/resources/views/partials/mobile-icon-link.blade.php b/resources/views/partials/mobile-icon-link.blade.php new file mode 100644 index 0000000..b1a96c4 --- /dev/null +++ b/resources/views/partials/mobile-icon-link.blade.php @@ -0,0 +1,27 @@ +@php + $icon = $icon ?? 'arrow'; + $desktopClass = $desktopClass ?? 'text-xs font-medium text-indigo-600 hover:text-indigo-700'; + $label = $label ?? ''; +@endphp + + + + @if ($icon === 'shield') + + @elseif ($icon === 'calendar') + + @else + + @endif + + + diff --git a/resources/views/partials/mobile-topbar-title.blade.php b/resources/views/partials/mobile-topbar-title.blade.php new file mode 100644 index 0000000..ff10b4a --- /dev/null +++ b/resources/views/partials/mobile-topbar-title.blade.php @@ -0,0 +1,6 @@ +@php + $title = $mobileTopbarTitle ?? 'Ladill'; +@endphp +
+

{{ $title }}

+
diff --git a/resources/views/partials/notification-dropdown.blade.php b/resources/views/partials/notification-dropdown.blade.php new file mode 100644 index 0000000..be1a23b --- /dev/null +++ b/resources/views/partials/notification-dropdown.blade.php @@ -0,0 +1,97 @@ +{{-- In-app notification bell + dropdown (scoped to this app). --}} + diff --git a/resources/views/partials/sidebar.blade.php b/resources/views/partials/sidebar.blade.php new file mode 100644 index 0000000..9a3d958 --- /dev/null +++ b/resources/views/partials/sidebar.blade.php @@ -0,0 +1,85 @@ +
+
+ + Ladill Queue + +
+ @php + $member = auth()->user() ? app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()) : null; + $permissions = app(\App\Services\Qms\QmsPermissions::class); + $nav = [ + ['name' => 'Dashboard', 'route' => route('qms.dashboard'), 'active' => request()->routeIs('qms.dashboard'), + 'icon' => ''], + ['name' => 'Live board', 'route' => route('qms.board.index'), 'active' => request()->routeIs('qms.board.*'), + 'icon' => ''], + ]; + if ($permissions->can($member, 'queues.view')) { + $nav[] = ['name' => 'Queues', 'route' => route('qms.queues.index'), 'active' => request()->routeIs('qms.queues.*'), + 'icon' => '']; + } + if ($permissions->can($member, 'tickets.view')) { + $nav[] = ['name' => 'Tickets', 'route' => route('qms.tickets.index'), 'active' => request()->routeIs('qms.tickets.*'), + 'icon' => '']; + } + if ($permissions->can($member, 'counters.view')) { + $nav[] = ['name' => 'Counters', 'route' => route('qms.counters.index'), 'active' => request()->routeIs('qms.counters.*') || request()->routeIs('qms.console.*'), + 'icon' => '']; + } + if ($permissions->can($member, 'displays.view')) { + $nav[] = ['name' => 'Displays', 'route' => route('qms.displays.index'), 'active' => request()->routeIs('qms.displays.*'), + 'icon' => '']; + $nav[] = ['name' => 'Devices', 'route' => route('qms.devices.index'), 'active' => request()->routeIs('qms.devices.*'), + 'icon' => '']; + } + if ($permissions->can($member, 'appointments.view')) { + $nav[] = ['name' => 'Appointments', 'route' => route('qms.appointments.index'), 'active' => request()->routeIs('qms.appointments.*'), + 'icon' => '']; + } + if ($permissions->can($member, 'workflows.view')) { + $nav[] = ['name' => 'Workflows', 'route' => route('qms.workflows.index'), 'active' => request()->routeIs('qms.workflows.*'), + 'icon' => '']; + } + if ($permissions->can($member, 'reports.view')) { + $nav[] = ['name' => 'Analytics', 'route' => route('qms.analytics.index'), 'active' => request()->routeIs('qms.analytics.*'), + 'icon' => '']; + $nav[] = ['name' => 'Reports', 'route' => route('qms.reports.index'), 'active' => request()->routeIs('qms.reports.*'), + 'icon' => '']; + } + if ($permissions->can($member, 'feedback.view')) { + $nav[] = ['name' => 'Feedback', 'route' => route('qms.feedback.admin'), 'active' => request()->routeIs('qms.feedback.admin'), + 'icon' => '']; + } + $adminItems = []; + if ($permissions->can($member, 'admin.branches.view')) { + $adminItems[] = ['name' => 'Branches', 'route' => route('qms.branches.index'), 'active' => request()->routeIs('qms.branches.*')]; + } + if ($permissions->can($member, 'admin.departments.view')) { + $adminItems[] = ['name' => 'Departments', 'route' => route('qms.departments.index'), 'active' => request()->routeIs('qms.departments.*')]; + } + if ($permissions->can($member, 'admin.members.view')) { + $adminItems[] = ['name' => 'Team', 'route' => route('qms.members.index'), 'active' => request()->routeIs('qms.members.*')]; + } + if ($permissions->can($member, 'audit.view')) { + $adminItems[] = ['name' => 'Audit log', 'route' => route('qms.audit.index'), 'active' => request()->routeIs('qms.audit.*')]; + } + if ($permissions->can($member, 'settings.view')) { + $adminItems[] = ['name' => 'Settings', 'route' => route('qms.settings.edit'), 'active' => request()->routeIs('qms.settings.*')]; + } + @endphp + +
diff --git a/resources/views/partials/topbar-account-switcher.blade.php b/resources/views/partials/topbar-account-switcher.blade.php new file mode 100644 index 0000000..dfcaf02 --- /dev/null +++ b/resources/views/partials/topbar-account-switcher.blade.php @@ -0,0 +1,24 @@ +{{-- Account switcher (desktop) — only when the user belongs to more than one account. --}} +@if (isset($accessibleAccounts) && $accessibleAccounts->count() > 1) + +@endif diff --git a/resources/views/partials/topbar-desktop-widgets.blade.php b/resources/views/partials/topbar-desktop-widgets.blade.php new file mode 100644 index 0000000..5e00826 --- /dev/null +++ b/resources/views/partials/topbar-desktop-widgets.blade.php @@ -0,0 +1,45 @@ +{{-- + Top-right header widgets: + Mobile — Afia + launcher only (profile/notifications live in bottom nav). + Desktop — Afia → notifications → launcher → divider → avatar dropdown. +--}} +@php + $topbarUser = $user ?? auth()->user(); + $initials = collect(explode(' ', trim((string) $topbarUser?->name))) + ->filter()->take(2)->map(fn ($p) => strtoupper(substr($p, 0, 1)))->implode(''); + $avatarUrl = $topbarUser && method_exists($topbarUser, 'avatarUrl') + ? $topbarUser->avatarUrl() + : ($topbarUser?->avatar_url ?? null); + $showUserHeader = $showUser ?? true; +@endphp + +@includeIf('partials.afia-button', ['compact' => true]) + +@includeIf('partials.notification-dropdown') + +@include('partials.launcher') + +@includeIf('partials.topbar-widgets-mid') + + + + diff --git a/resources/views/partials/topbar.blade.php b/resources/views/partials/topbar.blade.php new file mode 100644 index 0000000..d339bb5 --- /dev/null +++ b/resources/views/partials/topbar.blade.php @@ -0,0 +1,33 @@ +@php + $user = auth()->user(); + $initials = collect(explode(' ', trim((string) $user?->name))) + ->filter()->take(2)->map(fn ($p) => strtoupper(substr($p, 0, 1)))->implode(''); +@endphp +
+
+ + + {{-- Mobile: app name --}} + @include('partials.mobile-topbar-title') + + {{-- Desktop: search (visitors) --}} + +
+ +
+ @includeIf('partials.topbar-widgets-prepend') + @include('partials.topbar-desktop-widgets', ['user' => $user, 'showUser' => true]) + @includeIf('partials.topbar-widgets-append') +
+
diff --git a/resources/views/partials/user-profile-menu.blade.php b/resources/views/partials/user-profile-menu.blade.php new file mode 100644 index 0000000..6ddfea8 --- /dev/null +++ b/resources/views/partials/user-profile-menu.blade.php @@ -0,0 +1,73 @@ +@props([ + 'items' => [], + 'user' => null, + 'showUser' => false, + 'variant' => 'dropdown', + 'onNavigate' => null, +]) + +@php + $linkClass = match ($variant) { + 'dark' => 'block rounded-md px-3 py-2 text-sm text-slate-200 hover:bg-slate-800', + 'sheet' => 'block rounded-xl px-4 py-3 text-sm font-medium text-slate-700 transition hover:bg-slate-100', + default => 'block rounded-lg px-3 py-2 text-sm text-slate-700 hover:bg-slate-100', + }; + + $logoutClass = match ($variant) { + 'dark' => 'w-full rounded-md px-3 py-2 text-left text-sm text-rose-300 hover:bg-rose-950/40', + 'sheet' => 'w-full rounded-xl px-4 py-3 text-left text-sm font-medium text-rose-600 transition hover:bg-rose-50', + default => 'w-full rounded-lg px-3 py-2 text-left text-sm text-rose-600 hover:bg-rose-50', + }; + + $logoutWrapperClass = match ($variant) { + 'sheet' => 'border-t border-slate-100 pt-2', + 'dark' => '', + default => '', + }; + + $dividerClass = match ($variant) { + 'dark' => 'my-1 border-t border-slate-800', + default => 'my-1 border-t border-slate-100', + }; + + $containerClass = match ($variant) { + 'dark' => 'mt-2 rounded-lg border border-slate-800 bg-slate-900 p-1', + 'sheet' => 'space-y-1 p-2 pb-4', + default => 'p-1', + }; +@endphp + +
merge(['class' => $containerClass]) }}> + @if ($showUser && $user) +
+

{{ $user->name ?? 'Your account' }}

+

{{ $user->email }}

+
+
+ @endif + + @foreach ($items as $item) + @if (($item['type'] ?? 'link') === 'link') + + {{ $item['label'] }} + + @elseif (($item['type'] ?? '') === 'wallet') + @includeIf('partials.wallet-widget', [ + 'onNavigate' => $onNavigate, + 'class' => $variant === 'sheet' ? 'mx-2' : 'mx-1', + ]) + @elseif (($item['type'] ?? '') === 'logout') + @if ($variant !== 'sheet') +
+ @endif +
+ @csrf + +
+ @endif + @endforeach +
diff --git a/resources/views/partials/wallet-topup-modal.blade.php b/resources/views/partials/wallet-topup-modal.blade.php new file mode 100644 index 0000000..d3e6aa3 --- /dev/null +++ b/resources/views/partials/wallet-topup-modal.blade.php @@ -0,0 +1,24 @@ +@props(['openOnLoad' => false, 'suggested' => 10, 'min' => 1, 'returnUrl' => null]) + + +
+

Top up your wallet

+

Add funds to your Ladill wallet to continue.

+
+ +
+ @csrf + + + + +

You'll be taken to Paystack to pay securely; funds land in your Ladill wallet.

+ +
+ + +
+
+
diff --git a/resources/views/partials/wallet-widget.blade.php b/resources/views/partials/wallet-widget.blade.php new file mode 100644 index 0000000..095b2f4 --- /dev/null +++ b/resources/views/partials/wallet-widget.blade.php @@ -0,0 +1,30 @@ +{{-- Wallet balance peek (links to the account wallet on account.ladill.com). --}} +@php + $onNavigate = $onNavigate ?? null; + $class = trim((string) ($class ?? 'mx-1')); + $balanceRoute = (string) config('billing.wallet_balance_route', 'wallet.balance'); + $balanceUrl = \Illuminate\Support\Facades\Route::has($balanceRoute) ? route($balanceRoute) : null; + $walletUrl = \Illuminate\Support\Facades\Route::has('user.wallet.index') + ? route('user.wallet.index') + : (function_exists('ladill_account_url') ? ladill_account_url('/wallet') : '#'); +@endphp +@if ($balanceUrl) + + + + + + + + + Wallet balance + + + + + +@endif diff --git a/resources/views/qms/admin/branches/create.blade.php b/resources/views/qms/admin/branches/create.blade.php new file mode 100644 index 0000000..e6b9c9f --- /dev/null +++ b/resources/views/qms/admin/branches/create.blade.php @@ -0,0 +1,13 @@ + +
+

New branch

+
+ @csrf +
+
+
+
+ +
+
+
diff --git a/resources/views/qms/admin/branches/edit.blade.php b/resources/views/qms/admin/branches/edit.blade.php new file mode 100644 index 0000000..3e6dfb1 --- /dev/null +++ b/resources/views/qms/admin/branches/edit.blade.php @@ -0,0 +1,14 @@ + +
+

Edit branch

+
+ @csrf @method('PUT') +
+
+
+
+ + +
+
+
diff --git a/resources/views/qms/admin/branches/index.blade.php b/resources/views/qms/admin/branches/index.blade.php new file mode 100644 index 0000000..a0d6d39 --- /dev/null +++ b/resources/views/qms/admin/branches/index.blade.php @@ -0,0 +1,31 @@ + +
+

Branches

+ @if(app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'admin.branches.manage')) + New branch + @endif +
+ @include('partials.flash') +
+ + + + + + + + + + @foreach ($branches as $branch) + + + + + + + + @endforeach + +
NameCodeDepartmentsStatus
{{ $branch->name }}{{ $branch->code ?? '—' }}{{ $branch->departments_count }}{{ $branch->is_active ? 'Active' : 'Inactive' }}Edit
+
+
diff --git a/resources/views/qms/admin/departments/create.blade.php b/resources/views/qms/admin/departments/create.blade.php new file mode 100644 index 0000000..d2803e8 --- /dev/null +++ b/resources/views/qms/admin/departments/create.blade.php @@ -0,0 +1,16 @@ + +
+

New department

+
+ @csrf +
+ +
+
+
+ +
+ +
+
+
diff --git a/resources/views/qms/admin/departments/edit.blade.php b/resources/views/qms/admin/departments/edit.blade.php new file mode 100644 index 0000000..d7f4c21 --- /dev/null +++ b/resources/views/qms/admin/departments/edit.blade.php @@ -0,0 +1,14 @@ + +
+

Edit department

+
+ @csrf @method('PUT') +
+
+ +
+ + +
+
+
diff --git a/resources/views/qms/admin/departments/index.blade.php b/resources/views/qms/admin/departments/index.blade.php new file mode 100644 index 0000000..766c2d5 --- /dev/null +++ b/resources/views/qms/admin/departments/index.blade.php @@ -0,0 +1,31 @@ + +
+

Departments

+ @if(app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'admin.departments.manage')) + New department + @endif +
+ @include('partials.flash') +
+ + + + + + + + + @forelse ($departments as $department) + + + + + + + @empty + + @endforelse + +
NameBranchType
{{ $department->name }}{{ $department->branch?->name }}{{ $types[$department->type] ?? $department->type }}Edit
No departments.
+
+
diff --git a/resources/views/qms/admin/members/create.blade.php b/resources/views/qms/admin/members/create.blade.php new file mode 100644 index 0000000..effaee1 --- /dev/null +++ b/resources/views/qms/admin/members/create.blade.php @@ -0,0 +1,16 @@ + +
+

Add team member

+
+ @csrf +
+
+ +
+
+ +
+ +
+
+
diff --git a/resources/views/qms/admin/members/index.blade.php b/resources/views/qms/admin/members/index.blade.php new file mode 100644 index 0000000..06c8e74 --- /dev/null +++ b/resources/views/qms/admin/members/index.blade.php @@ -0,0 +1,33 @@ + +
+

Team members

+ @if(app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'admin.members.manage')) + Add member + @endif +
+ @include('partials.flash') +
+ + + + + + + + + @foreach ($members as $member) + + + + + + + @endforeach + +
User refRoleBranch
{{ $member->user_ref }}{{ $roles[$member->role] ?? $member->role }}{{ $member->branch?->name ?? 'All' }} + @if ($member->user_ref !== auth()->user()->public_id) +
@csrf @method('DELETE')
+ @endif +
+
+
diff --git a/resources/views/qms/analytics/index.blade.php b/resources/views/qms/analytics/index.blade.php new file mode 100644 index 0000000..0dda50d --- /dev/null +++ b/resources/views/qms/analytics/index.blade.php @@ -0,0 +1,42 @@ + +

Analytics

+
+ @foreach ([ + 'waiting' => 'Waiting now', + 'serving' => 'Being served', + 'served_today' => 'Served today', + 'no_shows_today' => 'No-shows today', + 'avg_wait_seconds' => 'Avg wait (sec)', + 'appointments_today' => 'Appointments today', + 'feedback_avg_30d' => 'Avg rating (30d)', + ] as $key => $label) +
+
{{ $label }}
+
{{ $overview[$key] ?? 0 }}
+
+ @endforeach +
+
+
+

14-day trend

+ + + + @foreach ($trend as $day) + + @endforeach + +
DateIssuedCompleted
{{ $day['date'] }}{{ $day['issued'] }}{{ $day['completed'] }}
+
+
+

Busiest queues

+
    + @forelse ($overview['busiest_queues'] ?? [] as $q) +
  • {{ $q['name'] }}{{ $q['waiting'] }} waiting
  • + @empty +
  • No active queues.
  • + @endforelse +
+
+
+
diff --git a/resources/views/qms/appointments/create.blade.php b/resources/views/qms/appointments/create.blade.php new file mode 100644 index 0000000..1ea171e --- /dev/null +++ b/resources/views/qms/appointments/create.blade.php @@ -0,0 +1,42 @@ + +
+

Schedule appointment

+
+ @csrf +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
diff --git a/resources/views/qms/appointments/edit.blade.php b/resources/views/qms/appointments/edit.blade.php new file mode 100644 index 0000000..dd6053d --- /dev/null +++ b/resources/views/qms/appointments/edit.blade.php @@ -0,0 +1,18 @@ + +
+

Edit appointment

+
+ @csrf @method('PUT') +
+ +
+
+ +
+
+
+
+ +
+
+
diff --git a/resources/views/qms/appointments/index.blade.php b/resources/views/qms/appointments/index.blade.php new file mode 100644 index 0000000..77eb539 --- /dev/null +++ b/resources/views/qms/appointments/index.blade.php @@ -0,0 +1,47 @@ + +
+
+

Appointments

+

Schedule and check in pre-booked customers.

+
+ @if(app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'appointments.manage')) + New appointment + @endif +
+ @include('partials.flash') +
+ + + + + + + + + + + + @forelse ($appointments as $appointment) + + + + + + + + @empty + + @endforelse + +
CustomerScheduledQueueStatus
{{ $appointment->customer_name }}{{ $appointment->scheduled_at->format('M j, H:i') }}{{ $appointment->serviceQueue?->name ?? '—' }}{{ str_replace('_', ' ', $appointment->status) }} + @if ($appointment->status === 'scheduled') + Edit +
@csrf
+
@csrf
+ @elseif ($appointment->ticket) + View ticket + @endif +
No appointments yet.
+
+
{{ $appointments->links() }}
+
diff --git a/resources/views/qms/audit/index.blade.php b/resources/views/qms/audit/index.blade.php new file mode 100644 index 0000000..e44c76a --- /dev/null +++ b/resources/views/qms/audit/index.blade.php @@ -0,0 +1,37 @@ + +
+

Audit log

+ @if ($canExport) + Export CSV + @endif +
+
+ + + +
+
+ + + + + + + + @foreach ($logs as $log) + + + + + + @endforeach + +
TimeActionActor
{{ $log->created_at?->format('M j, H:i') }}{{ $actions[$log->action] ?? $log->action }}{{ $log->actor_ref ?? '—' }}
+
+
{{ $logs->links() }}
+
diff --git a/resources/views/qms/board/index.blade.php b/resources/views/qms/board/index.blade.php new file mode 100644 index 0000000..9b1999a --- /dev/null +++ b/resources/views/qms/board/index.blade.php @@ -0,0 +1,51 @@ + +
+

Live queue board

+

Auto-refreshes every 15 seconds

+
+ +
+ @foreach ($queues as $queue) +
+
+ +

{{ $queue->name }}

+ @if ($queue->is_paused) + Paused + @endif +
+

{{ $waiting->where('service_queue_id', $queue->id)->count() }}

+

waiting

+
+ @endforeach +
+ +
+
+

Now serving

+
    + @forelse ($serving as $ticket) +
  • + {{ $ticket->ticket_number }} + {{ $ticket->counter?->name }} · {{ $ticket->serviceQueue?->name }} +
  • + @empty +
  • No active tickets
  • + @endforelse +
+
+
+

Waiting

+
    + @forelse ($waiting as $ticket) +
  • + {{ $ticket->ticket_number }} + {{ $ticket->serviceQueue?->name }} +
  • + @empty +
  • Queue is empty
  • + @endforelse +
+
+
+
diff --git a/resources/views/qms/console/show.blade.php b/resources/views/qms/console/show.blade.php new file mode 100644 index 0000000..cb13033 --- /dev/null +++ b/resources/views/qms/console/show.blade.php @@ -0,0 +1,72 @@ + +
+
+

{{ $counter->name }}

+

{{ $counter->branch?->name }} · Status: {{ config('qms.counter_statuses.'.$counter->status, $counter->status) }}

+
+
+
@csrf
+
@csrf
+
+
+ + @if ($currentTicket) +
+

Current customer

+

{{ $currentTicket->ticket_number }}

+

{{ $currentTicket->serviceQueue?->name }} · {{ $currentTicket->customer_name }}

+
+ @foreach (['recall' => 'Recall', 'start' => 'Start serving', 'hold' => 'Hold', 'skip' => 'Skip', 'complete' => 'Complete', 'no_show' => 'No show'] as $action => $label) +
+ @csrf + + + +
+ @endforeach +
+ @if ($allQueues->count() > 1) +
+ @csrf + + + + + +
+ @endif +
+ @endif + +
+ @foreach ($queues as $queue) +
+
+

{{ $queue->name }}

+
+ @csrf + + + +
+
+
    + @forelse ($waitingByQueue[$queue->id] ?? [] as $ticket) +
  • + {{ $ticket->ticket_number }} + {{ $ticket->customer_name ?? 'Walk-in' }} +
  • + @empty +
  • No one waiting
  • + @endforelse +
+
+ @endforeach +
+
diff --git a/resources/views/qms/counters/create.blade.php b/resources/views/qms/counters/create.blade.php new file mode 100644 index 0000000..9c3fc9d --- /dev/null +++ b/resources/views/qms/counters/create.blade.php @@ -0,0 +1,20 @@ + +
+
+ @csrf +
+
+
+ +
+
+ @foreach ($queues as $queue) + + @endforeach +
+ +
+
+
diff --git a/resources/views/qms/counters/edit.blade.php b/resources/views/qms/counters/edit.blade.php new file mode 100644 index 0000000..ebc77ec --- /dev/null +++ b/resources/views/qms/counters/edit.blade.php @@ -0,0 +1,18 @@ + +
+

Edit counter

+
+ @csrf @method('PUT') +
+
+
+ +
+
+ +
+ + +
+
+
diff --git a/resources/views/qms/counters/index.blade.php b/resources/views/qms/counters/index.blade.php new file mode 100644 index 0000000..3764ebe --- /dev/null +++ b/resources/views/qms/counters/index.blade.php @@ -0,0 +1,20 @@ + +
+

Counters

+ New counter +
+
+ @foreach ($counters as $counter) +
+
+

{{ $counter->name }}

+ {{ $counter->status }} +
+

{{ $counter->branch?->name }}

+

Queues: {{ $counter->serviceQueues->pluck('name')->join(', ') ?: '—' }}

+ Open console +
+ @endforeach +
+
{{ $counters->links() }}
+
diff --git a/resources/views/qms/counters/show.blade.php b/resources/views/qms/counters/show.blade.php new file mode 100644 index 0000000..fa22bfd --- /dev/null +++ b/resources/views/qms/counters/show.blade.php @@ -0,0 +1,14 @@ + +
+
+ ← Counters +

{{ $counter->name }}

+
+ +
+

Status: {{ $counter->status }} · {{ $counter->branch?->name }}

+

Queues: {{ $counter->serviceQueues->pluck('name')->join(', ') ?: '—' }}

+
diff --git a/resources/views/qms/dashboard.blade.php b/resources/views/qms/dashboard.blade.php new file mode 100644 index 0000000..1b2e76b --- /dev/null +++ b/resources/views/qms/dashboard.blade.php @@ -0,0 +1,130 @@ + + @php + $operationalCards = [ + [ + 'label' => 'Waiting now', + 'value' => number_format($operational['waiting']), + 'href' => route('qms.queues.index'), + 'icon' => '', + ], + [ + 'label' => 'Being served', + 'value' => number_format($operational['serving']), + 'href' => route('qms.queues.index'), + 'icon' => '', + ], + [ + 'label' => 'Served today', + 'value' => number_format($operational['served_today']), + 'href' => route('qms.queues.index'), + 'icon' => '', + 'valueClass' => 'text-emerald-700', + ], + [ + 'label' => 'Avg wait', + 'value' => $operational['avg_wait_seconds'] > 0 + ? ceil($operational['avg_wait_seconds'] / 60).' mins' + : '—', + 'href' => route('qms.queues.index'), + 'icon' => '', + ], + [ + 'label' => 'No-shows today', + 'value' => number_format($operational['no_shows_today']), + 'href' => route('qms.queues.index'), + 'icon' => '', + ], + ]; + + $organizationCards = [ + [ + 'label' => 'Active branches', + 'value' => number_format($orgStats['branches']), + 'href' => route('qms.queues.index'), + 'icon' => '', + ], + [ + 'label' => 'Service queues', + 'value' => number_format($orgStats['queues']), + 'href' => route('qms.queues.index'), + 'icon' => '', + ], + [ + 'label' => 'Team members', + 'value' => number_format($orgStats['team_members']), + 'href' => route('qms.queues.index'), + 'icon' => '', + ], + ]; + @endphp + +
+
+

{{ $organization->name }}

+

Real-time queue operations overview

+
+ @if(auth()->user() && app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'queues.manage')) + New queue + @endif +
+ +
+

Live operations

+
+ @foreach ($operationalCards as $card) + +
+

{{ $card['label'] }}

+ {!! $card['icon'] !!} +
+

{{ $card['value'] }}

+
+ @endforeach +
+
+ +
+

Organization

+
+ @foreach ($organizationCards as $card) + +
+

{{ $card['label'] }}

+ {!! $card['icon'] !!} +
+

{{ $card['value'] }}

+
+ @endforeach +
+
+ + @if ($branches->isNotEmpty()) +
+

Branches

+
+ + + + + + + + + + @foreach ($branches as $branch) + + + + + + @endforeach + +
BranchQueuesStatus
{{ $branch->name }}{{ $branch->service_queues_count }} + + {{ $branch->is_active ? 'Active' : 'Inactive' }} + +
+
+
+ @endif +
diff --git a/resources/views/qms/devices/create.blade.php b/resources/views/qms/devices/create.blade.php new file mode 100644 index 0000000..685172e --- /dev/null +++ b/resources/views/qms/devices/create.blade.php @@ -0,0 +1,20 @@ + +
+
+ @csrf +
+
+ +
+
+ +
+ +
+
+
diff --git a/resources/views/qms/devices/index.blade.php b/resources/views/qms/devices/index.blade.php new file mode 100644 index 0000000..2634bf4 --- /dev/null +++ b/resources/views/qms/devices/index.blade.php @@ -0,0 +1,22 @@ + +
+

Devices

+ Register device +
+ @if (session('success'))

{{ session('success') }}

@endif +
+ @foreach ($devices as $device) +
+
+

{{ $device->name }}

+

{{ config('qms.device_types.'.$device->type) }} · {{ $device->status }}

+ @if ($device->type === 'kiosk' && $device->device_token) +

Kiosk URL: {{ route('qms.kiosk.device', $device->device_token) }}

+ @endif +
+
@csrf
+
+ @endforeach +
+ {{ $devices->links() }} +
diff --git a/resources/views/qms/display/public.blade.php b/resources/views/qms/display/public.blade.php new file mode 100644 index 0000000..34dbe51 --- /dev/null +++ b/resources/views/qms/display/public.blade.php @@ -0,0 +1,48 @@ + + + + + + + {{ $screen->name }} · Queue Display + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+
+

+

+
+ +
+

Now serving

+
+ +
+
+ +
+
+

Waiting

+

+
+
+

Est. wait

+

+
+
+

Queues

+ +
+
+
+ + diff --git a/resources/views/qms/displays/create.blade.php b/resources/views/qms/displays/create.blade.php new file mode 100644 index 0000000..9d6a947 --- /dev/null +++ b/resources/views/qms/displays/create.blade.php @@ -0,0 +1,24 @@ + +
+
+ @csrf +
+
+ +
+
+ +
+
+ @foreach ($queues as $q) + + @endforeach +
+ +
+
+
diff --git a/resources/views/qms/displays/edit.blade.php b/resources/views/qms/displays/edit.blade.php new file mode 100644 index 0000000..0e7fa9b --- /dev/null +++ b/resources/views/qms/displays/edit.blade.php @@ -0,0 +1,20 @@ + +
+

Edit display

+
+ @csrf @method('PUT') +
+
+ +
+
+ +
+
+ +
+ + +
+
+
diff --git a/resources/views/qms/displays/index.blade.php b/resources/views/qms/displays/index.blade.php new file mode 100644 index 0000000..a94b06a --- /dev/null +++ b/resources/views/qms/displays/index.blade.php @@ -0,0 +1,18 @@ + +
+

Display screens

+ New display +
+
+ @foreach ($screens as $screen) +
+
+

{{ $screen->name }}

+

{{ config('qms.display_layouts.'.$screen->layout) }}

+
+ Open display +
+ @endforeach +
+ {{ $screens->links() }} +
diff --git a/resources/views/qms/displays/show.blade.php b/resources/views/qms/displays/show.blade.php new file mode 100644 index 0000000..01d3520 --- /dev/null +++ b/resources/views/qms/displays/show.blade.php @@ -0,0 +1,11 @@ + +
+
+ ← Displays +

{{ $display->name }}

+
+ Edit +
+

Layout: {{ config('qms.display_layouts.'.$display->layout) }}

+

Open public display

+
diff --git a/resources/views/qms/feedback/index.blade.php b/resources/views/qms/feedback/index.blade.php new file mode 100644 index 0000000..44a07ac --- /dev/null +++ b/resources/views/qms/feedback/index.blade.php @@ -0,0 +1,29 @@ + +
+

Customer feedback

+

Average rating: {{ $avgRating ?: '—' }} / 5

+
+
+ + + + + + + + + @forelse ($feedback as $item) + + + + + + + @empty + + @endforelse + +
TicketRatingCommentsWhen
{{ $item->ticket?->ticket_number }}{{ $item->rating }}/5{{ Str::limit($item->comments, 80) }}{{ $item->created_at->diffForHumans() }}
No feedback yet.
+
+
{{ $feedback->links() }}
+
diff --git a/resources/views/qms/feedback/show.blade.php b/resources/views/qms/feedback/show.blade.php new file mode 100644 index 0000000..9923aef --- /dev/null +++ b/resources/views/qms/feedback/show.blade.php @@ -0,0 +1,38 @@ + + + + + + @include('partials.favicon') + Feedback — Ladill Queue + @vite(['resources/css/app.css']) + + +
+

How was your visit?

+

Ticket {{ $ticket->ticket_number }}

+ @if (session('success')) +
{{ session('success') }}
+ @elseif ($existing) +

You already submitted feedback. Thank you!

+ @else +
+ @csrf +
+ + +
+
+ + +
+ +
+ @endif +
+ + diff --git a/resources/views/qms/kiosk/device.blade.php b/resources/views/qms/kiosk/device.blade.php new file mode 100644 index 0000000..669dc9e --- /dev/null +++ b/resources/views/qms/kiosk/device.blade.php @@ -0,0 +1,50 @@ + + + + + + + Kiosk · {{ $device->name }} + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+

{{ $device->name }}

+ + + + + + +
+ + diff --git a/resources/views/qms/mobile/join.blade.php b/resources/views/qms/mobile/join.blade.php new file mode 100644 index 0000000..8a8d185 --- /dev/null +++ b/resources/views/qms/mobile/join.blade.php @@ -0,0 +1,34 @@ + + + + + + Join queue · Ladill Queue + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+

Join a queue

+

Enter your queue code and phone number to get a ticket remotely.

+ @if (session('success')) +

{{ session('success') }}

+ @endif +
+ @csrf +
+ + +
+
+ + +
+
+ + +
+ +
+
+ + diff --git a/resources/views/qms/mobile/show.blade.php b/resources/views/qms/mobile/show.blade.php new file mode 100644 index 0000000..4b19c69 --- /dev/null +++ b/resources/views/qms/mobile/show.blade.php @@ -0,0 +1,38 @@ + + + + + + Ticket {{ $ticket->ticket_number }} + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+ @if (session('success')) +

{{ session('success') }}

+ @endif +

Your ticket

+

+

+

Status:

+

+ +

+

+ Proceed to +

+ + @if (in_array($ticket->status, ['waiting', 'on_hold'])) +
+ @csrf + + +
+
+ @csrf + +
+ @endif +
+ + diff --git a/resources/views/qms/onboarding/show.blade.php b/resources/views/qms/onboarding/show.blade.php new file mode 100644 index 0000000..743d5fd --- /dev/null +++ b/resources/views/qms/onboarding/show.blade.php @@ -0,0 +1,71 @@ + +
+

Welcome to Ladill Queue

+

Configure your organization to start managing customer flow.

+ +
+ @csrf + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+
diff --git a/resources/views/qms/queues/_form.blade.php b/resources/views/qms/queues/_form.blade.php new file mode 100644 index 0000000..fe445c5 --- /dev/null +++ b/resources/views/qms/queues/_form.blade.php @@ -0,0 +1,44 @@ +
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+
+ + +
+
+ + +
+
diff --git a/resources/views/qms/queues/create.blade.php b/resources/views/qms/queues/create.blade.php new file mode 100644 index 0000000..3cc0eb2 --- /dev/null +++ b/resources/views/qms/queues/create.blade.php @@ -0,0 +1,16 @@ + +
+

Create service queue

+

Define how customers join and flow through this service point.

+ +
+ @csrf + @include('qms.queues._form', ['queue' => null]) + +
+ Cancel + +
+
+
+
diff --git a/resources/views/qms/queues/edit.blade.php b/resources/views/qms/queues/edit.blade.php new file mode 100644 index 0000000..3535b54 --- /dev/null +++ b/resources/views/qms/queues/edit.blade.php @@ -0,0 +1,11 @@ + +
+

Edit queue

+
+ @csrf @method('PUT') + @include('qms.queues._form', ['queue' => $queue]) + + +
+
+
diff --git a/resources/views/qms/queues/index.blade.php b/resources/views/qms/queues/index.blade.php new file mode 100644 index 0000000..23d327f --- /dev/null +++ b/resources/views/qms/queues/index.blade.php @@ -0,0 +1,73 @@ + +
+
+

Service queues

+

Configure queues for reception, counters, and departments.

+
+ @if(app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'queues.manage')) + New queue + @endif +
+ + @if (session('success')) +
{{ session('success') }}
+ @endif + +
+ @if ($queues->isEmpty()) +
+ No queues yet. Create your first service queue to start issuing tickets. +
+ @else + + + + + + + + + + + + @foreach ($queues as $queue) + + + + + + + + + @endforeach + +
QueueBranchPrefixStrategyStatus
+
+ + + {{ $queue->name }} + +
+
{{ $queue->branch?->name }}{{ $queue->prefix }}{{ config('qms.queue_strategies.'.$queue->strategy, $queue->strategy) }} +
+ @if ($queue->is_paused) + Paused +
@csrf
+ @elseif ($queue->is_active) + Active +
@csrf
+ @else + Inactive + @endif +
+
+ @if(app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'rules.view')) + Rules + @endif +
+
+ {{ $queues->links() }} +
+ @endif +
+
diff --git a/resources/views/qms/queues/show.blade.php b/resources/views/qms/queues/show.blade.php new file mode 100644 index 0000000..0cdc4fd --- /dev/null +++ b/resources/views/qms/queues/show.blade.php @@ -0,0 +1,19 @@ + +
+
+ ← Queues +

{{ $queue->name }}

+

{{ $queue->branch?->name }} · {{ config('qms.queue_strategies.'.$queue->strategy) }}

+
+ Edit +
+ @include('partials.flash') +
+
Waiting
{{ $waiting }}
+
Prefix
{{ $queue->prefix }}
+
Status
{{ $queue->is_paused ? 'Paused' : ($queue->is_active ? 'Active' : 'Inactive') }}
+
+ +
diff --git a/resources/views/qms/reports/index.blade.php b/resources/views/qms/reports/index.blade.php new file mode 100644 index 0000000..7f8f630 --- /dev/null +++ b/resources/views/qms/reports/index.blade.php @@ -0,0 +1,11 @@ + +

Reports

+
+ @foreach ($reports as $type => $label) + +

{{ $label }}

+

View metrics and export CSV

+
+ @endforeach +
+
diff --git a/resources/views/qms/reports/show.blade.php b/resources/views/qms/reports/show.blade.php new file mode 100644 index 0000000..0850d50 --- /dev/null +++ b/resources/views/qms/reports/show.blade.php @@ -0,0 +1,41 @@ + +
+
+ ← Reports +

{{ $label }}

+
+ @if ($canExport) + Export CSV + @endif +
+
+ + + + +
+
+ @if ($type === 'wait_times' && isset($data['hourly'])) + + @foreach ($data['hourly'] as $row)@endforeach +
HourAvg wait (sec)
{{ $row['hour'] }}:00{{ $row['avg_wait_seconds'] }}
+ @elseif ($type === 'counters' && isset($data['counters'])) + + @foreach ($data['counters'] as $row)@endforeach +
CounterServed
{{ $row['name'] }}{{ $row['served'] }}
+ @else +
+ @foreach ($data as $key => $value) + @if (!is_array($value)) +
{{ str_replace('_', ' ', $key) }}
{{ $value }}
+ @endif + @endforeach +
+ @endif +
+
diff --git a/resources/views/qms/rules/index.blade.php b/resources/views/qms/rules/index.blade.php new file mode 100644 index 0000000..c64e138 --- /dev/null +++ b/resources/views/qms/rules/index.blade.php @@ -0,0 +1,68 @@ + +
+ ← Queues +

Queue rules

+

{{ $queue->name }}

+
+ @include('partials.flash') +
+

Add rule

+
+ @csrf +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ + + + + + + + + @forelse ($rules as $rule) + + + + + + + @empty + + @endforelse + +
TypeConditionsActions
{{ $ruleTypes[$rule->rule_type] ?? $rule->rule_type }}{{ json_encode($rule->conditions) }}{{ json_encode($rule->actions) }} +
@csrf @method('DELETE')
+
No rules yet.
+
+
diff --git a/resources/views/qms/settings/edit.blade.php b/resources/views/qms/settings/edit.blade.php new file mode 100644 index 0000000..7dbfe54 --- /dev/null +++ b/resources/views/qms/settings/edit.blade.php @@ -0,0 +1,36 @@ + +
+

Organization settings

+
+ @csrf @method('PUT') +
+ +
+
+ +
+
+ +
+
+ +
+ + @if ($canManage) + + @endif +
+

{{ $branchCount }} branch{{ $branchCount === 1 ? '' : 'es' }} configured.

+
+
diff --git a/resources/views/qms/tickets/create.blade.php b/resources/views/qms/tickets/create.blade.php new file mode 100644 index 0000000..bf09f9c --- /dev/null +++ b/resources/views/qms/tickets/create.blade.php @@ -0,0 +1,33 @@ + +
+

Issue ticket

+
+ @csrf +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
diff --git a/resources/views/qms/tickets/index.blade.php b/resources/views/qms/tickets/index.blade.php new file mode 100644 index 0000000..4c92705 --- /dev/null +++ b/resources/views/qms/tickets/index.blade.php @@ -0,0 +1,29 @@ + +
+

Tickets

+ @if(app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'tickets.issue')) + Issue ticket + @endif +
+
+ + + + + + + + + @foreach ($tickets as $ticket) + + + + + + + @endforeach + +
TicketQueueStatusIssued
{{ $ticket->ticket_number }}{{ $ticket->serviceQueue?->name }}{{ str_replace('_', ' ', $ticket->status) }}{{ $ticket->issued_at?->format('M j, H:i') }}
+
{{ $tickets->links() }}
+
+
diff --git a/resources/views/qms/tickets/print.blade.php b/resources/views/qms/tickets/print.blade.php new file mode 100644 index 0000000..51c4be2 --- /dev/null +++ b/resources/views/qms/tickets/print.blade.php @@ -0,0 +1,12 @@ + +{{ $ticket->ticket_number }} + + +

{{ $ticket->serviceQueue?->name }}

+

{{ $ticket->ticket_number }}

+

{{ $ticket->issued_at?->format('M j, Y H:i') }}

+ @if ($ticket->estimated_wait_seconds) +

Est. wait: {{ ceil($ticket->estimated_wait_seconds / 60) }} minutes

+ @endif +

{{ $ticket->barcode }}

+ diff --git a/resources/views/qms/tickets/show.blade.php b/resources/views/qms/tickets/show.blade.php new file mode 100644 index 0000000..03c5626 --- /dev/null +++ b/resources/views/qms/tickets/show.blade.php @@ -0,0 +1,21 @@ + +
+ @if (session('success')) +

{{ session('success') }}

+ @endif +
+

Ticket

+

{{ $ticket->ticket_number }}

+

{{ $ticket->serviceQueue?->name }}

+

{{ str_replace('_', ' ', $ticket->status) }}

+ @if ($ticket->estimated_wait_seconds) +

Est. wait: {{ ceil($ticket->estimated_wait_seconds / 60) }} mins

+ @endif +

Track: {{ route('qms.mobile.show', $ticket->qr_token) }}

+ +
+
+
diff --git a/resources/views/qms/workflows/create.blade.php b/resources/views/qms/workflows/create.blade.php new file mode 100644 index 0000000..8a38982 --- /dev/null +++ b/resources/views/qms/workflows/create.blade.php @@ -0,0 +1,50 @@ + +
+

Create workflow

+
+ @csrf +
+ + +
+
+ + +
+
+ + +
+
+
+

Steps

+ +
+ +
+ +
+
+
diff --git a/resources/views/qms/workflows/edit.blade.php b/resources/views/qms/workflows/edit.blade.php new file mode 100644 index 0000000..220ed54 --- /dev/null +++ b/resources/views/qms/workflows/edit.blade.php @@ -0,0 +1,22 @@ + +
+

Edit workflow

+
+ @csrf @method('PUT') +
+
+ + + + +
+
+
diff --git a/resources/views/qms/workflows/index.blade.php b/resources/views/qms/workflows/index.blade.php new file mode 100644 index 0000000..0fdebc2 --- /dev/null +++ b/resources/views/qms/workflows/index.blade.php @@ -0,0 +1,29 @@ + +
+

Workflows

+ @if(app(\App\Services\Qms\QmsPermissions::class)->can(app(\App\Services\Qms\OrganizationResolver::class)->memberFor(auth()->user()), 'workflows.manage')) + New workflow + @endif +
+ @include('partials.flash') +
+ + + + + + + + @forelse ($workflows as $workflow) + + + + + + @empty + + @endforelse + +
NameStepsStatus
{{ $workflow->name }}{{ $workflow->steps_count }}{{ $workflow->is_active ? 'Active' : 'Inactive' }}
No workflows configured.
+
+
diff --git a/resources/views/qms/workflows/show.blade.php b/resources/views/qms/workflows/show.blade.php new file mode 100644 index 0000000..67fe4dc --- /dev/null +++ b/resources/views/qms/workflows/show.blade.php @@ -0,0 +1,21 @@ + +
+ ← Workflows +

{{ $workflow->name }}

+ @if ($workflow->description)

{{ $workflow->description }}

@endif +
+
+

Steps

+
    + @foreach ($workflow->steps as $step) +
  1. + {{ $step->sort_order }} +
    +
    {{ $step->name }}
    +
    {{ $step->serviceQueue?->name ?? 'No queue linked' }}
    +
    +
  2. + @endforeach +
+
+
diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..d7f1131 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,60 @@ + response()->json(['status' => 'ok', 'app' => 'queue'])); + +Route::post('/devices/heartbeat', DeviceHeartbeatController::class)->name('api.devices.heartbeat'); + +Route::post('/service-events', ServiceEventController::class)->name('api.service-events'); + +Route::prefix('v1/public')->group(function () { + Route::post('/join', [PublicQueueController::class, 'join'])->name('api.public.join'); + Route::get('/tickets/{qrToken}', [PublicQueueController::class, 'show'])->name('api.public.ticket'); + Route::post('/tickets/{qrToken}/delay', [PublicQueueController::class, 'delay'])->name('api.public.ticket.delay'); + Route::post('/tickets/{qrToken}/cancel', [PublicQueueController::class, 'cancel'])->name('api.public.ticket.cancel'); +}); + +Route::middleware(['auth:sanctum', 'qms.setup'])->prefix('v1')->group(function () { + Route::get('/queues', [ServiceQueueController::class, 'index'])->name('api.queues.index'); + Route::get('/queues/{serviceQueue}/waiting', [ServiceQueueController::class, 'waiting'])->name('api.queues.waiting'); + Route::post('/queues/{serviceQueue}/pause', [ServiceQueueController::class, 'pause'])->name('api.queues.pause'); + Route::post('/queues/{serviceQueue}/resume', [ServiceQueueController::class, 'resume'])->name('api.queues.resume'); + + Route::get('/tickets', [TicketController::class, 'index'])->name('api.tickets.index'); + Route::post('/tickets', [TicketController::class, 'store'])->name('api.tickets.store'); + Route::get('/tickets/{ticket}', [TicketController::class, 'show'])->name('api.tickets.show'); + Route::post('/tickets/{ticket}/action', [TicketController::class, 'action'])->name('api.tickets.action'); + Route::post('/queues/{serviceQueue}/call-next', [TicketController::class, 'callNext'])->name('api.queues.call-next'); + + Route::get('/counters', [CounterController::class, 'index'])->name('api.counters.index'); + Route::post('/counters', [CounterController::class, 'store'])->name('api.counters.store'); + + Route::get('/appointments', [AppointmentController::class, 'index'])->name('api.appointments.index'); + Route::post('/appointments', [AppointmentController::class, 'store'])->name('api.appointments.store'); + Route::post('/appointments/{appointment}/check-in', [AppointmentController::class, 'checkIn'])->name('api.appointments.check-in'); + + Route::get('/workflows', [WorkflowController::class, 'index'])->name('api.workflows.index'); + Route::get('/workflows/{workflow}', [WorkflowController::class, 'show'])->name('api.workflows.show'); + + Route::get('/queues/{serviceQueue}/rules', [QueueRuleController::class, 'index'])->name('api.rules.index'); + Route::post('/queues/{serviceQueue}/rules', [QueueRuleController::class, 'store'])->name('api.rules.store'); + + Route::get('/analytics/overview', [AnalyticsController::class, 'overview'])->name('api.analytics.overview'); + Route::get('/reports/{type}', [ReportController::class, 'show'])->name('api.reports.show'); + + Route::get('/branches', [BranchController::class, 'index'])->name('api.branches.index'); + Route::post('/branches', [BranchController::class, 'store'])->name('api.branches.store'); +}); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 0000000..d8ed87a --- /dev/null +++ b/routes/console.php @@ -0,0 +1,12 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); + +Schedule::command('qms:mark-devices-offline')->everyFiveMinutes(); +Schedule::command('qms:send-appointment-reminders')->everyFifteenMinutes(); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..2a490f2 --- /dev/null +++ b/routes/web.php @@ -0,0 +1,168 @@ + auth()->check() + ? redirect()->route('qms.dashboard') + : redirect()->route('sso.connect'))->name('qms.root'); + +Route::get('/login', [SsoLoginController::class, 'connect'])->name('login'); +Route::get('/sso/connect', [SsoLoginController::class, 'connect'])->name('sso.connect'); +Route::get('/sso/callback', [SsoLoginController::class, 'callback'])->name('sso.callback'); +Route::get('/sso/error', [SsoLoginController::class, 'failed'])->name('sso.failed'); +Route::post('/logout', [SsoLoginController::class, 'logout'])->name('logout'); +Route::get('/sso/logout-bridge', [SsoLoginController::class, 'logoutBridge'])->name('sso.logout-bridge'); +Route::get('/sso/logout-frontchannel', [SsoLoginController::class, 'frontchannelLogout'])->name('sso.logout-frontchannel'); +Route::get('/sso/platform-signed-out', [SsoLoginController::class, 'platformSignedOut'])->name('sso.platform-signed-out'); +Route::get('/signed-out', fn () => auth()->check() ? redirect()->route('qms.dashboard') : view('auth.signed-out'))->name('qms.signed-out'); + +// Public: digital display +Route::get('/display/{token}', [DisplayPublicController::class, 'show'])->name('qms.display.public'); +Route::get('/display/{token}/data', [DisplayPublicController::class, 'data'])->name('qms.display.data'); + +// Public: mobile queue +Route::get('/join', [MobileQueueController::class, 'joinForm'])->name('qms.mobile.join'); +Route::post('/join', [MobileQueueController::class, 'join'])->name('qms.mobile.join.store'); +Route::get('/m/{qrToken}', [MobileQueueController::class, 'show'])->name('qms.mobile.show'); +Route::get('/m/{qrToken}/data', [MobileQueueController::class, 'data'])->name('qms.mobile.data'); +Route::post('/m/{qrToken}/delay', [MobileQueueController::class, 'delay'])->name('qms.mobile.delay'); +Route::post('/m/{qrToken}/cancel', [MobileQueueController::class, 'cancel'])->name('qms.mobile.cancel'); + +// Public: customer feedback +Route::get('/feedback/{qrToken}', [FeedbackController::class, 'show'])->name('qms.feedback.show'); +Route::post('/feedback/{qrToken}', [FeedbackController::class, 'store'])->name('qms.feedback.store'); + +// Public: kiosk device +Route::middleware(['qms.device:kiosk', 'throttle:60,1'])->prefix('kiosk/d')->group(function () { + Route::get('/{token}', [KioskDeviceController::class, 'show'])->name('qms.kiosk.device'); + Route::post('/{token}/issue', [KioskDeviceController::class, 'issue'])->name('qms.kiosk.device.issue'); +}); + +Route::middleware(['auth', 'platform.session'])->group(function () { + Route::get('/notifications', [NotificationController::class, 'index'])->name('notifications.index'); + Route::get('/notifications/unread', [NotificationController::class, 'unread'])->name('notifications.unread'); + Route::post('/notifications/{id}/read', [NotificationController::class, 'markAsRead'])->name('notifications.mark-read'); + Route::post('/notifications/mark-all-read', [NotificationController::class, 'markAllAsRead'])->name('notifications.mark-all-read'); + + Route::get('/onboarding', [OnboardingController::class, 'show'])->name('qms.onboarding.show'); + Route::post('/onboarding', [OnboardingController::class, 'store'])->name('qms.onboarding.store'); + + Route::middleware(['qms.setup'])->group(function () { + Route::get('/dashboard', [DashboardController::class, 'index'])->name('qms.dashboard'); + Route::get('/board', [QueueBoardController::class, 'index'])->name('qms.board.index'); + + Route::get('/queues', [ServiceQueueController::class, 'index'])->name('qms.queues.index'); + Route::get('/queues/create', [ServiceQueueController::class, 'create'])->name('qms.queues.create'); + Route::post('/queues', [ServiceQueueController::class, 'store'])->name('qms.queues.store'); + Route::get('/queues/{serviceQueue}', [ServiceQueueController::class, 'show'])->name('qms.queues.show'); + Route::get('/queues/{serviceQueue}/edit', [ServiceQueueController::class, 'edit'])->name('qms.queues.edit'); + Route::put('/queues/{serviceQueue}', [ServiceQueueController::class, 'update'])->name('qms.queues.update'); + Route::post('/queues/{serviceQueue}/pause', [ServiceQueueController::class, 'pause'])->name('qms.queues.pause'); + Route::post('/queues/{serviceQueue}/resume', [ServiceQueueController::class, 'resume'])->name('qms.queues.resume'); + + Route::get('/tickets', [TicketController::class, 'index'])->name('qms.tickets.index'); + Route::get('/tickets/create', [TicketController::class, 'create'])->name('qms.tickets.create'); + Route::post('/tickets', [TicketController::class, 'store'])->name('qms.tickets.store'); + Route::get('/tickets/{ticket}', [TicketController::class, 'show'])->name('qms.tickets.show'); + Route::get('/tickets/{ticket}/print', [TicketController::class, 'print'])->name('qms.tickets.print'); + + Route::get('/counters', [CounterController::class, 'index'])->name('qms.counters.index'); + Route::get('/counters/create', [CounterController::class, 'create'])->name('qms.counters.create'); + Route::post('/counters', [CounterController::class, 'store'])->name('qms.counters.store'); + Route::get('/counters/{counter}', [CounterController::class, 'show'])->name('qms.counters.show'); + Route::get('/counters/{counter}/edit', [CounterController::class, 'edit'])->name('qms.counters.edit'); + Route::put('/counters/{counter}', [CounterController::class, 'update'])->name('qms.counters.update'); + + Route::get('/console/{counter}', [ConsoleController::class, 'show'])->name('qms.console.show'); + Route::post('/console/{counter}/action', [ConsoleController::class, 'action'])->name('qms.console.action'); + + Route::get('/displays', [DisplayScreenController::class, 'index'])->name('qms.displays.index'); + Route::get('/displays/create', [DisplayScreenController::class, 'create'])->name('qms.displays.create'); + Route::post('/displays', [DisplayScreenController::class, 'store'])->name('qms.displays.store'); + Route::get('/displays/{display}', [DisplayScreenController::class, 'show'])->name('qms.displays.show'); + Route::get('/displays/{display}/edit', [DisplayScreenController::class, 'edit'])->name('qms.displays.edit'); + Route::put('/displays/{display}', [DisplayScreenController::class, 'update'])->name('qms.displays.update'); + + Route::get('/devices', [DeviceController::class, 'index'])->name('qms.devices.index'); + Route::get('/devices/create', [DeviceController::class, 'create'])->name('qms.devices.create'); + Route::post('/devices', [DeviceController::class, 'store'])->name('qms.devices.store'); + Route::post('/devices/{device}/regenerate-token', [DeviceController::class, 'regenerateToken'])->name('qms.devices.regenerate-token'); + + Route::get('/appointments', [AppointmentController::class, 'index'])->name('qms.appointments.index'); + Route::get('/appointments/create', [AppointmentController::class, 'create'])->name('qms.appointments.create'); + Route::post('/appointments', [AppointmentController::class, 'store'])->name('qms.appointments.store'); + Route::get('/appointments/{appointment}/edit', [AppointmentController::class, 'edit'])->name('qms.appointments.edit'); + Route::put('/appointments/{appointment}', [AppointmentController::class, 'update'])->name('qms.appointments.update'); + Route::post('/appointments/{appointment}/check-in', [AppointmentController::class, 'checkIn'])->name('qms.appointments.check-in'); + Route::post('/appointments/{appointment}/cancel', [AppointmentController::class, 'cancel'])->name('qms.appointments.cancel'); + + Route::get('/workflows', [WorkflowController::class, 'index'])->name('qms.workflows.index'); + Route::get('/workflows/create', [WorkflowController::class, 'create'])->name('qms.workflows.create'); + Route::post('/workflows', [WorkflowController::class, 'store'])->name('qms.workflows.store'); + Route::get('/workflows/{workflow}', [WorkflowController::class, 'show'])->name('qms.workflows.show'); + Route::get('/workflows/{workflow}/edit', [WorkflowController::class, 'edit'])->name('qms.workflows.edit'); + Route::put('/workflows/{workflow}', [WorkflowController::class, 'update'])->name('qms.workflows.update'); + Route::delete('/workflows/{workflow}', [WorkflowController::class, 'destroy'])->name('qms.workflows.destroy'); + + Route::get('/queues/{serviceQueue}/rules', [QueueRuleController::class, 'index'])->name('qms.rules.index'); + Route::post('/queues/{serviceQueue}/rules', [QueueRuleController::class, 'store'])->name('qms.rules.store'); + Route::delete('/queues/{serviceQueue}/rules/{rule}', [QueueRuleController::class, 'destroy'])->name('qms.rules.destroy'); + + Route::get('/analytics', [AnalyticsController::class, 'index'])->name('qms.analytics.index'); + Route::get('/reports', [ReportController::class, 'index'])->name('qms.reports.index'); + Route::get('/reports/{type}', [ReportController::class, 'show'])->name('qms.reports.show'); + Route::get('/reports/{type}/export', [ReportController::class, 'export'])->name('qms.reports.export'); + + Route::get('/feedback', [FeedbackAdminController::class, 'index'])->name('qms.feedback.admin'); + + Route::get('/admin/branches', [BranchController::class, 'index'])->name('qms.branches.index'); + Route::get('/admin/branches/create', [BranchController::class, 'create'])->name('qms.branches.create'); + Route::post('/admin/branches', [BranchController::class, 'store'])->name('qms.branches.store'); + Route::get('/admin/branches/{branch}/edit', [BranchController::class, 'edit'])->name('qms.branches.edit'); + Route::put('/admin/branches/{branch}', [BranchController::class, 'update'])->name('qms.branches.update'); + + Route::get('/admin/departments', [DepartmentController::class, 'index'])->name('qms.departments.index'); + Route::get('/admin/departments/create', [DepartmentController::class, 'create'])->name('qms.departments.create'); + Route::post('/admin/departments', [DepartmentController::class, 'store'])->name('qms.departments.store'); + Route::get('/admin/departments/{department}/edit', [DepartmentController::class, 'edit'])->name('qms.departments.edit'); + Route::put('/admin/departments/{department}', [DepartmentController::class, 'update'])->name('qms.departments.update'); + Route::delete('/admin/departments/{department}', [DepartmentController::class, 'destroy'])->name('qms.departments.destroy'); + + Route::get('/admin/members', [MemberController::class, 'index'])->name('qms.members.index'); + Route::get('/admin/members/create', [MemberController::class, 'create'])->name('qms.members.create'); + Route::post('/admin/members', [MemberController::class, 'store'])->name('qms.members.store'); + Route::delete('/admin/members/{member}', [MemberController::class, 'destroy'])->name('qms.members.destroy'); + + Route::get('/admin/audit', [AuditLogController::class, 'index'])->name('qms.audit.index'); + Route::get('/admin/audit/export', [AuditLogController::class, 'export'])->name('qms.audit.export'); + + Route::get('/settings', [SettingsController::class, 'edit'])->name('qms.settings.edit'); + Route::put('/settings', [SettingsController::class, 'update'])->name('qms.settings.update'); + }); +}); diff --git a/tests/Feature/QmsQueueTest.php b/tests/Feature/QmsQueueTest.php new file mode 100644 index 0000000..bbd7b09 --- /dev/null +++ b/tests/Feature/QmsQueueTest.php @@ -0,0 +1,192 @@ + 'test-owner-uuid', + 'name' => 'Test User', + 'email' => 'test@example.com', + 'password' => bcrypt('password'), + ]); + $resolver = app(OrganizationResolver::class); + $org = $resolver->completeOnboarding($user, [ + 'organization_name' => 'Test Org', + 'industry' => 'retail', + 'appointment_mode' => 'hybrid', + 'branch_name' => 'Main', + 'timezone' => 'UTC', + ]); + $branch = Branch::first(); + $queue = ServiceQueue::create([ + 'owner_ref' => $user->public_id, + 'organization_id' => $org->id, + 'branch_id' => $branch->id, + 'name' => 'Reception', + 'prefix' => 'A', + 'strategy' => 'fifo', + 'is_active' => true, + ]); + + return [$user, $org, $branch, $queue]; + } + + public function test_issue_ticket_increments_sequence(): void + { + [$user, , , $queue] = $this->setUpOrg(); + $engine = app(QueueEngine::class); + + $ticket = $engine->issueTicket($queue, $user->public_id, ['source' => 'api']); + $this->assertSame('A001', $ticket->ticket_number); + $this->assertSame('waiting', $ticket->status); + + $ticket2 = $engine->issueTicket($queue->fresh(), $user->public_id); + $this->assertSame('A002', $ticket2->ticket_number); + } + + public function test_health_endpoint(): void + { + $this->getJson('/api/health')->assertOk()->assertJson(['app' => 'queue']); + } + + public function test_appointment_check_in_issues_ticket(): void + { + [$user, $org, $branch, $queue] = $this->setUpOrg(); + + $appointment = \App\Models\QueueAppointment::create([ + 'owner_ref' => $user->public_id, + 'organization_id' => $org->id, + 'branch_id' => $branch->id, + 'service_queue_id' => $queue->id, + 'customer_name' => 'Jane Doe', + 'status' => 'scheduled', + 'scheduled_at' => now()->addHour(), + 'reference' => 'APT-TEST', + ]); + + $ticket = app(\App\Services\Qms\AppointmentService::class)->checkIn($appointment, $user->public_id); + + $this->assertSame('appointment', $ticket->priority); + $this->assertSame('checked_in', $appointment->fresh()->status); + $this->assertSame($ticket->id, $appointment->fresh()->ticket_id); + } + + public function test_workflow_metadata_attached_on_issue(): void + { + [$user, $org, $branch, $queue] = $this->setUpOrg(); + + $workflow = \App\Models\Workflow::create([ + 'owner_ref' => $user->public_id, + 'organization_id' => $org->id, + 'name' => 'Test flow', + 'is_active' => true, + ]); + \App\Models\WorkflowStep::create([ + 'workflow_id' => $workflow->id, + 'service_queue_id' => $queue->id, + 'name' => 'Step 1', + 'sort_order' => 1, + ]); + + $ticket = app(QueueEngine::class)->issueTicket($queue, $user->public_id); + $this->assertSame($workflow->id, data_get($ticket->metadata, 'workflow_id')); + } + + public function test_routing_rule_redirects_ticket(): void + { + [$user, $org, $branch, $queue] = $this->setUpOrg(); + $target = ServiceQueue::create([ + 'owner_ref' => $user->public_id, + 'organization_id' => $org->id, + 'branch_id' => $branch->id, + 'name' => 'VIP', + 'prefix' => 'V', + 'strategy' => 'fifo', + 'is_active' => true, + ]); + + \App\Models\QueueRule::create([ + 'owner_ref' => $user->public_id, + 'service_queue_id' => $queue->id, + 'rule_type' => 'routing', + 'conditions' => ['source' => 'api'], + 'actions' => ['target_queue_id' => $target->id], + 'sort_order' => 1, + 'is_active' => true, + ]); + + $ticket = app(QueueEngine::class)->issueTicket($queue, $user->public_id, ['source' => 'api']); + $this->assertSame($target->id, $ticket->service_queue_id); + } + + public function test_service_session_tracked(): void + { + [$user, , , $queue] = $this->setUpOrg(); + $engine = app(QueueEngine::class); + $ticket = $engine->issueTicket($queue, $user->public_id); + $counter = \App\Models\Counter::create([ + 'owner_ref' => $user->public_id, + 'organization_id' => $queue->organization_id, + 'branch_id' => $queue->branch_id, + 'name' => 'C1', + 'status' => 'available', + 'is_active' => true, + ]); + $engine->callTicket($ticket, $counter, $user->public_id); + $engine->startServing($ticket->fresh(), $user->public_id); + $engine->completeTicket($ticket->fresh(), $user->public_id); + + $this->assertDatabaseHas('queue_service_sessions', [ + 'ticket_id' => $ticket->id, + ]); + $session = \App\Models\ServiceSession::where('ticket_id', $ticket->id)->first(); + $this->assertNotNull($session->ended_at); + } + + public function test_reports_sqlite_compatible(): void + { + [$user, $org, , $queue] = $this->setUpOrg(); + app(QueueEngine::class)->issueTicket($queue, $user->public_id, ['source' => 'api']); + + $reports = app(\App\Services\Qms\ReportService::class); + $from = now()->subDay(); + $to = now()->addDay(); + $data = $reports->ticketsReport($user->public_id, $org->id, $from, $to); + $this->assertArrayHasKey('total_issued', $data); + $this->assertGreaterThanOrEqual(1, $data['total_issued']); + } + + public function test_device_heartbeat(): void + { + [$user, $org, $branch] = $this->setUpOrg(); + + $device = \App\Models\Device::create([ + 'owner_ref' => $user->public_id, + 'organization_id' => $org->id, + 'branch_id' => $branch->id, + 'name' => 'Kiosk 1', + 'type' => 'kiosk', + 'device_token' => 'test-device-token-123', + ]); + + $this->postJson('/api/devices/heartbeat', [], [ + 'Authorization' => 'Bearer test-device-token-123', + ])->assertOk()->assertJsonPath('status', 'ok'); + + $this->assertSame('online', $device->fresh()->status); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..eece6d4 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,14 @@ +withoutVite(); + } +} diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php new file mode 100644 index 0000000..5773b0c --- /dev/null +++ b/tests/Unit/ExampleTest.php @@ -0,0 +1,16 @@ +assertTrue(true); + } +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..f35b4e7 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,18 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; +import tailwindcss from '@tailwindcss/vite'; + +export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + }), + tailwindcss(), + ], + server: { + watch: { + ignored: ['**/storage/framework/views/**'], + }, + }, +});