commit 77a87fbdf1ac163b56a5dc1e2b8eb37e5c922c9f Author: Saufi Date: Tue Jun 16 15:04:58 2026 +0800 first diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6dd16ec --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,27 @@ +services: + app: + build: + context: . + dockerfile: docker/php-apache/Dockerfile + container_name: myansuran-app + ports: + - "8002:80" + restart: always + volumes: + - ./src:/var/www/html + - ./docker/php/custom.ini:/usr/local/etc/php/conf.d/99-custom.ini + environment: + APACHE_DOCUMENT_ROOT: /var/www/html/public + APP_ENV: local + APP_DEBUG: "true" + REDIS_HOST: shared-redis + REDIS_PORT: 6379 + extra_hosts: + - "host.docker.internal:host-gateway" + networks: + - backend_net + +networks: + backend_net: + name: backend_net + driver: bridge \ No newline at end of file diff --git a/docker/php-apache/Dockerfile b/docker/php-apache/Dockerfile new file mode 100644 index 0000000..fe9dc6f --- /dev/null +++ b/docker/php-apache/Dockerfile @@ -0,0 +1,25 @@ +FROM php:8.3-apache + +ENV APACHE_DOCUMENT_ROOT=/var/www/html/public + +RUN apt-get update && apt-get install -y \ + git \ + unzip \ + libzip-dev \ + libpng-dev \ + libjpeg62-turbo-dev \ + libfreetype6-dev \ + libicu-dev \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install pdo_mysql gd intl zip \ + && pecl install redis \ + && docker-php-ext-enable redis \ + && a2enmod rewrite headers \ + && rm -rf /var/lib/apt/lists/* + +COPY --from=composer:2 /usr/bin/composer /usr/bin/composer +COPY docker/php-apache/vhost.conf /etc/apache2/sites-available/000-default.conf + +WORKDIR /var/www/html + +RUN chown -R www-data:www-data /var/www/html diff --git a/docker/php-apache/vhost.conf b/docker/php-apache/vhost.conf new file mode 100644 index 0000000..aec7291 --- /dev/null +++ b/docker/php-apache/vhost.conf @@ -0,0 +1,13 @@ + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html/public + + + AllowOverride All + Require all granted + Options -Indexes + + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + diff --git a/docker/php/custom.ini b/docker/php/custom.ini new file mode 100644 index 0000000..4759bf7 --- /dev/null +++ b/docker/php/custom.ini @@ -0,0 +1,4 @@ +display_errors = On +display_startup_errors = Off +log_errors = On +error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED \ No newline at end of file diff --git a/src/.claude/settings.local.json b/src/.claude/settings.local.json new file mode 100644 index 0000000..f6109ae --- /dev/null +++ b/src/.claude/settings.local.json @@ -0,0 +1,10 @@ +{ + "permissions": { + "allow": [ + "Bash(Get-ChildItem -Path \"c:\\\\Users\\\\User\\\\Aplikasi\\\\e-ansuran\\\\src\" -Force)", + "Bash(Select-Object Name, Mode)", + "Bash(Format-Table -AutoSize)", + "Bash(php artisan *)" + ] + } +} diff --git a/src/.editorconfig b/src/.editorconfig new file mode 100644 index 0000000..a186cd2 --- /dev/null +++ b/src/.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/src/.env-lama.bak b/src/.env-lama.bak new file mode 100644 index 0000000..31e0a45 --- /dev/null +++ b/src/.env-lama.bak @@ -0,0 +1,65 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY=base64:WPTBFLwpIonnG1OvemNGo1Pu1E2sLbvqLxPvJHHw+N0= +APP_DEBUG=true +APP_URL=http://localhost + +APP_LOCALE=en +APP_FALLBACK_LOCALE=en +APP_FAKER_LOCALE=en_US + +APP_MAINTENANCE_DRIVER=file +# APP_MAINTENANCE_STORE=database + +# PHP_CLI_SERVER_WORKERS=4 + +BCRYPT_ROUNDS=12 + +LOG_CHANNEL=stack +LOG_STACK=single +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=jpph_najib +DB_USERNAME=root +DB_PASSWORD=1234 + +SESSION_DRIVER=database +SESSION_LIFETIME=120 +SESSION_ENCRYPT=false +SESSION_PATH=/ +SESSION_DOMAIN=null + +BROADCAST_CONNECTION=log +FILESYSTEM_DISK=local +QUEUE_CONNECTION=database + +CACHE_STORE=database +# CACHE_PREFIX= + +MEMCACHED_HOST=127.0.0.1 + +REDIS_CLIENT=phpredis +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=log +MAIL_SCHEME=null +MAIL_HOST=127.0.0.1 +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +VITE_APP_NAME="${APP_NAME}" diff --git a/src/.env.example b/src/.env.example new file mode 100644 index 0000000..c0660ea --- /dev/null +++ b/src/.env.example @@ -0,0 +1,65 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +APP_LOCALE=en +APP_FALLBACK_LOCALE=en +APP_FAKER_LOCALE=en_US + +APP_MAINTENANCE_DRIVER=file +# APP_MAINTENANCE_STORE=database + +# PHP_CLI_SERVER_WORKERS=4 + +BCRYPT_ROUNDS=12 + +LOG_CHANNEL=stack +LOG_STACK=single +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=sqlite +# DB_HOST=127.0.0.1 +# DB_PORT=3306 +# DB_DATABASE=laravel +# DB_USERNAME=root +# DB_PASSWORD= + +SESSION_DRIVER=database +SESSION_LIFETIME=120 +SESSION_ENCRYPT=false +SESSION_PATH=/ +SESSION_DOMAIN=null + +BROADCAST_CONNECTION=log +FILESYSTEM_DISK=local +QUEUE_CONNECTION=database + +CACHE_STORE=database +# CACHE_PREFIX= + +MEMCACHED_HOST=127.0.0.1 + +REDIS_CLIENT=phpredis +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=log +MAIL_SCHEME=null +MAIL_HOST=127.0.0.1 +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +VITE_APP_NAME="${APP_NAME}" diff --git a/src/.gitattributes b/src/.gitattributes new file mode 100644 index 0000000..fcb21d3 --- /dev/null +++ b/src/.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/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..b71b1ea --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,24 @@ +*.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 +/vendor +Homestead.json +Homestead.yaml +Thumbs.db diff --git a/src/.npmrc b/src/.npmrc new file mode 100644 index 0000000..495a6af --- /dev/null +++ b/src/.npmrc @@ -0,0 +1,2 @@ +ignore-scripts=true +audit=true diff --git a/src/PROMPT_MYANSURAN_TERKINI.txt b/src/PROMPT_MYANSURAN_TERKINI.txt new file mode 100644 index 0000000..32d5899 --- /dev/null +++ b/src/PROMPT_MYANSURAN_TERKINI.txt @@ -0,0 +1,669 @@ +PROMPT PENUH MYANSURAN VERSI TERKINI + +Anda ialah pembangun Laravel berpengalaman. Saya mahu anda menyambung, +menyelenggara dan menambah baik sistem web lengkap bernama MyAnsuran untuk +demo KIK. Sistem ini telah dibangunkan menggunakan Laravel, Blade, Bootstrap, +jQuery dan MySQL. + +Jangan hasilkan cadangan umum sahaja. Jangan hasilkan skeleton kosong. +Teruskan pembangunan berdasarkan sistem sedia ada. Jika terdapat maklumat +tidak lengkap, buat andaian munasabah, teruskan pembangunan dan catat andaian +penting secara ringkas. + +Sistem perlu kekal moden, kemas, profesional dan sesuai untuk portal kerajaan +atau pihak berkuasa tempatan. Semua role perlu boleh login, dashboard boleh +dipaparkan, menu utama boleh dibuka dan flow utama boleh didemo. + +================================================== +NAMA SISTEM +================================================== + +MyAnsuran + +================================================== +STACK SISTEM +================================================== + +1. Laravel +2. Blade +3. Bootstrap +4. jQuery +5. MySQL +6. Laravel Authentication +7. Role-Based Access Control +8. Maatwebsite Excel untuk import dan export Excel + +================================================== +ROLE SISTEM +================================================== + +1. Admin +2. Staff +3. Pengguna Awam + +================================================== +OBJEKTIF SISTEM +================================================== + +1. Pengguna awam boleh membuat permohonan bayaran cukai harta secara ansuran. +2. Pengguna awam hanya memasukkan No_Akaun_Tunggakan untuk semakan. +3. Sistem memaparkan maklumat akaun cukai harta jika akaun wujud. +4. Sistem memaparkan status terkini akaun berdasarkan permohonan ansuran. +5. Pengguna boleh memilih tempoh ansuran antara 2 hingga 6 bulan. +6. Staff menyemak permohonan dan memasukkan jadual ansuran secara manual. +7. Staff memasukkan amaun ansuran, ulasan semakan dan tindakan status. +8. Staff boleh merekod bayaran manual dengan nombor resit. +9. Staff boleh kemaskini bayaran secara pukal melalui Excel atau CSV. +10. Admin boleh mengurus pengguna, data harta, import cukai harta, laporan dan audit trail. +11. Sistem menyokong import Excel berbeza untuk Admin dan Staff. +12. Sistem menyediakan flow demo lengkap untuk KIK. + +================================================== +PERATURAN UTAMA SISTEM ANSURAN +================================================== + +Sistem MyAnsuran TIDAK menjana jadual ansuran secara automatik. + +Sistem hanya: +1. Menyemak No_Akaun_Tunggakan. +2. Memaparkan maklumat akaun tunggakan jika wujud. +3. Membenarkan pengguna memilih tempoh ansuran 2 hingga 6 bulan. +4. Membenarkan pengguna mengisi borang permohonan ansuran. +5. Membenarkan staff menyemak permohonan. +6. Membenarkan staff memasukkan amaun ansuran secara manual. +7. Menyimpan jadual ansuran berdasarkan input staff. +8. Memaparkan jadual ansuran kepada pengguna selepas staff sahkan. + +Jangan bina fungsi auto-generate jadual ansuran. +Jangan paksa sistem membahagikan tunggakan secara automatik. + +================================================== +STATUS AKAUN / PERMOHONAN +================================================== + +Gunakan status berikut: + +1. diproses + - Permohonan baharu. + - Staff perlu membuat semakan dan proses kelulusan. + - Badge oren. + +2. aktif + - Permohonan diterima. + - Akaun berada dalam tempoh bayaran ansuran. + - Jadual ansuran manual telah disahkan. + - Badge hijau. + +3. selesai + - Semua bayaran ansuran telah lengkap. + - Akaun tidak lagi dianggap akaun aktif. + - Badge gelap atau putih mengikut UI. + +4. gagal + - Akaun disahkan gagal oleh staff. + - Badge merah. + +5. batal + - Akaun dibatalkan oleh staff. + - Badge merah. + +Peraturan penting: +1. Staff hanya boleh menyemak akaun berstatus diproses dan aktif. +2. Akaun batal, gagal dan selesai tidak dipaparkan di dashboard semakan staff. +3. Akaun batal, gagal dan selesai masih wujud dalam sejarah, database, laporan dan import Excel. +4. Pengguna tidak boleh meneruskan permohonan baharu jika No_Akaun_Tunggakan sudah mempunyai akaun berstatus diproses, aktif atau selesai. +5. Pengguna boleh melihat status terkini akaun semasa semakan No_Akaun_Tunggakan. +6. Jika akaun tiada dalam database, pengguna tidak boleh meneruskan permohonan. + +================================================== +MODUL PENGGUNA AWAM +================================================== + +Halaman utama pengguna awam: +1. Dashboard pengguna. +2. Permohonan Saya. +3. Permohonan Baharu. +4. Profil Pengguna. +5. Notifikasi. +6. Logout. + +Flow permohonan baharu adalah page-to-page / step wizard: + +Langkah 1: +Semakan No_Akaun_Tunggakan + +1. Pengguna hanya boleh memasukkan No_Akaun_Tunggakan. +2. Sistem mencari akaun dalam table property_accounts. +3. Jika akaun tidak wujud, paparkan mesej: + Nombor akaun tunggakan tidak dijumpai. Sila semak semula nombor akaun anda atau hubungi pihak MBIP. +4. Jika akaun wujud, sistem paparkan: + - No_Akaun + - No_Akaun_Tunggakan + - Status Akaun Terkini + - No Permohonan terkini jika ada + - Pemilik + - Tunggakan + - Taman + - Rupacara + - Kadar +5. Jika status akaun ialah diproses, aktif atau selesai, butang Seterusnya mesti disabled. +6. Jika status akaun ialah gagal atau batal, pengguna boleh meneruskan permohonan baharu. +7. Jika belum ada permohonan ansuran, pengguna boleh meneruskan permohonan. + +Langkah 2: +Borang Permohonan Bayaran Cukai Harta Secara Ansuran + +Field penting: +1. No_Akaun - autofill dan readonly. +2. Status Akaun Terkini - autofill dan readonly. +3. Pemilik - autofill dan readonly. +4. Rupacara - autofill dan readonly. +5. No_Lot - autofill dan readonly. +6. No_DHM - pengguna boleh isi atau kemaskini. +7. No_Syarikat - pengguna boleh isi atau kemaskini. +8. Alamat_Harta - autofill dan readonly. +9. Alamat_Harta disusun berdasarkan No_Bgnn, Nama_Jalan daripada import Excel. +10. Kategori Harta: + - Kediaman + - Industri + - Perdagangan +11. Tempoh Ansuran: + - 2 bulan + - 3 bulan + - 4 bulan + - 5 bulan + - 6 bulan +12. Identification Type: + - Army/Police ID + - MyKad + - National ID +13. Identification Number. +14. Alamat_Surat_Menyurat. +15. Mobile_No dengan kod negara. +16. Emel. +17. Alamat_Tempat_Bekerja. +18. Pekerjaan. +19. Pendapatan_Sebulan. + +Langkah 3: +Teks Perakuan Pemohon + +Paparkan teks perakuan: + +Saya yang bertandatangan dibawah bersetuju dan berjanji akan menjelaskan +bayaran cukai harta mengikut jadual ansuran yang telah diluluskan sebagaimana +di bawah. Sekiranya saya gagal maka pihak Majlis Bandaraya Iskandar Puteri +berhak membatalkan permohonan ini dan mengambil TINDAKAN SITAAN / +UNDANG-UNDANG ke atas SAYA / PREMIS tanpa apa-apa notis lagi. + +Field perakuan: +1. Nama Perakuan. +2. Jenis ID Perakuan. +3. No ID Perakuan. +4. Tarikh Perakuan. +5. Upload / capture salinan IC. +6. Tick perakuan. + +Permohonan tidak boleh dihantar jika tick perakuan tidak ditanda. + +Server-side juga wajib menyemak semula: +1. Akaun mesti wujud. +2. Akaun tidak boleh ada permohonan terkini berstatus diproses, aktif atau selesai. +3. Jika status blocked, sistem redirect balik dengan mesej ralat. + +================================================== +MODUL STAFF +================================================== + +Menu sidebar Staff: +1. Dashboard Staff. +2. Permohonan. +3. Kemaskini Bayaran Pukal. +4. Import Excel. + +Dashboard Staff: +1. Jumlah permohonan baharu. +2. Jumlah permohonan diproses. +3. Jumlah permohonan diterima. +4. Jumlah permohonan ditolak. +5. Tugasan belum selesai. +6. Senarai permohonan terkini. + +Staff hanya melihat permohonan diproses dan aktif untuk semakan. + +================================================== +DETAIL PERMOHONAN STAFF +================================================== + +Staff perlu melihat: + +Maklumat permohonan: +1. No Permohonan. +2. No_Akaun. +3. No_Akaun_Tunggakan. +4. Kategori Harta. +5. Tempoh Ansuran. +6. No_Lot. +7. No_DHM. +8. No_Syarikat. +9. Jumlah Tunggakan. +10. Cukai Harta. +11. Cukai Harta / 2. +12. Jumlah Ansuran. +13. Jumlah Jadual Semasa. + +Maklumat pemohon: +1. Nama Pemohon. +2. Identification Type. +3. Identification Number. +4. No Telefon / Contact Number. +5. Emel. +6. Alamat Surat Menyurat. +7. Alamat Harta. +8. Alamat Tempat Bekerja. +9. Pekerjaan. +10. Pendapatan Sebulan. + +Maklumat akaun dan sejarah: +1. Pemilik. +2. Bandar / Taman. +3. Rupacara. +4. Kadar. +5. Cukai Harta. +6. Sejarah tindakan. + +================================================== +LOGIK JUMLAH ANSURAN STAFF +================================================== + +Pada kad Input Manual Ansuran Oleh Staff: + +1. Staff boleh edit Jumlah Tunggakan. +2. Staff boleh edit Cukai Harta / 2. +3. Sistem autofill Cukai Harta / 2 berdasarkan Cukai Harta. +4. Staff masih boleh ubah nilai Cukai Harta / 2 jika perlu. +5. Formula paparan: + Jumlah Ansuran = Jumlah Tunggakan + (Cukai Harta / 2) +6. Jika Cukai Harta / 2 berubah, Jumlah Tunggakan diselaraskan mengikut logic UI sedia ada. +7. Staff mengisi jadual ansuran dalam bentuk table. +8. Jadual ansuran mesti berdasarkan tempoh ansuran yang dipilih pengguna. +9. Sistem membandingkan jumlah jadual dengan Jumlah Ansuran. +10. Jika jumlah tidak sama, sistem beri amaran. +11. Staff boleh simpan draf. +12. Staff hanya boleh sahkan aktif jika jumlah lengkap dan sah. + +================================================== +TINDAKAN STAFF +================================================== + +Pilihan tindakan staff: +1. Akaun Diproses. +2. Akaun Aktif (permohonan diterima). +3. Akaun Batal. +4. Akaun Gagal. +5. Akaun Selesai. +6. Tiada Tindakan. + +Peraturan: +1. Akaun Aktif mengesahkan permohonan dan jadual ansuran. +2. Akaun Batal menukar status kepada batal. +3. Akaun Gagal menukar status kepada gagal. +4. Akaun Selesai hanya dibenarkan selepas semua ansuran dibayar. +5. Tiada Tindakan tidak mengubah status tetapi menyimpan ulasan/sejarah. + +================================================== +REKOD BAYARAN MANUAL STAFF +================================================== + +Pada detail permohonan staff: + +1. Staff boleh merekod bayaran manual kerana sistem tiada API payment. +2. Staff pilih ansuran yang belum bayar atau lewat. +3. Staff wajib isi No. Resit. +4. Staff boleh isi No. Transaksi. +5. Staff isi Amaun Bayaran. +6. Staff isi Tarikh Bayaran. +7. Staff isi Catatan. +8. Amaun bayaran mesti sama dengan amaun jadual ansuran. +9. Sistem cipta rekod dalam payments. +10. Sistem kemaskini installment_schedules kepada dibayar. +11. Sistem rekod application history dan audit trail. + +================================================== +MODUL KEMASKINI BAYARAN PUKAL STAFF +================================================== + +Route: +GET /staff/bulk-payments +POST /staff/bulk-payments +GET /staff/bulk-payments/template + +Tujuan: +Staff boleh kemaskini bayaran banyak akaun melalui Excel/CSV tanpa buka +satu-satu detail permohonan. + +Halaman ini mesti ada: +1. Kad Akaun Aktif. +2. Kad Ansuran Dalam Excel. +3. Kad Jumlah Belum Direkod. +4. Butang Download Template Excel. +5. Form upload Excel/CSV. +6. Ringkasan proses terakhir. +7. Jadual ansuran akaun aktif. + +Template Excel perlu mengandungi: +1. Installment_Schedule_ID. +2. No_Akaun. +3. No_Akaun_Tunggakan. +4. No_Permohonan. +5. Nama_Pemohon. +6. Ansuran_Ke. +7. Tarikh_Jadual. +8. Amaun_Jadual. +9. Status_Bayaran. +10. No_Resit. +11. No_Transaksi. +12. Tarikh_Bayaran. +13. Amaun_Bayaran. +14. Catatan. + +Peraturan penting: +1. Template memaparkan semua ansuran untuk akaun berstatus aktif. +2. Ansuran belum_bayar dan lewat dipaparkan untuk direkod sebagai bayaran baharu. +3. Ansuran dibayar turut dipaparkan dengan transaksi bayaran sedia ada. +4. Jika ansuran sudah dibayar, Excel mesti memaparkan No_Resit, No_Transaksi, + Tarikh_Bayaran, Amaun_Bayaran dan Catatan sedia ada. +5. Upload Excel boleh mencipta bayaran baharu untuk ansuran belum_bayar/lewat. +6. Upload Excel boleh mengemaskini transaksi bayaran sedia ada untuk ansuran dibayar. +7. Sistem tidak boleh cipta duplicate payment untuk ansuran yang sudah dibayar. +8. No_Transaksi yang telah digunakan oleh bayaran lain mesti disekat. +9. Setiap import perlu direkod dalam audit trail. + +================================================== +MODUL ADMIN +================================================== + +Menu Admin: +1. Dashboard. +2. Pengurusan Pengguna. +3. Pengurusan Peranan. +4. Permohonan. +5. Akaun Ansuran. +6. Bayaran. +7. Tugasan. +8. Notifikasi & Emel. +9. Data Harta. +10. Import Excel. +11. Tetapan Sistem. +12. Laporan. +13. Audit Trail. + +Admin boleh: +1. Mengurus pengguna. +2. Mengurus peranan. +3. Melihat semua permohonan. +4. Melihat akaun ansuran. +5. Melihat semua bayaran. +6. Melihat data harta. +7. Import data cukai harta. +8. Jana laporan. +9. Semak audit trail. + +================================================== +MODUL IMPORT EXCEL +================================================== + +Terdapat dua jenis import: + +1. Import Staff + - Untuk data tunggakan. + - Route: /staff/import-excel. + - Staff import data tunggakan berdasarkan No_Akaun_Tunggakan. + - Import staff tidak boleh overwrite cukai_harta jika fail tiada kolum Cukai_Harta. + +2. Import Admin + - Untuk data cukai harta. + - Route: /admin/import-excel. + - Hanya Admin boleh import data cukai harta. + - Admin import data seperti No_Akaun, No_Bgnn, Nama_Jalan, Kadar, Cukai_Harta. + - Import admin tidak boleh overwrite No_Akaun_Tunggakan jika fail cukai harta tiada kolum tersebut. + - Import admin tidak boleh overwrite pemilik dengan Tidak dinyatakan jika data pemilik sedia ada wujud. + +Kolum import tunggakan Staff: +1. No_Akaun. +2. Pemilik. +3. Warganegara. +4. Pelanggan. +5. Status. +6. Bandar. +7. Taman. +8. Rupacara. +9. Kadar. +10. Aktif. +11. Tunggakan. +12. No_Akaun_Tunggakan. + +Kolum import cukai harta Admin: +1. No_Akaun. +2. No_Lot. +3. No_DHM. +4. No_Bgnn. +5. Nama_Jalan. +6. Rupacara. +7. Kadar. +8. Cukai_Harta. + +Logik import: +1. Jika No_Akaun atau No_Akaun_Tunggakan wujud, update rekod. +2. Jika tidak wujud, tambah rekod baharu. +3. Untuk import staff, akaun yang tiada dalam import semasa ditanda Tiada Dalam Import Terkini. +4. Jangan padam rekod lama secara automatik. +5. Simpan import batch. +6. Papar statistik import. +7. Rekod audit trail. + +================================================== +MODUL BAYARAN DUMMY JOMPAY PENGGUNA +================================================== + +Pengguna boleh bayar secara dummy JomPAY. + +Maklumat tetap: +Biller Code: 37317 + +REF 1: +No_Akaun + +REF 2: +Emel atau Mobile_No + +Flow: +1. Pengguna pilih ansuran belum bayar. +2. Sistem papar flow JomPAY dummy. +3. Pengguna masukkan amaun menggunakan pad nombor jQuery. +4. Pengguna tambah ke bakul. +5. Pengguna klik Bayar. +6. Sistem set status success untuk demo. +7. Sistem cipta rekod payment. +8. Sistem kemaskini jadual ansuran kepada dibayar. +9. Sistem papar resit dummy. + +================================================== +PRINT BORANG PERMOHONAN +================================================== + +Borang print perlu mengandungi: +1. Tajuk rasmi: + BORANG PERMOHONAN BAYARAN CUKAI HARTA SECARA ANSURAN +2. Maklumat akaun. +3. Maklumat pemohon. +4. Maklumat permohonan. +5. Jadual ansuran manual. +6. Perakuan pemohon. +7. Ulasan staff / pegawai penyemak. +8. Ruangan tandatangan. + +Ulasan staff wajib dipaparkan dalam print. +Jika tiada ulasan, paparkan: +Tiada ulasan direkodkan. + +================================================== +DATABASE UTAMA +================================================== + +Table utama: +1. users. +2. roles. +3. role_permissions. +4. user_profiles. +5. departments atau units. +6. property_accounts. +7. import_batches. +8. installment_applications. +9. installment_schedules. +10. payments. +11. notifications. +12. email_logs. +13. tasks. +14. application_histories. +15. system_settings. +16. audit_trails. + +Relationship penting: +1. User belongsTo Role. +2. User hasOne UserProfile. +3. User belongsTo Department. +4. PropertyAccount hasMany InstallmentApplications. +5. InstallmentApplication belongsTo User. +6. InstallmentApplication belongsTo PropertyAccount. +7. InstallmentApplication hasMany InstallmentSchedules. +8. InstallmentApplication hasMany Payments. +9. InstallmentApplication hasMany ApplicationHistories. +10. InstallmentApplication hasMany Tasks. +11. Payment belongsTo InstallmentApplication. +12. Payment belongsTo InstallmentSchedule. +13. Notification belongsTo User. +14. Task belongsTo User sebagai assigned staff. +15. AuditTrail belongsTo User. +16. ImportBatch belongsTo User sebagai uploaded_by. + +================================================== +SERVICE CLASS PENTING +================================================== + +1. InstallmentManualScheduleService + - Simpan jadual ansuran manual. + - Validasi jumlah ansuran. + - Confirm jadual ansuran. + +2. WorkflowStatusService + - Mengurus status diproses, aktif, batal, gagal, selesai. + - Rekod application history. + +3. NotificationService + - Mencipta notifikasi sistem. + - Mencipta dummy email log. + +4. PropertyAccountImportService + - Mengurus import staff dan admin. + - Menambah dan update property_accounts. + +5. BulkPaymentImportService + - Menjana template Excel bayaran pukal. + - Memproses upload bayaran pukal. + - Mencipta bayaran baharu. + - Mengemaskini transaksi bayaran sedia ada untuk ansuran dibayar. + +6. AuditTrailService + - Merekod tindakan penting. + +7. ReportService + - Menjana ringkasan laporan admin. + +8. ApplicationInformationExcelService + - Menyimpan maklumat permohonan pengguna ke Excel dalaman. + +================================================== +DATA DEMO DAN SEEDER +================================================== + +Seeder menyediakan: +1. Role Admin, Staff dan Pengguna Awam. +2. User demo: + - admin@myansuran.test + - staff@myansuran.test + - user@myansuran.test +3. Password demo: + - password +4. Profil pengguna awam demo. +5. System settings demo. + +Nota penting: +1. Akaun property dummy telah dibersihkan daripada database local/demo sebenar. +2. Fixture akaun dummy hanya dikekalkan untuk environment testing supaya automated test mempunyai data kawalan. +3. Jangan padam data import sebenar semasa menjalankan pembaikan. +4. Elakkan migrate:fresh pada database kerja sebenar jika data import pengguna perlu dikekalkan. + +================================================== +UI / UX +================================================== + +1. Gunakan Bootstrap layout kemas. +2. Gaya portal kerajaan moden. +3. Warna utama navy, biru dan hijau lembut. +4. Sidebar konsisten untuk Admin dan Staff. +5. Navbar atas untuk Pengguna Awam. +6. Dashboard mempunyai kad statistik. +7. Table perlu kemas dan responsive. +8. Badge status jelas. +9. Alert mesej berjaya/gagal jelas. +10. Halaman print mesra A4. +11. Jangan biarkan UI kosong. + +================================================== +VERIFIKASI WAJIB SELEPAS PERUBAHAN +================================================== + +Jalankan: +php artisan test + +Jika sesuai, jalankan juga: +php -l pada fail PHP yang diubah. + +Jangan jalankan migrate:fresh pada database kerja sebenar kecuali diminta, +kerana ia boleh memadam data import sebenar. + +Flow yang perlu diuji: +1. Login Admin. +2. Login Staff. +3. Login Pengguna Awam. +4. Semakan No_Akaun_Tunggakan wujud. +5. Semakan No_Akaun_Tunggakan tidak wujud. +6. Semakan akaun diproses, aktif dan selesai tidak boleh teruskan. +7. Pengguna hantar permohonan baharu untuk akaun yang dibenarkan. +8. Staff semak permohonan. +9. Staff input jadual ansuran manual. +10. Staff sahkan akaun aktif. +11. Staff rekod bayaran manual. +12. Staff download template bayaran pukal. +13. Staff upload bayaran pukal untuk ansuran belum bayar. +14. Staff upload bayaran pukal untuk kemaskini transaksi ansuran dibayar. +15. Import Excel Staff untuk data tunggakan. +16. Import Excel Admin untuk data cukai harta. +17. Admin semak laporan. +18. Admin semak audit trail. + +================================================== +FORMAT LAPORAN AKHIR +================================================== + +Apabila selesai membuat perubahan, laporkan: + +1. Modul yang dikemaskini. +2. Fail utama yang diubah. +3. Flow yang berjaya diuji. +4. Command verifikasi yang dijalankan. +5. Limitasi kecil jika ada. +6. Sebarang andaian penting. + +Teruskan dengan kod sebenar. Jangan berhenti pada cadangan. diff --git a/src/README.md b/src/README.md new file mode 100644 index 0000000..2e4303e --- /dev/null +++ b/src/README.md @@ -0,0 +1,144 @@ +# MyAnsuran + +Sistem demo Laravel untuk permohonan bayaran cukai harta secara ansuran bagi pembentangan KIK. Aplikasi ini dibina menggunakan Laravel, Blade, Bootstrap, jQuery dan Maatwebsite Excel, dengan aliran penuh untuk `Admin`, `Staff`, dan `Pengguna Awam`. + +## Ciri utama + +- Pendaftaran dan login berasaskan role. +- Pengguna awam boleh: + - lengkapkan profil + - semak `No_Akaun_Tunggakan` + - hantar permohonan ansuran 2 hingga 6 bulan + - lihat jadual ansuran selepas staff sahkan + - buat bayaran dummy JomPAY +- Staff boleh: + - semak permohonan + - lihat maklumat lengkap pemohon + - masukkan amaun ansuran secara manual + - rekod ulasan staff + - cetak borang permohonan rasmi + - import data akaun harta melalui Excel/CSV +- Admin boleh: + - pantau dashboard penuh + - urus pengguna, peranan dan data harta + - lihat bayaran, tugasan, notifikasi, laporan dan audit trail + +## Teknologi + +- Laravel 13 +- Blade +- Bootstrap 5 +- jQuery +- SQLite untuk demo tempatan +- Struktur migrasi serasi untuk MySQL +- Maatwebsite Excel + +## Setup cepat + +```bash +composer install +php artisan key:generate +php artisan migrate:fresh --seed --force +php artisan serve +``` + +Aplikasi akan tersedia di: + +```text +http://127.0.0.1:8000 +``` + +## Akaun demo + +- Admin: `admin@myansuran.test` +- Staff: `staff@myansuran.test` +- Pengguna Awam: `user@myansuran.test` +- Kata laluan semua akaun: `password` + +## Flow demo disyorkan + +### 1. Pengguna awam + +1. Log masuk sebagai `user@myansuran.test` +2. Buka profil dan semak maklumat pemohon +3. Pergi ke `Permohonan Baharu` +4. Semak `No_Akaun_Tunggakan` +5. Hantar permohonan ansuran +6. Lihat permohonan dan statusnya +7. Selepas staff sahkan, buka jadual ansuran +8. Klik bayaran dummy JomPAY dan simpan resit + +### 2. Staff + +1. Log masuk sebagai `staff@myansuran.test` +2. Buka `Permohonan` +3. Pilih permohonan untuk disemak +4. Semak seksyen `Maklumat Pemohon` +5. Masukkan amaun ansuran manual bagi setiap bulan +6. Isi `Ulasan Staff / Pegawai Penyemak` +7. Pilih tindakan `Permohonan Diterima` atau `Permohonan Ditolak` +8. Cetak borang permohonan +9. Buka modul `Import Excel` untuk demo import akaun harta + +### 3. Admin + +1. Log masuk sebagai `admin@myansuran.test` +2. Buka dashboard admin +3. Semak modul: + - Pengurusan Pengguna + - Pengurusan Peranan + - Permohonan + - Akaun Ansuran + - Bayaran + - Tugasan + - Notifikasi & Emel + - Data Harta + - Tetapan Sistem + - Laporan + - Audit Trail + +## Data demo yang tersedia + +- 10 akaun harta dengan kategori `Kediaman`, `Industri`, `Perdagangan` +- permohonan demo dengan status `diproses`, `aktif`, `gagal`, `selesai` +- jadual ansuran manual +- bayaran dummy +- notifikasi sistem +- email log dummy +- tugasan staff +- audit trail + +## Verifikasi + +Command utama yang telah disahkan: + +```bash +php artisan migrate:fresh --seed --force +php artisan route:list +php artisan test +``` + +Feature tests semasa meliputi: + +- login semua role +- hantar permohonan pengguna awam +- sahkan permohonan oleh staff dengan jadual manual +- validasi mismatch jumlah jadual ansuran +- print borang staff dengan maklumat pemohon dan ulasan +- pembayaran dummy JomPAY +- import data akaun melalui service +- akses modul pemantauan admin + +## Limitasi semasa + +- JomPAY masih dummy/mock +- email masih dummy log +- PDF sebenar belum diintegrasi, cetakan guna HTML print-friendly +- SMS/WhatsApp belum diintegrasi + +## Lokasi penting + +- Routes: [routes/web.php](/C:/Users/User/Desktop/KIK/kik-app/routes/web.php) +- Services: [app/Services](/C:/Users/User/Desktop/KIK/kik-app/app/Services) +- Seeders: [database/seeders/DatabaseSeeder.php](/C:/Users/User/Desktop/KIK/kik-app/database/seeders/DatabaseSeeder.php) +- Tests: [tests/Feature/MyAnsuranFlowTest.php](/C:/Users/User/Desktop/KIK/kik-app/tests/Feature/MyAnsuranFlowTest.php) diff --git a/src/app/Enums/ApplicationStatus.php b/src/app/Enums/ApplicationStatus.php new file mode 100644 index 0000000..4d5c46f --- /dev/null +++ b/src/app/Enums/ApplicationStatus.php @@ -0,0 +1,41 @@ + 'Diproses', + self::ACTIVE => 'Aktif', + self::FAILED => 'Gagal', + self::CANCELLED => 'Batal', + self::COMPLETED => 'Selesai', + }; + } + + public function badgeClass(): string + { + return match ($this) { + self::PROCESSING => 'warning', + self::ACTIVE => 'success', + self::FAILED, self::CANCELLED => 'danger', + self::COMPLETED => 'dark', + }; + } + + public static function reviewableValues(): array + { + return [ + self::PROCESSING->value, + self::ACTIVE->value, + ]; + } +} diff --git a/src/app/Enums/IdentificationType.php b/src/app/Enums/IdentificationType.php new file mode 100644 index 0000000..576265e --- /dev/null +++ b/src/app/Enums/IdentificationType.php @@ -0,0 +1,10 @@ + 30, + self::INDUSTRIAL, self::COMMERCIAL => 50, + }; + } +} diff --git a/src/app/Enums/SchedulePaymentStatus.php b/src/app/Enums/SchedulePaymentStatus.php new file mode 100644 index 0000000..e2614ba --- /dev/null +++ b/src/app/Enums/SchedulePaymentStatus.php @@ -0,0 +1,11 @@ + 'Admin', + self::STAFF => 'Staff', + self::PUBLIC => 'Pengguna Awam', + }; + } + + public function dashboardRoute(): string + { + return match ($this) { + self::ADMIN => 'admin.dashboard', + self::STAFF => 'staff.dashboard', + self::PUBLIC => 'portal.dashboard', + }; + } +} diff --git a/src/app/Exports/SimpleArrayExport.php b/src/app/Exports/SimpleArrayExport.php new file mode 100644 index 0000000..7536ea5 --- /dev/null +++ b/src/app/Exports/SimpleArrayExport.php @@ -0,0 +1,26 @@ +rows; + } + + public function headings(): array + { + return $this->headings; + } +} diff --git a/src/app/Http/Controllers/Admin/ApplicationController.php b/src/app/Http/Controllers/Admin/ApplicationController.php new file mode 100644 index 0000000..073cd8d --- /dev/null +++ b/src/app/Http/Controllers/Admin/ApplicationController.php @@ -0,0 +1,73 @@ +when($request->filled('status'), fn ($query) => $query->where('status', $request->string('status'))) + ->when($request->filled('search'), function ($query) use ($request) { + $search = $request->string('search'); + $query->where(function ($query) use ($search) { + $query->where('application_no', 'like', "%{$search}%") + ->orWhere('no_akaun_tunggakan', 'like', "%{$search}%") + ->orWhere('status', 'like', "%{$search}%") + ->orWhereHas('user.profile', fn ($userQuery) => $userQuery->where('public_name', 'like', "%{$search}%")) + ->orWhereHas('propertyAccount', function ($propertyQuery) use ($search) { + $propertyQuery->where('bandar', 'like', "%{$search}%") + ->orWhere('taman', 'like', "%{$search}%") + ->orWhere('pemilik', 'like', "%{$search}%"); + }); + }); + }) + ->when($request->filled('date_from'), fn ($query) => $query->whereDate('created_at', '>=', $request->date('date_from'))) + ->when($request->filled('date_to'), fn ($query) => $query->whereDate('created_at', '<=', $request->date('date_to'))) + ->latest() + ->paginate(12); + + return view('admin.applications-index', compact('applications')); + } + + public function show(InstallmentApplication $application): View + { + $application->load('user.profile', 'propertyAccount', 'schedules', 'payments.schedule', 'payments.user.profile', 'histories.user', 'reviewer', 'assignedStaff'); + + return view('admin.application-show', compact('application')); + } + + public function print(InstallmentApplication $application): View + { + $application->load('user.profile', 'propertyAccount', 'schedules', 'payments.schedule', 'payments.user.profile', 'reviewer'); + + return view('print.application', compact('application')); + } + + public function export() + { + $rows = InstallmentApplication::with('user.profile')->get()->map(fn ($application) => [ + $application->application_no, + $application->user->displayName(), + $application->no_akaun_tunggakan, + $application->category, + $application->installment_months, + $application->status, + ])->toArray(); + + return Excel::download( + new SimpleArrayExport( + ['No Permohonan', 'Pemohon', 'No Akaun Tunggakan', 'Kategori', 'Tempoh', 'Status'], + $rows + ), + 'permohonan-admin.xlsx' + ); + } +} diff --git a/src/app/Http/Controllers/Admin/AuditTrailController.php b/src/app/Http/Controllers/Admin/AuditTrailController.php new file mode 100644 index 0000000..b0cb02f --- /dev/null +++ b/src/app/Http/Controllers/Admin/AuditTrailController.php @@ -0,0 +1,17 @@ + AuditTrail::with('user', 'application')->latest()->paginate(20), + ]); + } +} diff --git a/src/app/Http/Controllers/Admin/DashboardController.php b/src/app/Http/Controllers/Admin/DashboardController.php new file mode 100644 index 0000000..431cefe --- /dev/null +++ b/src/app/Http/Controllers/Admin/DashboardController.php @@ -0,0 +1,26 @@ + $this->reportService->dashboardSummary(), + 'latestApplications' => InstallmentApplication::with('user.profile', 'propertyAccount')->latest()->take(8)->get(), + 'latestNotifications' => SystemNotification::with('user')->latest()->take(6)->get(), + ]); + } +} diff --git a/src/app/Http/Controllers/Admin/ModuleController.php b/src/app/Http/Controllers/Admin/ModuleController.php new file mode 100644 index 0000000..ef99ea4 --- /dev/null +++ b/src/app/Http/Controllers/Admin/ModuleController.php @@ -0,0 +1,51 @@ + Role::with('permissions')->get(), + ]); + } + + public function installmentAccounts(): View + { + return view('admin.installment-accounts-index', [ + 'applications' => InstallmentApplication::with('user.profile', 'propertyAccount', 'schedules', 'payments')->where('status', 'aktif')->latest()->paginate(12), + ]); + } + + public function payments(): View + { + return view('admin.payments-index', [ + 'payments' => Payment::with('user.profile', 'application.propertyAccount', 'schedule')->latest()->paginate(15), + ]); + } + + public function tasks(): View + { + return view('admin.tasks-index', [ + 'tasks' => Task::with('application', 'assignee', 'assigner')->latest()->paginate(15), + ]); + } + + public function communications(): View + { + return view('admin.communications-index', [ + 'notifications' => SystemNotification::with('user')->latest()->take(20)->get(), + 'emailLogs' => EmailLog::with('user', 'application')->latest()->take(20)->get(), + ]); + } +} diff --git a/src/app/Http/Controllers/Admin/PropertyAccountController.php b/src/app/Http/Controllers/Admin/PropertyAccountController.php new file mode 100644 index 0000000..1d3ccc8 --- /dev/null +++ b/src/app/Http/Controllers/Admin/PropertyAccountController.php @@ -0,0 +1,62 @@ +when($request->filled('search'), function ($query) use ($request) { + $search = $request->string('search'); + $query->where('no_akaun', 'like', "%{$search}%") + ->orWhere('no_akaun_tunggakan', 'like', "%{$search}%") + ->orWhere('no_bgnn', 'like', "%{$search}%") + ->orWhere('nama_jalan', 'like', "%{$search}%") + ->orWhere('pemilik', 'like', "%{$search}%") + ->orWhere('bandar', 'like', "%{$search}%"); + }) + ->latest() + ->paginate(15); + + return view('admin.property-accounts-index', compact('accounts')); + } + + public function create(): View + { + return view('admin.property-account-form', ['account' => new PropertyAccount()]); + } + + public function store(StorePropertyAccountRequest $request): RedirectResponse + { + PropertyAccount::create($request->validated()); + + return redirect()->route('admin.property-accounts.index')->with('success', 'Data harta berjaya ditambah.'); + } + + public function edit(PropertyAccount $propertyAccount): View + { + return view('admin.property-account-form', ['account' => $propertyAccount]); + } + + public function update(StorePropertyAccountRequest $request, PropertyAccount $propertyAccount): RedirectResponse + { + $propertyAccount->update($request->validated()); + + return redirect()->route('admin.property-accounts.index')->with('success', 'Data harta berjaya dikemaskini.'); + } + + public function destroy(PropertyAccount $propertyAccount): RedirectResponse + { + $propertyAccount->delete(); + + return back()->with('success', 'Data harta berjaya dipadam.'); + } +} diff --git a/src/app/Http/Controllers/Admin/ReportController.php b/src/app/Http/Controllers/Admin/ReportController.php new file mode 100644 index 0000000..19955f3 --- /dev/null +++ b/src/app/Http/Controllers/Admin/ReportController.php @@ -0,0 +1,52 @@ + $this->reportService->dashboardSummary(), + 'monthlyApplications' => $this->reportService->monthlyApplications(), + 'monthlyPayments' => $this->reportService->monthlyPayments(), + 'categoryBreakdown' => $this->reportService->categoryBreakdown(), + 'areaBreakdown' => $this->reportService->areaBreakdown(), + 'staffPerformance' => $this->reportService->staffPerformance(), + ]); + } + + public function exportApplications() + { + $rows = $this->reportService->monthlyApplications()->map(fn ($row) => [$row->month, $row->total])->toArray(); + + return Excel::download(new SimpleArrayExport(['Bulan', 'Jumlah Permohonan'], $rows), 'laporan-permohonan.xlsx'); + } + + public function exportPayments() + { + $rows = $this->reportService->monthlyPayments()->map(fn ($row) => [$row->month, $row->total])->toArray(); + + return Excel::download(new SimpleArrayExport(['Bulan', 'Jumlah Bayaran'], $rows), 'laporan-bayaran.xlsx'); + } + + public function print(): View + { + return view('exports.report-print', [ + 'summary' => $this->reportService->dashboardSummary(), + 'monthlyApplications' => $this->reportService->monthlyApplications(), + 'monthlyPayments' => $this->reportService->monthlyPayments(), + ]); + } +} diff --git a/src/app/Http/Controllers/Admin/SettingController.php b/src/app/Http/Controllers/Admin/SettingController.php new file mode 100644 index 0000000..6c01e88 --- /dev/null +++ b/src/app/Http/Controllers/Admin/SettingController.php @@ -0,0 +1,28 @@ + SystemSetting::orderBy('group')->orderBy('label')->get()->groupBy('group'), + ]); + } + + public function update(UpdateSystemSettingRequest $request): RedirectResponse + { + foreach ($request->input('settings', []) as $key => $value) { + SystemSetting::where('key', $key)->update(['value' => $value]); + } + + return back()->with('success', 'Tetapan sistem berjaya dikemaskini.'); + } +} diff --git a/src/app/Http/Controllers/Admin/UserController.php b/src/app/Http/Controllers/Admin/UserController.php new file mode 100644 index 0000000..cfdb705 --- /dev/null +++ b/src/app/Http/Controllers/Admin/UserController.php @@ -0,0 +1,90 @@ + User::with('role', 'department', 'profile')->latest()->paginate(12), + ]); + } + + public function create(): View + { + return view('admin.user-form', [ + 'user' => new User(), + 'roles' => Role::all(), + 'departments' => Department::all(), + ]); + } + + public function store(ManageUserRequest $request): RedirectResponse + { + $user = User::create([ + ...$request->safe()->except('password', 'is_active'), + 'password' => Hash::make($request->string('password')), + 'is_active' => $request->boolean('is_active', true), + ]); + + $this->auditTrailService->log('Pengurusan Pengguna', 'tambah_pengguna', 'Admin menambah pengguna baharu.', $request->user(), [], $user->toArray()); + + return redirect()->route('admin.users.index')->with('success', 'Pengguna baharu berjaya ditambah.'); + } + + public function edit(User $user): View + { + return view('admin.user-form', [ + 'user' => $user, + 'roles' => Role::all(), + 'departments' => Department::all(), + ]); + } + + public function update(ManageUserRequest $request, User $user): RedirectResponse + { + $old = $user->toArray(); + $payload = $request->safe()->except('password', 'is_active'); + $payload['is_active'] = $request->boolean('is_active'); + + if ($request->filled('password')) { + $payload['password'] = Hash::make($request->string('password')); + } + + $user->update($payload); + + $this->auditTrailService->log('Pengurusan Pengguna', 'kemaskini_pengguna', 'Admin mengemaskini maklumat pengguna.', $request->user(), $old, $user->fresh()->toArray()); + + return redirect()->route('admin.users.index')->with('success', 'Maklumat pengguna berjaya dikemaskini.'); + } + + public function resetPassword(User $user): RedirectResponse + { + $user->update(['password' => Hash::make('password')]); + + return back()->with('success', 'Kata laluan pengguna telah ditetapkan semula kepada "password".'); + } + + public function toggle(User $user): RedirectResponse + { + $user->update(['is_active' => ! $user->is_active]); + + return back()->with('success', 'Status akaun pengguna berjaya dikemaskini.'); + } +} diff --git a/src/app/Http/Controllers/Auth/AuthController.php b/src/app/Http/Controllers/Auth/AuthController.php new file mode 100644 index 0000000..9ce645c --- /dev/null +++ b/src/app/Http/Controllers/Auth/AuthController.php @@ -0,0 +1,114 @@ +value)->firstOrFail(); + $email = $request->string('email')->toString(); + + $user = User::create([ + 'name' => str($email)->before('@')->headline()->toString(), + 'email' => $email, + 'password' => Hash::make($request->string('password')->toString()), + 'role_id' => $publicRole->id, + ]); + + Auth::login($user); + + $this->auditTrailService->log( + 'Authentication', + 'register', + 'Pengguna awam mendaftar akaun baharu.', + $user, + ); + + return redirect() + ->route('portal.profile.edit') + ->with('success', 'Pendaftaran berjaya. Sila lengkapkan profil anda.'); + } + + public function login(LoginRequest $request): RedirectResponse + { + $matchedUser = User::where('email', $request->string('email'))->first(); + + if ($matchedUser && ! $matchedUser->is_active) { + return back() + ->withErrors(['email' => 'Akaun ini telah dinyahaktifkan. Sila hubungi pentadbir sistem.']) + ->onlyInput('email'); + } + + $credentials = $request->safe()->only('email', 'password'); + + if (! Auth::attempt($credentials, $request->boolean('remember'))) { + return back() + ->withErrors(['email' => 'Emel atau kata laluan tidak sah.']) + ->onlyInput('email'); + } + + $request->session()->regenerate(); + + $user = $request->user(); + $user->forceFill(['last_login_at' => now()])->save(); + + $this->auditTrailService->log( + 'Authentication', + 'login', + 'Pengguna berjaya log masuk ke sistem.', + $user, + ); + + return redirect()->route($user->role->slug === UserRole::ADMIN->value + ? 'admin.dashboard' + : ($user->role->slug === UserRole::STAFF->value ? 'staff.dashboard' : 'portal.dashboard')); + } + + public function logout(): RedirectResponse + { + $user = request()->user(); + + if ($user) { + $this->auditTrailService->log( + 'Authentication', + 'logout', + 'Pengguna log keluar daripada sistem.', + $user, + ); + } + + Auth::logout(); + request()->session()->invalidate(); + request()->session()->regenerateToken(); + + return redirect()->route('login')->with('success', 'Anda telah berjaya log keluar.'); + } +} diff --git a/src/app/Http/Controllers/Controller.php b/src/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..8677cd5 --- /dev/null +++ b/src/app/Http/Controllers/Controller.php @@ -0,0 +1,8 @@ +user() + ->applications() + ->with('propertyAccount', 'schedules', 'payments') + ->latest() + ->paginate(10); + + return view('portal.applications-index', compact('applications')); + } + + public function create(): View + { + $oldAccount = old('property_account_id') ? PropertyAccount::find(old('property_account_id')) : null; + $oldApplication = $oldAccount ? $this->latestAccountApplication($oldAccount) : null; + + return view('portal.application-form', [ + 'categories' => PropertyCategory::cases(), + 'months' => range(2, 6), + 'oldAccount' => $oldAccount, + 'oldAccountStatus' => $this->accountStatusPayload($oldApplication), + 'oldPropertyAddress' => $oldAccount ? $this->formattedPropertyAddress($oldAccount) : null, + ]); + } + + public function lookup(LookupPropertyAccountRequest $request): JsonResponse + { + $accountNumber = trim($request->string('no_akaun_tunggakan')->toString()); + + $account = PropertyAccount::query() + ->where('no_akaun_tunggakan', $accountNumber) + ->first(); + + if (! $account) { + return response()->json([ + 'message' => 'Nombor akaun tunggakan tidak dijumpai. Sila semak semula nombor akaun anda atau hubungi pihak MBIP.', + ], 404); + } + + $latestApplication = $this->latestAccountApplication($account); + $accountStatus = $this->accountStatusPayload($latestApplication); + + return response()->json([ + 'id' => $account->id, + 'no_akaun' => $account->no_akaun, + 'no_akaun_tunggakan' => $account->no_akaun_tunggakan, + 'account_status' => $accountStatus, + 'can_continue' => ! $accountStatus['is_blocked'], + 'block_message' => $accountStatus['block_message'], + 'pemilik' => $account->pemilik, + 'taman' => $account->taman, + 'rupacara' => $account->rupacara, + 'kadar' => $account->kadar, + 'tunggakan' => number_format((float) $account->tunggakan, 2), + 'no_lot' => $account->no_lot, + 'no_dhm' => $account->no_dhm, + 'no_bgnn' => $account->no_bgnn, + 'nama_jalan' => $account->nama_jalan, + 'no_syarikat' => $account->no_syarikat, + 'alamat_harta' => $this->formattedPropertyAddress($account), + 'bandar' => $account->bandar, + ]); + } + + public function store(StoreInstallmentApplicationRequest $request): RedirectResponse + { + $user = $request->user()->loadMissing('profile'); + $account = PropertyAccount::findOrFail($request->integer('property_account_id')); + $latestApplication = $this->latestAccountApplication($account); + $accountStatus = $this->accountStatusPayload($latestApplication); + + if ($accountStatus['is_blocked']) { + return back() + ->withErrors(['no_akaun_tunggakan' => $accountStatus['block_message']]) + ->withInput(); + } + + $assignedStaff = User::whereHas('role', fn ($query) => $query->where('slug', 'staff'))->first(); + + $payload = $request->safe()->except('ic_attachment'); + $payload['application_no'] = 'MYA-'.now()->format('Ymd').'-'.str_pad((string) (InstallmentApplication::count() + 1), 4, '0', STR_PAD_LEFT); + $payload['user_id'] = $user->id; + $payload['property_account_id'] = $account->id; + $payload['assigned_staff_id'] = $assignedStaff?->id; + $payload['no_akaun'] = $account->no_akaun; + $payload['total_arrears'] = $account->tunggakan; + $payload['no_lot'] = $account->no_lot; + $payload['no_dhm'] = $request->filled('no_dhm') ? $request->string('no_dhm')->trim()->toString() : $account->no_dhm; + $payload['alamat_harta'] = $this->formattedPropertyAddress($account); + $payload['no_syarikat'] = $request->filled('no_syarikat') ? $request->string('no_syarikat')->trim()->toString() : $account->no_syarikat; + + if ($request->hasFile('ic_attachment')) { + $payload['ic_attachment_path'] = $request->file('ic_attachment')->store('ic-attachments'); + } + + DB::transaction(function () use ($payload, $user, $account, $assignedStaff): void { + $application = InstallmentApplication::create($payload); + + Task::create([ + 'installment_application_id' => $application->id, + 'assigned_to' => $assignedStaff?->id, + 'assigned_by' => $user->id, + 'title' => 'Semak permohonan '.$application->application_no, + 'description' => 'Permohonan baharu memerlukan semakan pegawai.', + 'priority' => 'tinggi', + 'status' => 'belum_selesai', + 'due_at' => now()->addDays(2), + ]); + + $this->workflowStatusService->recordHistory( + $application, + $user, + 'permohonan_dihantar', + null, + $application->status, + 'Permohonan ansuran dihantar oleh pengguna awam.', + ['property_account' => $account->no_akaun_tunggakan], + ); + + $this->notificationService->createNotification( + $user, + 'Permohonan diterima', + 'Permohonan '.$application->application_no.' telah berjaya dihantar dan sedang diproses.', + route('portal.applications.show', $application), + 'application', + ); + + $this->auditTrailService->log( + 'Permohonan Ansuran', + 'hantar_permohonan', + 'Pengguna menghantar permohonan bayaran ansuran.', + $user, + [], + $application->toArray(), + $application, + ); + }); + + $this->applicationInformationExcelService->sync(); + + return redirect()->route('portal.applications.index')->with('success', 'Permohonan bayaran ansuran berjaya dihantar.'); + } + + protected function formattedPropertyAddress(PropertyAccount $account): string + { + $importedAddress = collect([$account->no_bgnn, $account->nama_jalan]) + ->filter(fn ($value) => filled($value)) + ->implode(', '); + + $areaAddress = collect([$account->taman, $account->bandar]) + ->filter(fn ($value) => filled($value)) + ->implode(', '); + + return $importedAddress ?: ((string) $account->alamat_harta ?: $areaAddress); + } + + protected function latestAccountApplication(PropertyAccount $account): ?InstallmentApplication + { + return InstallmentApplication::query() + ->where(function ($query) use ($account) { + $query->where('property_account_id', $account->id) + ->orWhere('no_akaun', $account->no_akaun) + ->orWhere('no_akaun_tunggakan', $account->no_akaun_tunggakan); + }) + ->latest('updated_at') + ->latest('id') + ->first(); + } + + protected function accountStatusPayload(?InstallmentApplication $application): array + { + if (! $application) { + return [ + 'value' => null, + 'label' => 'Belum Ada Permohonan Ansuran', + 'badge_class' => 'secondary', + 'application_no' => null, + 'is_blocked' => false, + 'block_message' => null, + ]; + } + + $status = ApplicationStatus::tryFrom($application->status); + $isBlocked = in_array($application->status, self::BLOCKED_REAPPLICATION_STATUSES, true); + $label = $status ? 'Akaun '.$status->label() : str($application->status)->headline()->toString(); + + return [ + 'value' => $application->status, + 'label' => $label, + 'badge_class' => $status?->badgeClass() ?? 'secondary', + 'application_no' => $application->application_no, + 'is_blocked' => $isBlocked, + 'block_message' => $isBlocked + ? 'Permohonan baharu tidak boleh diteruskan kerana No_Akaun ini sedang berstatus '.$label.'.' + : null, + ]; + } + + public function show(InstallmentApplication $application): View + { + abort_unless($application->user_id === auth()->id(), 403); + + $application->load('propertyAccount', 'schedules', 'payments', 'histories.user', 'reviewer', 'assignedStaff'); + + return view('portal.application-show', compact('application')); + } +} diff --git a/src/app/Http/Controllers/Portal/DashboardController.php b/src/app/Http/Controllers/Portal/DashboardController.php new file mode 100644 index 0000000..c91cf6d --- /dev/null +++ b/src/app/Http/Controllers/Portal/DashboardController.php @@ -0,0 +1,47 @@ +check()) { + return redirect()->route(auth()->user()->role->slug === 'admin' + ? 'admin.dashboard' + : (auth()->user()->role->slug === 'staff' ? 'staff.dashboard' : 'portal.dashboard')); + } + + return view('portal.landing', [ + 'stats' => [ + 'applications' => InstallmentApplication::count(), + 'property_accounts' => PropertyAccount::count(), + 'active_cases' => InstallmentApplication::where('status', 'aktif')->count(), + ], + 'settings' => SystemSetting::all()->keyBy('key'), + ]); + } + + public function index(): View + { + $user = auth()->user(); + $applications = $user->applications()->latest()->with('propertyAccount', 'schedules')->get(); + + return view('portal.dashboard', [ + 'applications' => $applications, + 'stats' => [ + 'total' => $applications->count(), + 'processing' => $applications->where('status', 'diproses')->count(), + 'active' => $applications->where('status', 'aktif')->count(), + 'completed' => $applications->where('status', 'selesai')->count(), + ], + ]); + } +} diff --git a/src/app/Http/Controllers/Portal/PaymentController.php b/src/app/Http/Controllers/Portal/PaymentController.php new file mode 100644 index 0000000..1abd49f --- /dev/null +++ b/src/app/Http/Controllers/Portal/PaymentController.php @@ -0,0 +1,101 @@ +user_id === auth()->id(), 403); + + $schedule = $application->schedules()->find(request('schedule')); + + return view('portal.payment', [ + 'application' => $application->load('propertyAccount', 'user.profile'), + 'schedule' => $schedule, + 'defaultAmount' => $schedule?->amount ?? $application->schedule_total ?? $application->total_arrears, + ]); + } + + public function store(StorePaymentRequest $request, InstallmentApplication $application): RedirectResponse + { + abort_unless($application->user_id === $request->user()->id, 403); + + $schedule = $application->schedules()->find($request->input('schedule_id')); + + $payment = Payment::create([ + 'installment_application_id' => $application->id, + 'installment_schedule_id' => $schedule?->id, + 'user_id' => $request->user()->id, + 'transaction_no' => 'TRX-'.str()->upper(str()->random(10)), + 'receipt_no' => 'RCPT-'.now()->format('YmdHis'), + 'biller_code' => $request->string('biller_code'), + 'ref_1' => $request->string('ref_1'), + 'ref_2' => $request->string('ref_2'), + 'amount' => $request->input('amount'), + 'status' => 'success', + 'payload' => [ + 'channel' => 'JomPAY Dummy', + 'payer_name' => $request->user()->displayName(), + ], + 'paid_at' => now(), + 'remarks' => 'Pembayaran demo JomPAY berjaya.', + ]); + + if ($schedule) { + $schedule->update([ + 'payment_status' => 'dibayar', + 'paid_at' => now(), + ]); + } + + $this->workflowStatusService->recordHistory( + $application, + $request->user(), + 'bayaran_dibuat', + $application->status, + $application->status, + 'Pembayaran dummy JomPAY direkodkan.', + ['payment_id' => $payment->id], + ); + + $this->workflowStatusService->markCompletedIfPaid($application->refresh()->load('schedules'), $request->user()); + + $this->auditTrailService->log( + 'Pembayaran', + 'bayaran_dummy', + 'Pengguna membuat pembayaran dummy melalui JomPAY.', + $request->user(), + [], + $payment->toArray(), + $application, + ); + + return redirect()->route('portal.payments.receipt', $payment)->with('success', 'Bayaran dummy berjaya direkodkan.'); + } + + public function receipt(Payment $payment): View + { + abort_unless($payment->user_id === auth()->id(), 403); + + return view('portal.receipt', [ + 'payment' => $payment->load('application.propertyAccount', 'user.profile', 'schedule'), + ]); + } +} diff --git a/src/app/Http/Controllers/Portal/ProfileController.php b/src/app/Http/Controllers/Portal/ProfileController.php new file mode 100644 index 0000000..d8701ab --- /dev/null +++ b/src/app/Http/Controllers/Portal/ProfileController.php @@ -0,0 +1,31 @@ + auth()->user()->load('profile'), + ]); + } + + public function update(UpdateProfileRequest $request): RedirectResponse + { + $user = $request->user(); + + $user->update($request->safe()->only('name', 'email')); + $user->profile()->updateOrCreate( + ['user_id' => $user->id], + $request->safe()->except('name', 'email'), + ); + + return back()->with('success', 'Maklumat profil berjaya dikemaskini.'); + } +} diff --git a/src/app/Http/Controllers/PropertyAccountImportController.php b/src/app/Http/Controllers/PropertyAccountImportController.php new file mode 100644 index 0000000..fab10b3 --- /dev/null +++ b/src/app/Http/Controllers/PropertyAccountImportController.php @@ -0,0 +1,85 @@ +routeIs('admin.*') ? 'admin' : 'staff'; + $importType = $prefix === 'admin' ? 'tax' : 'arrears'; + + return view('shared.import-excel', [ + 'batches' => ImportBatch::with('uploader')->where('import_type', $importType)->latest()->paginate(10), + 'prefix' => $prefix, + 'importType' => $importType, + 'pageTitle' => $importType === 'tax' ? 'Import Data Cukai Harta' : 'Import Data Akaun Tunggakan', + 'description' => $importType === 'tax' + ? 'Admin memuat naik data cukai harta seperti No_Bgnn, Nama_Jalan, Kadar dan Cukai_Harta.' + : 'Staff memuat naik data akaun tunggakan untuk semakan permohonan ansuran.', + ]); + } + + public function store(ImportPropertyAccountRequest $request): RedirectResponse + { + $mode = $request->routeIs('admin.*') ? 'tax' : 'arrears'; + $batch = $this->importService->import($request->file('file'), $request->user(), $mode); + + return back()->with('success', 'Import selesai diproses untuk batch #'.$batch->id.'.'); + } + + public function downloadTemplate(Request $request): Response + { + $type = $request->query('type') === 'tax' ? 'tax' : 'arrears'; + $filename = $type === 'tax' ? 'template-cukai-harta.csv' : 'template-akaun-tunggakan.csv'; + $columns = $type === 'tax' + ? [ + 'No_Akaun', + 'No_Akaun_Tunggakan', + 'No_Bgnn', + 'Nama_Jalan', + 'Pemilik', + 'Bandar', + 'Taman', + 'Rupacara', + 'Kadar', + 'Cukai_Harta', + ] + : [ + 'No_Akaun', + 'Pemilik', + 'Warganegara', + 'Pelanggan', + 'Status', + 'Bandar', + 'Taman', + 'Rupacara', + 'Kadar', + 'Aktif', + 'Tunggakan', + 'No_Akaun_Tunggakan', + ]; + + $headers = [ + 'Content-Type' => 'text/csv', + 'Content-Disposition' => 'attachment; filename="'.$filename.'"', + ]; + + $content = implode(',', $columns).PHP_EOL; + + return response($content, 200, $headers); + } +} diff --git a/src/app/Http/Controllers/Staff/ApplicationController.php b/src/app/Http/Controllers/Staff/ApplicationController.php new file mode 100644 index 0000000..9d4d1b7 --- /dev/null +++ b/src/app/Http/Controllers/Staff/ApplicationController.php @@ -0,0 +1,395 @@ +reviewableForStaff() + ->when( + in_array((string) $request->string('status'), ApplicationStatus::reviewableValues(), true), + fn ($query) => $query->where('status', $request->string('status')->toString()) + ) + ->when($request->filled('search'), function ($query) use ($request) { + $search = $request->string('search'); + $query->where(function ($query) use ($search) { + $query->where('application_no', 'like', "%{$search}%") + ->orWhere('no_akaun_tunggakan', 'like', "%{$search}%") + ->orWhereHas('user.profile', fn ($userQuery) => $userQuery->where('public_name', 'like', "%{$search}%")) + ->orWhereHas('propertyAccount', function ($propertyQuery) use ($search) { + $propertyQuery->where('bandar', 'like', "%{$search}%") + ->orWhere('taman', 'like', "%{$search}%") + ->orWhere('pemilik', 'like', "%{$search}%"); + }); + }); + }) + ->when($request->filled('date_from'), fn ($query) => $query->whereDate('created_at', '>=', $request->date('date_from'))) + ->when($request->filled('date_to'), fn ($query) => $query->whereDate('created_at', '<=', $request->date('date_to'))) + ->latest() + ->paginate(12); + + return view('staff.applications-index', [ + 'applications' => $applications, + 'allowedStatuses' => ApplicationStatus::reviewableValues(), + ]); + } + + public function show(InstallmentApplication $application): View|RedirectResponse + { + if ($redirect = $this->redirectIfNotReviewable($application)) { + return $redirect; + } + + $application->load([ + 'user.profile', + 'propertyAccount', + 'schedules', + 'histories.user', + 'payments.schedule', + 'payments.user.profile', + 'tasks.assignee', + ]); + + $existingSchedules = $application->schedules->sortBy('installment_no')->values(); + $scheduleRows = collect(range(1, $application->installment_months)) + ->map(function (int $number) use ($existingSchedules) { + $existing = $existingSchedules->firstWhere('installment_no', $number); + + return [ + 'installment_no' => $number, + 'due_date' => $existing?->due_date?->format('Y-m-d') ?? now()->startOfMonth()->addMonths($number)->format('Y-m-d'), + 'amount' => $existing?->amount, + 'notes' => $existing?->notes, + ]; + }); + + return view('staff.application-show', [ + 'application' => $application, + 'scheduleRows' => $scheduleRows, + 'guidance' => PropertyCategory::tryFrom($application->category), + ]); + } + + public function review(ReviewInstallmentApplicationRequest $request, InstallmentApplication $application): RedirectResponse + { + if ($redirect = $this->redirectIfNotReviewable($application)) { + return $redirect; + } + + $action = $request->input('action'); + $result = [ + 'warning' => null, + 'message' => 'Jadual ansuran tidak diubah untuk tindakan ini.', + ]; + + if ($request->filled('total_arrears')) { + $application->update([ + 'total_arrears' => round((float) $request->input('total_arrears'), 2), + 'property_tax_half_amount' => $request->filled('property_tax_half_amount') + ? round((float) $request->input('property_tax_half_amount'), 2) + : $application->property_tax_half_amount, + ]); + $application->refresh()->loadMissing('propertyAccount'); + } + + if ($action === 'processing') { + if ($application->status === ApplicationStatus::PROCESSING->value) { + $result = $this->manualScheduleService->saveDraft($application, $request->input('schedules', []), $request->user()); + } + + $application = $this->workflowStatusService->applyProcessing( + $application, + $request->user(), + $request->input('staff_remarks'), + ['schedule_result' => $result], + ); + } elseif ($action === 'active') { + $this->manualScheduleService->saveDraft($application, $request->input('schedules', []), $request->user()); + $result = $this->manualScheduleService->confirm($application, $request->input('schedules', []), $request->user()); + + $application = $this->workflowStatusService->applyAccepted( + $application, + $request->user(), + $request->input('staff_remarks'), + ['schedule_result' => $result], + ); + + $this->notificationService->notifyDecision( + $application->user, + $application, + 'Permohonan diterima', + 'Permohonan '.$application->application_no.' telah diterima dan jadual ansuran manual telah disahkan.', + ); + } elseif ($action === 'cancel') { + $application = $this->workflowStatusService->applyCancelled( + $application, + $request->user(), + $request->input('staff_remarks'), + ['schedule_result' => $result], + ); + + $this->notificationService->notifyDecision( + $application->user, + $application, + 'Akaun dibatalkan', + 'Akaun ansuran '.$application->application_no.' telah dibatalkan oleh staff. Sila semak ulasan pegawai.', + ); + } elseif ($action === 'failed') { + $application = $this->workflowStatusService->applyFailed( + $application, + $request->user(), + $request->input('staff_remarks'), + ['schedule_result' => $result], + ); + + $this->notificationService->notifyDecision( + $application->user, + $application, + 'Akaun gagal', + 'Akaun ansuran '.$application->application_no.' telah disahkan gagal oleh staff. Sila semak ulasan pegawai.', + ); + } elseif ($action === 'complete') { + if (! $this->allInstallmentsPaid($application)) { + return back()->withErrors([ + 'action' => 'Akaun hanya boleh disahkan selesai selepas semua ansuran direkodkan sebagai dibayar.', + ])->withInput(); + } + + $application = $this->workflowStatusService->applyCompleted( + $application, + $request->user(), + $request->input('staff_remarks'), + ['schedule_result' => $result], + ); + + $this->notificationService->notifyDecision( + $application->user, + $application, + 'Akaun ansuran selesai', + 'Akaun ansuran '.$application->application_no.' telah disahkan selesai.', + ); + } else { + $result = $this->manualScheduleService->saveDraft($application, $request->input('schedules', []), $request->user()); + + $application = $this->workflowStatusService->applyNoAction( + $application, + $request->user(), + $request->input('staff_remarks'), + ['schedule_result' => $result], + ); + } + + $this->auditTrailService->log( + 'Semakan Staff', + 'semak_permohonan', + 'Staff menyemak permohonan dan mengemaskini jadual ansuran manual.', + $request->user(), + [], + [ + 'application_id' => $application->id, + 'action' => $action, + 'schedule_result' => $result, + ], + $application, + ); + + $message = match ($action) { + 'processing' => 'Akaun berjaya ditetapkan sebagai diproses.', + 'active' => 'Akaun berjaya disahkan aktif.', + 'cancel' => 'Akaun berjaya dibatalkan.', + 'failed' => 'Akaun berjaya disahkan gagal.', + 'complete' => 'Akaun berjaya disahkan selesai.', + default => 'Tiada perubahan status dibuat. Semakan draf berjaya disimpan.', + }; + + if (in_array($action, ['cancel', 'failed', 'complete'], true)) { + return redirect()->route('staff.applications.index')->with('success', $message); + } + + return back()->with('success', $message); + } + + public function storeManualPayment(StoreManualPaymentRequest $request, InstallmentApplication $application): RedirectResponse + { + if ($redirect = $this->redirectIfNotReviewable($application)) { + return $redirect; + } + + if ($application->status !== ApplicationStatus::ACTIVE->value) { + return back()->withErrors([ + 'manual_payment' => 'Bayaran manual hanya boleh direkodkan untuk akaun berstatus aktif.', + ])->withInput(); + } + + $schedule = $application->schedules() + ->whereKey($request->integer('installment_schedule_id')) + ->first(); + + if (! $schedule) { + return back()->withErrors([ + 'installment_schedule_id' => 'Ansuran yang dipilih tidak sah untuk permohonan ini.', + ])->withInput(); + } + + if ($schedule->payment_status === 'dibayar') { + return back()->withErrors([ + 'installment_schedule_id' => 'Ansuran ini telah direkodkan sebagai dibayar.', + ])->withInput(); + } + + if (abs((float) $request->input('amount') - (float) $schedule->amount) > 0.009) { + return back()->withErrors([ + 'amount' => 'Amaun bayaran manual mesti sama dengan amaun ansuran yang dipilih.', + ])->withInput(); + } + + $payment = Payment::create([ + 'installment_application_id' => $application->id, + 'installment_schedule_id' => $schedule->id, + 'user_id' => $application->user_id, + 'transaction_no' => $request->filled('transaction_no') + ? $request->string('transaction_no')->trim()->toString() + : 'MANUAL-'.now()->format('YmdHis').'-'.str()->upper(str()->random(4)), + 'receipt_no' => $request->string('receipt_no')->trim()->toString(), + 'biller_code' => '37317', + 'ref_1' => $application->no_akaun, + 'ref_2' => $application->email ?: $application->mobile_no, + 'amount' => $request->input('amount'), + 'status' => 'success', + 'payload' => [ + 'channel' => 'Manual Staff Entry', + 'recorded_by' => $request->user()->displayName(), + ], + 'paid_at' => $request->date('paid_at'), + 'remarks' => $request->filled('remarks') + ? $request->string('remarks')->trim()->toString() + : 'Bayaran direkodkan secara manual oleh staff.', + ]); + + $schedule->update([ + 'payment_status' => 'dibayar', + 'paid_at' => $request->date('paid_at'), + ]); + + $this->workflowStatusService->recordHistory( + $application, + $request->user(), + 'bayaran_manual_direkodkan', + $application->status, + $application->status, + 'Staff merekodkan bayaran manual dengan no. resit '.$payment->receipt_no.'.', + [ + 'payment_id' => $payment->id, + 'receipt_no' => $payment->receipt_no, + 'installment_schedule_id' => $schedule->id, + ], + ); + + $this->workflowStatusService->markCompletedIfPaid($application->refresh()->load('schedules'), $request->user()); + + $this->auditTrailService->log( + 'Pembayaran Manual', + 'rekod_bayaran_manual', + 'Staff merekodkan bayaran manual tanpa integrasi API.', + $request->user(), + [], + $payment->toArray(), + $application, + ); + + return back()->with('success', 'Bayaran manual berjaya direkodkan.'); + } + + public function print(InstallmentApplication $application): View|RedirectResponse + { + if ($redirect = $this->redirectIfNotReviewable($application)) { + return $redirect; + } + + $application->update(['printed_at' => now()]); + $application->load('user.profile', 'propertyAccount', 'schedules', 'payments.schedule', 'payments.user.profile', 'reviewer'); + + $this->auditTrailService->log( + 'Print Borang', + 'cetak_borang', + 'Borang permohonan ansuran dicetak oleh staff.', + auth()->user(), + [], + ['printed_at' => now()->toDateTimeString()], + $application, + ); + + return view('print.application', compact('application')); + } + + public function export(): \Symfony\Component\HttpFoundation\BinaryFileResponse + { + $rows = InstallmentApplication::with('user.profile', 'propertyAccount') + ->reviewableForStaff() + ->get() + ->map(fn ($application) => [ + $application->application_no, + $application->no_akaun_tunggakan, + $application->user->displayName(), + $application->category, + $application->installment_months, + $application->total_arrears, + $application->status, + ]) + ->toArray(); + + return Excel::download( + new SimpleArrayExport( + ['No Permohonan', 'No Akaun Tunggakan', 'Pemohon', 'Kategori', 'Tempoh Ansuran', 'Jumlah Tunggakan', 'Status'], + $rows + ), + 'permohonan-staff.xlsx' + ); + } + + protected function redirectIfNotReviewable(InstallmentApplication $application): ?RedirectResponse + { + if ($application->canBeReviewedByStaff()) { + return null; + } + + return redirect() + ->route('staff.applications.index') + ->with('error', 'Hanya akaun berstatus diproses dan aktif boleh disemak oleh staff.'); + } + + protected function allInstallmentsPaid(InstallmentApplication $application): bool + { + return $application->schedules()->exists() + && $application->schedules() + ->whereNotIn('payment_status', ['dibayar', 'selesai']) + ->doesntExist(); + } +} diff --git a/src/app/Http/Controllers/Staff/BulkPaymentController.php b/src/app/Http/Controllers/Staff/BulkPaymentController.php new file mode 100644 index 0000000..205f98f --- /dev/null +++ b/src/app/Http/Controllers/Staff/BulkPaymentController.php @@ -0,0 +1,58 @@ +bulkPaymentImportService->activePaymentSchedules(); + $unpaidSchedules = $activeSchedules->whereIn('payment_status', ['belum_bayar', 'lewat']); + $paidSchedules = $activeSchedules->whereIn('payment_status', ['dibayar', 'selesai']); + + return view('staff.bulk-payments-index', [ + 'activeSchedules' => $activeSchedules, + 'activeAccountCount' => $activeSchedules->pluck('installment_application_id')->unique()->count(), + 'unpaidScheduleCount' => $unpaidSchedules->count(), + 'paidScheduleCount' => $paidSchedules->count(), + 'totalUnpaidAmount' => $unpaidSchedules->sum(fn ($schedule) => (float) $schedule->amount), + 'importResult' => session('bulk_payment_result'), + ]); + } + + public function downloadTemplate(): BinaryFileResponse + { + return Excel::download( + new SimpleArrayExport( + BulkPaymentImportService::HEADINGS, + $this->bulkPaymentImportService->templateRows(), + ), + 'template-kemaskini-bayaran-pukal.xlsx' + ); + } + + public function store(ImportBulkPaymentRequest $request): RedirectResponse + { + $result = $this->bulkPaymentImportService->import($request->file('file'), $request->user()); + $message = 'Fail bayaran pukal selesai diproses. Berjaya: '.$result['success'].', gagal: '.$result['failed'].', diabaikan: '.$result['skipped'].'.'; + + return redirect() + ->route('staff.bulk-payments.index') + ->with($result['failed'] > 0 ? 'warning' : 'success', $message) + ->with('bulk_payment_result', $result); + } +} diff --git a/src/app/Http/Controllers/Staff/DashboardController.php b/src/app/Http/Controllers/Staff/DashboardController.php new file mode 100644 index 0000000..11cc3ef --- /dev/null +++ b/src/app/Http/Controllers/Staff/DashboardController.php @@ -0,0 +1,33 @@ +reviewableForStaff() + ->latest() + ->take(8) + ->get(); + + return view('staff.dashboard', [ + 'applications' => $applications, + 'stats' => [ + 'reviewable' => InstallmentApplication::reviewableForStaff()->count(), + 'processing' => InstallmentApplication::where('status', ApplicationStatus::PROCESSING->value)->count(), + 'active' => InstallmentApplication::where('status', ApplicationStatus::ACTIVE->value)->count(), + 'pending_tasks' => Task::where('status', 'belum_selesai') + ->whereHas('application', fn ($query) => $query->reviewableForStaff()) + ->count(), + ], + ]); + } +} diff --git a/src/app/Http/Middleware/EnsureProfileCompleted.php b/src/app/Http/Middleware/EnsureProfileCompleted.php new file mode 100644 index 0000000..3083ffb --- /dev/null +++ b/src/app/Http/Middleware/EnsureProfileCompleted.php @@ -0,0 +1,23 @@ +user(); + + if ($user?->isPublicUser() && (! $user->profile?->identification_number || ! $user->profile?->mobile_no || ! $user->profile?->correspondence_address)) { + return redirect() + ->route('portal.profile.edit') + ->with('warning', 'Sila lengkapkan profil sebelum membuat permohonan ansuran.'); + } + + return $next($request); + } +} diff --git a/src/app/Http/Middleware/EnsureRole.php b/src/app/Http/Middleware/EnsureRole.php new file mode 100644 index 0000000..9361ba1 --- /dev/null +++ b/src/app/Http/Middleware/EnsureRole.php @@ -0,0 +1,21 @@ +user(); + + if (! $user || ! in_array($user->role?->slug, $roles, true)) { + abort(403); + } + + return $next($request); + } +} diff --git a/src/app/Http/Requests/ImportBulkPaymentRequest.php b/src/app/Http/Requests/ImportBulkPaymentRequest.php new file mode 100644 index 0000000..335125d --- /dev/null +++ b/src/app/Http/Requests/ImportBulkPaymentRequest.php @@ -0,0 +1,40 @@ + [ + 'required', + 'file', + 'max:10240', + function (string $attribute, mixed $value, \Closure $fail): void { + $extension = strtolower((string) $value?->getClientOriginalExtension()); + + if (! in_array($extension, ['xlsx', 'xls', 'csv'], true)) { + $fail('Format fail mestilah xlsx, xls atau csv.'); + } + }, + ], + ]; + } + + public function messages(): array + { + return [ + 'file.required' => 'Sila pilih fail Excel/CSV bayaran pukal untuk diproses.', + 'file.mimes' => 'Format fail mestilah xlsx, xls atau csv.', + 'file.max' => 'Saiz fail terlalu besar. Sila muat naik fail tidak melebihi 10MB.', + ]; + } +} diff --git a/src/app/Http/Requests/ImportPropertyAccountRequest.php b/src/app/Http/Requests/ImportPropertyAccountRequest.php new file mode 100644 index 0000000..87b9637 --- /dev/null +++ b/src/app/Http/Requests/ImportPropertyAccountRequest.php @@ -0,0 +1,20 @@ + ['required', 'file', 'mimes:xlsx,xls,csv', 'max:10240'], + ]; + } +} diff --git a/src/app/Http/Requests/LoginRequest.php b/src/app/Http/Requests/LoginRequest.php new file mode 100644 index 0000000..3b31503 --- /dev/null +++ b/src/app/Http/Requests/LoginRequest.php @@ -0,0 +1,21 @@ + ['required', 'email'], + 'password' => ['required', 'string'], + ]; + } +} diff --git a/src/app/Http/Requests/LookupPropertyAccountRequest.php b/src/app/Http/Requests/LookupPropertyAccountRequest.php new file mode 100644 index 0000000..77162bb --- /dev/null +++ b/src/app/Http/Requests/LookupPropertyAccountRequest.php @@ -0,0 +1,20 @@ + ['required', 'string', 'max:255'], + ]; + } +} diff --git a/src/app/Http/Requests/ManageUserRequest.php b/src/app/Http/Requests/ManageUserRequest.php new file mode 100644 index 0000000..e8d8fda --- /dev/null +++ b/src/app/Http/Requests/ManageUserRequest.php @@ -0,0 +1,28 @@ +route('user')?->id; + + return [ + 'name' => ['required', 'string', 'max:255'], + 'email' => ['required', 'email', Rule::unique('users', 'email')->ignore($userId)], + 'role_id' => ['required', 'exists:roles,id'], + 'department_id' => ['nullable', 'exists:departments,id'], + 'is_active' => ['nullable', 'boolean'], + 'password' => [$userId ? 'nullable' : 'required', 'string', 'min:8'], + ]; + } +} diff --git a/src/app/Http/Requests/RegisterRequest.php b/src/app/Http/Requests/RegisterRequest.php new file mode 100644 index 0000000..d63d9c7 --- /dev/null +++ b/src/app/Http/Requests/RegisterRequest.php @@ -0,0 +1,21 @@ + ['required', 'email', 'max:255', 'unique:users,email'], + 'password' => ['required', 'string', 'min:8', 'confirmed'], + ]; + } +} diff --git a/src/app/Http/Requests/ReviewInstallmentApplicationRequest.php b/src/app/Http/Requests/ReviewInstallmentApplicationRequest.php new file mode 100644 index 0000000..579668d --- /dev/null +++ b/src/app/Http/Requests/ReviewInstallmentApplicationRequest.php @@ -0,0 +1,37 @@ + ['required', 'in:processing,active,cancel,failed,complete,none'], + 'total_arrears' => ['nullable', 'numeric', 'min:0'], + 'property_tax_half_amount' => ['nullable', 'numeric', 'min:0'], + 'staff_remarks' => ['nullable', 'string'], + 'schedules' => ['array'], + 'schedules.*.due_date' => ['nullable', 'date'], + 'schedules.*.amount' => ['nullable', 'numeric', 'min:0'], + 'schedules.*.notes' => ['nullable', 'string'], + ]; + } + + public function withValidator(Validator $validator): void + { + $validator->after(function (Validator $validator): void { + if (in_array($this->input('action'), ['cancel', 'failed'], true) && blank($this->input('staff_remarks'))) { + $validator->errors()->add('staff_remarks', 'Ulasan staff wajib diisi apabila akaun dibatalkan atau disahkan gagal.'); + } + }); + } +} diff --git a/src/app/Http/Requests/StoreInstallmentApplicationRequest.php b/src/app/Http/Requests/StoreInstallmentApplicationRequest.php new file mode 100644 index 0000000..c72b847 --- /dev/null +++ b/src/app/Http/Requests/StoreInstallmentApplicationRequest.php @@ -0,0 +1,49 @@ + ['required', 'exists:property_accounts,id'], + 'no_akaun_tunggakan' => ['required', 'string'], + 'category' => ['required', 'string'], + 'installment_months' => ['required', 'integer', 'min:2', 'max:6'], + 'identification_type' => ['required', 'string'], + 'identification_number' => ['required', 'string'], + 'no_lot' => ['nullable', 'string', 'max:255'], + 'no_dhm' => ['nullable', 'string', 'max:255'], + 'no_syarikat' => ['nullable', 'string'], + 'alamat_harta' => ['required', 'string'], + 'alamat_surat_menyurat' => ['required', 'string'], + 'country_code' => ['required', 'string'], + 'mobile_no' => ['required', 'string'], + 'email' => ['required', 'email'], + 'alamat_tempat_bekerja' => ['nullable', 'string'], + 'pekerjaan' => ['nullable', 'string'], + 'pendapatan_sebulan' => ['nullable', 'numeric', 'min:0'], + 'declaration_name' => ['required', 'string', 'max:255'], + 'declaration_identification_type' => ['required', 'string'], + 'declaration_identification_number' => ['required', 'string'], + 'declaration_date' => ['required', 'date'], + 'declaration_accepted' => ['accepted'], + 'ic_attachment' => ['nullable', 'file', 'mimes:jpg,jpeg,png,pdf', 'max:4096'], + ]; + } + + public function messages(): array + { + return [ + 'declaration_accepted.accepted' => 'Sila tandakan perakuan pemohon sebelum menghantar permohonan.', + ]; + } +} diff --git a/src/app/Http/Requests/StoreManualPaymentRequest.php b/src/app/Http/Requests/StoreManualPaymentRequest.php new file mode 100644 index 0000000..7a986e4 --- /dev/null +++ b/src/app/Http/Requests/StoreManualPaymentRequest.php @@ -0,0 +1,34 @@ + ['required', 'integer', 'exists:installment_schedules,id'], + 'receipt_no' => ['required', 'string', 'max:255'], + 'transaction_no' => ['nullable', 'string', 'max:255', Rule::unique('payments', 'transaction_no')], + 'amount' => ['required', 'numeric', 'min:0.01'], + 'paid_at' => ['required', 'date'], + 'remarks' => ['nullable', 'string'], + ]; + } + + public function messages(): array + { + return [ + 'receipt_no.required' => 'No. resit wajib diisi untuk rekod bayaran manual.', + 'installment_schedule_id.required' => 'Sila pilih ansuran yang ingin direkodkan.', + ]; + } +} diff --git a/src/app/Http/Requests/StorePaymentRequest.php b/src/app/Http/Requests/StorePaymentRequest.php new file mode 100644 index 0000000..d745b67 --- /dev/null +++ b/src/app/Http/Requests/StorePaymentRequest.php @@ -0,0 +1,23 @@ + ['required', 'string'], + 'ref_1' => ['required', 'string'], + 'ref_2' => ['required', 'string'], + 'amount' => ['required', 'numeric', 'min:1'], + ]; + } +} diff --git a/src/app/Http/Requests/StorePropertyAccountRequest.php b/src/app/Http/Requests/StorePropertyAccountRequest.php new file mode 100644 index 0000000..f543e16 --- /dev/null +++ b/src/app/Http/Requests/StorePropertyAccountRequest.php @@ -0,0 +1,32 @@ + ['required', 'string', 'max:255'], + 'no_akaun_tunggakan' => ['required', 'string', 'max:255'], + 'no_bgnn' => ['nullable', 'string', 'max:255'], + 'nama_jalan' => ['nullable', 'string', 'max:255'], + 'pemilik' => ['required', 'string', 'max:255'], + 'bandar' => ['nullable', 'string', 'max:255'], + 'taman' => ['nullable', 'string', 'max:255'], + 'rupacara' => ['nullable', 'string', 'max:255'], + 'kadar' => ['nullable', 'string', 'max:255'], + 'cukai_harta' => ['nullable', 'numeric', 'min:0'], + 'tunggakan' => ['required', 'numeric', 'min:0'], + 'category' => ['nullable', 'string', 'max:255'], + 'alamat_harta' => ['nullable', 'string', 'max:500'], + ]; + } +} diff --git a/src/app/Http/Requests/UpdateProfileRequest.php b/src/app/Http/Requests/UpdateProfileRequest.php new file mode 100644 index 0000000..babccf7 --- /dev/null +++ b/src/app/Http/Requests/UpdateProfileRequest.php @@ -0,0 +1,31 @@ + ['required', 'string', 'max:255'], + 'email' => ['required', 'email', Rule::unique('users', 'email')->ignore($this->user()?->id)], + 'public_name' => ['required', 'string', 'max:255'], + 'identification_type' => ['required', 'string'], + 'identification_number' => ['required', 'string', 'max:100'], + 'country_code' => ['required', 'string', 'max:10'], + 'mobile_no' => ['required', 'string', 'max:30'], + 'correspondence_address' => ['required', 'string', 'max:500'], + 'workplace_address' => ['nullable', 'string', 'max:500'], + 'occupation' => ['nullable', 'string', 'max:255'], + 'monthly_income' => ['nullable', 'numeric', 'min:0'], + ]; + } +} diff --git a/src/app/Http/Requests/UpdateSystemSettingRequest.php b/src/app/Http/Requests/UpdateSystemSettingRequest.php new file mode 100644 index 0000000..372a885 --- /dev/null +++ b/src/app/Http/Requests/UpdateSystemSettingRequest.php @@ -0,0 +1,21 @@ + ['required', 'array'], + 'settings.*' => ['nullable', 'string'], + ]; + } +} diff --git a/src/app/Imports/PropertyAccountsImport.php b/src/app/Imports/PropertyAccountsImport.php new file mode 100644 index 0000000..afb503f --- /dev/null +++ b/src/app/Imports/PropertyAccountsImport.php @@ -0,0 +1,17 @@ +rows = $collection; + } +} diff --git a/src/app/Models/ApplicationHistory.php b/src/app/Models/ApplicationHistory.php new file mode 100644 index 0000000..80181e2 --- /dev/null +++ b/src/app/Models/ApplicationHistory.php @@ -0,0 +1,39 @@ + 'array', + ]; + } + + public function application(): BelongsTo + { + return $this->belongsTo(InstallmentApplication::class, 'installment_application_id'); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/src/app/Models/AuditTrail.php b/src/app/Models/AuditTrail.php new file mode 100644 index 0000000..421fa9f --- /dev/null +++ b/src/app/Models/AuditTrail.php @@ -0,0 +1,42 @@ + 'array', + 'new_values' => 'array', + ]; + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } + + public function application(): BelongsTo + { + return $this->belongsTo(InstallmentApplication::class, 'installment_application_id'); + } +} diff --git a/src/app/Models/Department.php b/src/app/Models/Department.php new file mode 100644 index 0000000..06b9505 --- /dev/null +++ b/src/app/Models/Department.php @@ -0,0 +1,23 @@ +hasMany(User::class); + } +} diff --git a/src/app/Models/EmailLog.php b/src/app/Models/EmailLog.php new file mode 100644 index 0000000..29e0ff9 --- /dev/null +++ b/src/app/Models/EmailLog.php @@ -0,0 +1,39 @@ + 'datetime', + ]; + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } + + public function application(): BelongsTo + { + return $this->belongsTo(InstallmentApplication::class, 'installment_application_id'); + } +} diff --git a/src/app/Models/ImportBatch.php b/src/app/Models/ImportBatch.php new file mode 100644 index 0000000..f1efa54 --- /dev/null +++ b/src/app/Models/ImportBatch.php @@ -0,0 +1,43 @@ + 'array', + ]; + } + + public function uploader(): BelongsTo + { + return $this->belongsTo(User::class, 'uploaded_by'); + } + + public function propertyAccounts(): HasMany + { + return $this->hasMany(PropertyAccount::class); + } +} diff --git a/src/app/Models/InstallmentApplication.php b/src/app/Models/InstallmentApplication.php new file mode 100644 index 0000000..ce60133 --- /dev/null +++ b/src/app/Models/InstallmentApplication.php @@ -0,0 +1,125 @@ + 'decimal:2', + 'property_tax_half_amount' => 'decimal:2', + 'schedule_total' => 'decimal:2', + 'pendapatan_sebulan' => 'decimal:2', + 'declaration_accepted' => 'boolean', + 'reviewed_at' => 'datetime', + 'approved_at' => 'datetime', + 'rejected_at' => 'datetime', + 'printed_at' => 'datetime', + 'declaration_date' => 'date', + ]; + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } + + public function propertyAccount(): BelongsTo + { + return $this->belongsTo(PropertyAccount::class); + } + + public function assignedStaff(): BelongsTo + { + return $this->belongsTo(User::class, 'assigned_staff_id'); + } + + public function reviewer(): BelongsTo + { + return $this->belongsTo(User::class, 'reviewed_by'); + } + + public function schedules(): HasMany + { + return $this->hasMany(InstallmentSchedule::class); + } + + public function payments(): HasMany + { + return $this->hasMany(Payment::class); + } + + public function histories(): HasMany + { + return $this->hasMany(ApplicationHistory::class); + } + + public function tasks(): HasMany + { + return $this->hasMany(Task::class); + } + + public function scopeReviewableForStaff(Builder $query): Builder + { + return $query->whereIn('status', ApplicationStatus::reviewableValues()); + } + + public function canBeReviewedByStaff(): bool + { + return in_array($this->status, ApplicationStatus::reviewableValues(), true); + } +} diff --git a/src/app/Models/InstallmentSchedule.php b/src/app/Models/InstallmentSchedule.php new file mode 100644 index 0000000..d122de2 --- /dev/null +++ b/src/app/Models/InstallmentSchedule.php @@ -0,0 +1,50 @@ + 'decimal:2', + 'due_date' => 'date', + 'paid_at' => 'datetime', + 'is_confirmed' => 'boolean', + ]; + } + + public function application(): BelongsTo + { + return $this->belongsTo(InstallmentApplication::class, 'installment_application_id'); + } + + public function creator(): BelongsTo + { + return $this->belongsTo(User::class, 'created_by'); + } + + public function payments(): HasMany + { + return $this->hasMany(Payment::class); + } +} diff --git a/src/app/Models/Payment.php b/src/app/Models/Payment.php new file mode 100644 index 0000000..14e52db --- /dev/null +++ b/src/app/Models/Payment.php @@ -0,0 +1,52 @@ + 'decimal:2', + 'payload' => 'array', + 'paid_at' => 'datetime', + ]; + } + + public function application(): BelongsTo + { + return $this->belongsTo(InstallmentApplication::class, 'installment_application_id'); + } + + public function schedule(): BelongsTo + { + return $this->belongsTo(InstallmentSchedule::class, 'installment_schedule_id'); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/src/app/Models/PropertyAccount.php b/src/app/Models/PropertyAccount.php new file mode 100644 index 0000000..9953193 --- /dev/null +++ b/src/app/Models/PropertyAccount.php @@ -0,0 +1,60 @@ + 'decimal:2', + 'cukai_harta' => 'decimal:2', + 'last_imported_at' => 'datetime', + ]; + } + + public function importBatch(): BelongsTo + { + return $this->belongsTo(ImportBatch::class); + } + + public function applications(): HasMany + { + return $this->hasMany(InstallmentApplication::class); + } +} diff --git a/src/app/Models/Role.php b/src/app/Models/Role.php new file mode 100644 index 0000000..5d39aa2 --- /dev/null +++ b/src/app/Models/Role.php @@ -0,0 +1,28 @@ +hasMany(User::class); + } + + public function permissions(): HasMany + { + return $this->hasMany(RolePermission::class); + } +} diff --git a/src/app/Models/RolePermission.php b/src/app/Models/RolePermission.php new file mode 100644 index 0000000..fae7321 --- /dev/null +++ b/src/app/Models/RolePermission.php @@ -0,0 +1,30 @@ + 'array', + ]; + } + + public function role(): BelongsTo + { + return $this->belongsTo(Role::class); + } +} diff --git a/src/app/Models/SystemNotification.php b/src/app/Models/SystemNotification.php new file mode 100644 index 0000000..7ae252d --- /dev/null +++ b/src/app/Models/SystemNotification.php @@ -0,0 +1,37 @@ + 'boolean', + 'read_at' => 'datetime', + ]; + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/src/app/Models/SystemSetting.php b/src/app/Models/SystemSetting.php new file mode 100644 index 0000000..9286c88 --- /dev/null +++ b/src/app/Models/SystemSetting.php @@ -0,0 +1,19 @@ + 'datetime', + 'completed_at' => 'datetime', + ]; + } + + public function application(): BelongsTo + { + return $this->belongsTo(InstallmentApplication::class, 'installment_application_id'); + } + + public function assignee(): BelongsTo + { + return $this->belongsTo(User::class, 'assigned_to'); + } + + public function assigner(): BelongsTo + { + return $this->belongsTo(User::class, 'assigned_by'); + } +} diff --git a/src/app/Models/User.php b/src/app/Models/User.php new file mode 100644 index 0000000..729bcd1 --- /dev/null +++ b/src/app/Models/User.php @@ -0,0 +1,118 @@ + */ + use HasFactory, Notifiable; + + protected $fillable = [ + 'name', + 'email', + 'password', + 'role_id', + 'department_id', + 'is_active', + 'last_login_at', + ]; + + protected $hidden = [ + 'password', + 'remember_token', + ]; + + /** + * Get the attributes that should be cast. + * + * @return array + */ + protected function casts(): array + { + return [ + 'email_verified_at' => 'datetime', + 'password' => 'hashed', + 'is_active' => 'boolean', + 'last_login_at' => 'datetime', + ]; + } + + public function role(): BelongsTo + { + return $this->belongsTo(Role::class); + } + + public function department(): BelongsTo + { + return $this->belongsTo(Department::class); + } + + public function profile(): HasOne + { + return $this->hasOne(UserProfile::class); + } + + public function applications(): HasMany + { + return $this->hasMany(InstallmentApplication::class); + } + + public function assignedApplications(): HasMany + { + return $this->hasMany(InstallmentApplication::class, 'assigned_staff_id'); + } + + public function reviewedApplications(): HasMany + { + return $this->hasMany(InstallmentApplication::class, 'reviewed_by'); + } + + public function payments(): HasMany + { + return $this->hasMany(Payment::class); + } + + public function notifications(): HasMany + { + return $this->hasMany(SystemNotification::class); + } + + public function tasks(): HasMany + { + return $this->hasMany(Task::class, 'assigned_to'); + } + + public function auditTrails(): HasMany + { + return $this->hasMany(AuditTrail::class); + } + + public function isAdmin(): bool + { + return $this->role?->slug === UserRole::ADMIN->value; + } + + public function isStaff(): bool + { + return $this->role?->slug === UserRole::STAFF->value; + } + + public function isPublicUser(): bool + { + return $this->role?->slug === UserRole::PUBLIC->value; + } + + public function displayName(): string + { + return $this->profile?->public_name ?: $this->name; + } +} diff --git a/src/app/Models/UserProfile.php b/src/app/Models/UserProfile.php new file mode 100644 index 0000000..a8b3f86 --- /dev/null +++ b/src/app/Models/UserProfile.php @@ -0,0 +1,37 @@ + 'decimal:2', + ]; + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/src/app/Providers/AppServiceProvider.php b/src/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..86b1719 --- /dev/null +++ b/src/app/Providers/AppServiceProvider.php @@ -0,0 +1,25 @@ +makeDirectory('exports'); + + Excel::store( + new SimpleArrayExport($this->headings(), $this->rows()), + self::EXPORT_PATH, + 'local', + ); + + return self::EXPORT_PATH; + } + + protected function headings(): array + { + return [ + 'No Permohonan', + 'Tarikh Permohonan', + 'Nama Pemohon', + 'Identification Type', + 'Identification Number', + 'No Telefon', + 'Emel', + 'Alamat Surat Menyurat', + 'No Akaun', + 'No Akaun Tunggakan', + 'Pemilik', + 'Rupacara', + 'No Lot', + 'No DHM', + 'No Syarikat', + 'Alamat Harta', + 'Kategori Harta', + 'Tempoh Ansuran', + 'Jumlah Tunggakan', + 'Alamat Tempat Bekerja', + 'Pekerjaan', + 'Pendapatan Sebulan', + 'Status', + ]; + } + + protected function rows(): array + { + return InstallmentApplication::query() + ->with(['user.profile', 'propertyAccount']) + ->oldest('created_at') + ->get() + ->map(fn (InstallmentApplication $application): array => [ + $application->application_no, + optional($application->created_at)->format('d/m/Y h:i A'), + $application->user?->displayName(), + $application->identification_type, + $application->identification_number, + trim($application->country_code.' '.$application->mobile_no), + $application->email, + $application->alamat_surat_menyurat, + $application->no_akaun, + $application->no_akaun_tunggakan, + $application->propertyAccount?->pemilik, + $application->propertyAccount?->rupacara, + $application->no_lot, + $application->no_dhm, + $application->no_syarikat, + $application->alamat_harta, + $application->category, + $application->installment_months.' bulan', + (float) $application->total_arrears, + $application->alamat_tempat_bekerja, + $application->pekerjaan, + $application->pendapatan_sebulan !== null ? (float) $application->pendapatan_sebulan : null, + $application->status, + ]) + ->all(); + } +} diff --git a/src/app/Services/AuditTrailService.php b/src/app/Services/AuditTrailService.php new file mode 100644 index 0000000..46bafee --- /dev/null +++ b/src/app/Services/AuditTrailService.php @@ -0,0 +1,32 @@ + $user?->id, + 'installment_application_id' => $application?->id, + 'module' => $module, + 'action' => $action, + 'description' => $description, + 'old_values' => $oldValues ?: null, + 'new_values' => $newValues ?: null, + 'ip_address' => request()->ip(), + 'user_agent' => request()->userAgent(), + ]); + } +} diff --git a/src/app/Services/BulkPaymentImportService.php b/src/app/Services/BulkPaymentImportService.php new file mode 100644 index 0000000..a1f81fb --- /dev/null +++ b/src/app/Services/BulkPaymentImportService.php @@ -0,0 +1,387 @@ +activePaymentSchedules() + ->whereIn('payment_status', ['belum_bayar', 'lewat']) + ->values(); + } + + public function activePaidSchedules(): Collection + { + return $this->activePaymentSchedules() + ->whereIn('payment_status', ['dibayar', 'selesai']) + ->values(); + } + + public function activePaymentSchedules(): Collection + { + return InstallmentSchedule::query() + ->with(['application.user.profile', 'application.propertyAccount']) + ->with(['payments' => fn ($query) => $query->latest('paid_at')->latest('id')]) + ->whereHas('application', fn ($query) => $query->where('status', ApplicationStatus::ACTIVE->value)) + ->get() + ->sortBy(fn (InstallmentSchedule $schedule) => sprintf( + '%s-%03d', + $schedule->application?->no_akaun ?? '', + $schedule->installment_no + )) + ->values(); + } + + public function templateRows(): array + { + return $this->activePaymentSchedules() + ->map(function (InstallmentSchedule $schedule) { + $application = $schedule->application; + $payment = $this->latestPaymentForSchedule($schedule); + + return [ + $schedule->id, + $application?->no_akaun, + $application?->no_akaun_tunggakan, + $application?->application_no, + $application?->user?->displayName(), + $schedule->installment_no, + optional($schedule->due_date)->format('Y-m-d'), + number_format((float) $schedule->amount, 2, '.', ''), + $schedule->payment_status, + $payment?->receipt_no ?? '', + $payment?->transaction_no ?? '', + optional($payment?->paid_at)->format('Y-m-d H:i') ?? '', + $payment ? number_format((float) $payment->amount, 2, '.', '') : '', + $payment?->remarks ?? '', + ]; + }) + ->toArray(); + } + + public function import(UploadedFile $file, User $staff): array + { + $storedPath = $file->store('imports/bulk-payments'); + $rows = Excel::toCollection(new PropertyAccountsImport(), Storage::path($storedPath))->first() ?? collect(); + + $result = [ + 'processed' => 0, + 'success' => 0, + 'skipped' => 0, + 'failed' => 0, + 'errors' => [], + 'filename' => $file->getClientOriginalName(), + ]; + + $touchedApplicationIds = []; + + foreach ($rows as $index => $row) { + $rowNumber = $index + 2; + $payload = $this->normalizeRow($row instanceof Collection ? $row->toArray() : (array) $row); + + if (! $this->hasPaymentIntent($payload)) { + $result['skipped']++; + continue; + } + + $result['processed']++; + + try { + $payment = DB::transaction(fn () => $this->processRow($payload, $staff, $rowNumber)); + $result['success']++; + $touchedApplicationIds[$payment->installment_application_id] = true; + } catch (Throwable $exception) { + $result['failed']++; + $result['errors'][] = 'Baris '.$rowNumber.': '.$exception->getMessage(); + } + } + + foreach (array_keys($touchedApplicationIds) as $applicationId) { + $application = InstallmentApplication::with('schedules')->find($applicationId); + + if ($application) { + $this->workflowStatusService->markCompletedIfPaid($application, $staff); + } + } + + $this->auditTrailService->log( + 'Kemaskini Bayaran Pukal', + 'import_bayaran_pukal', + 'Staff memproses kemaskini bayaran ansuran secara pukal melalui Excel/CSV.', + $staff, + [], + $result + ['stored_path' => $storedPath], + ); + + return $result; + } + + protected function processRow(array $payload, User $staff, int $rowNumber): Payment + { + $schedule = $this->resolveSchedule($payload); + $application = $schedule?->application; + + if (! $schedule || ! $application) { + throw new RuntimeException('Jadual ansuran tidak dijumpai untuk baris ini.'); + } + + if ($application->status !== ApplicationStatus::ACTIVE->value) { + throw new RuntimeException('Hanya akaun berstatus aktif boleh dikemaskini melalui bayaran pukal.'); + } + + $receiptNo = $this->stringValue($payload, ['no_resit', 'receipt_no', 'resit']); + $transactionNo = $this->stringValue($payload, ['no_transaksi', 'transaction_no', 'transaksi']); + $amount = $this->decimalValue($payload, ['amaun_bayaran', 'amount', 'jumlah_bayaran']); + $paidAt = $this->dateValue($payload, ['tarikh_bayaran', 'paid_at']); + + if ($receiptNo === '') { + throw new RuntimeException('No. resit wajib diisi.'); + } + + if ($amount === null || $amount <= 0) { + throw new RuntimeException('Amaun bayaran wajib diisi dan mesti melebihi 0.'); + } + + if (! $paidAt) { + throw new RuntimeException('Tarikh bayaran wajib diisi.'); + } + + if (abs($amount - (float) $schedule->amount) > 0.009) { + throw new RuntimeException('Amaun bayaran mesti sama dengan amaun jadual ansuran RM '.number_format((float) $schedule->amount, 2).'.'); + } + + $existingPayment = $this->latestPaymentForSchedule($schedule); + + if ($transactionNo !== '' && Payment::where('transaction_no', $transactionNo) + ->when($existingPayment, fn ($query) => $query->whereKeyNot($existingPayment->id)) + ->exists()) { + throw new RuntimeException('No. transaksi telah wujud dalam rekod bayaran.'); + } + + $paymentPayload = [ + 'installment_application_id' => $application->id, + 'installment_schedule_id' => $schedule->id, + 'user_id' => $application->user_id, + 'transaction_no' => $transactionNo ?: ($existingPayment?->transaction_no ?: 'BULK-'.now()->format('YmdHis').'-'.str()->upper(str()->random(6))), + 'receipt_no' => $receiptNo, + 'biller_code' => '37317', + 'ref_1' => $application->no_akaun, + 'ref_2' => $application->email ?: $application->mobile_no, + 'amount' => $amount, + 'status' => 'success', + 'payload' => array_merge($existingPayment?->payload ?? [], [ + 'channel' => 'Bulk Manual Staff Entry', + 'import_row' => $rowNumber, + 'recorded_by' => $staff->displayName(), + 'updated_via_bulk_payment' => true, + ]), + 'paid_at' => $paidAt, + 'remarks' => $this->stringValue($payload, ['catatan', 'remarks', 'nota']) + ?: ($existingPayment?->remarks ?: 'Bayaran direkodkan secara pukal oleh staff.'), + ]; + + $oldPaymentValues = $existingPayment?->toArray() ?? []; + $payment = $existingPayment + ? tap($existingPayment)->update($paymentPayload)->refresh() + : Payment::create($paymentPayload); + + $schedule->update([ + 'payment_status' => 'dibayar', + 'paid_at' => $paidAt, + ]); + + $historyAction = $oldPaymentValues === [] ? 'bayaran_pukal_direkodkan' : 'transaksi_bayaran_pukal_dikemaskini'; + $historyRemarks = $oldPaymentValues === [] + ? 'Staff merekodkan bayaran pukal dengan no. resit '.$payment->receipt_no.'.' + : 'Staff mengemaskini transaksi bayaran pukal dengan no. resit '.$payment->receipt_no.'.'; + + $this->workflowStatusService->recordHistory( + $application, + $staff, + $historyAction, + $application->status, + $application->status, + $historyRemarks, + [ + 'payment_id' => $payment->id, + 'receipt_no' => $payment->receipt_no, + 'installment_schedule_id' => $schedule->id, + ], + ); + + $this->auditTrailService->log( + 'Kemaskini Bayaran Pukal', + $oldPaymentValues === [] ? 'rekod_bayaran_pukal' : 'kemaskini_transaksi_bayaran_pukal', + $oldPaymentValues === [] + ? 'Staff merekodkan bayaran ansuran secara pukal.' + : 'Staff mengemaskini transaksi bayaran ansuran yang telah dibayar melalui Excel/CSV.', + $staff, + $oldPaymentValues, + $payment->toArray(), + $application, + ); + + return $payment; + } + + protected function resolveSchedule(array $payload): ?InstallmentSchedule + { + $scheduleId = $this->integerValue($payload, ['installment_schedule_id', 'schedule_id', 'id_jadual']); + + if ($scheduleId) { + return InstallmentSchedule::with('application')->find($scheduleId); + } + + $noAkaun = $this->stringValue($payload, ['no_akaun', 'account_no']); + $installmentNo = $this->integerValue($payload, ['ansuran_ke', 'installment_no', 'ansuran']); + + if ($noAkaun === '' || ! $installmentNo) { + return null; + } + + return InstallmentSchedule::query() + ->with('application') + ->where('installment_no', $installmentNo) + ->whereHas('application', function ($query) use ($noAkaun) { + $query->where('status', ApplicationStatus::ACTIVE->value) + ->where('no_akaun', $noAkaun); + }) + ->first(); + } + + protected function latestPaymentForSchedule(InstallmentSchedule $schedule): ?Payment + { + if ($schedule->relationLoaded('payments')) { + return $schedule->payments->sortByDesc(fn (Payment $payment) => $payment->paid_at?->timestamp ?? $payment->id)->first(); + } + + return $schedule->payments()->latest('paid_at')->latest('id')->first(); + } + + protected function hasPaymentIntent(array $payload): bool + { + return $this->stringValue($payload, ['no_resit', 'receipt_no', 'resit']) !== '' + || $this->stringValue($payload, ['no_transaksi', 'transaction_no', 'transaksi']) !== '' + || $this->stringValue($payload, ['tarikh_bayaran', 'paid_at']) !== '' + || $this->stringValue($payload, ['amaun_bayaran', 'amount', 'jumlah_bayaran']) !== '' + || $this->stringValue($payload, ['catatan', 'remarks', 'nota']) !== ''; + } + + protected function normalizeRow(array $row): array + { + return collect($row)->mapWithKeys(function ($value, $key) { + $header = preg_replace('/^\xEF\xBB\xBF/u', '', trim((string) $key)) ?? ''; + + $normalizedKey = str($header) + ->lower() + ->replace([' ', '-', '/', '.'], '_') + ->replace('__', '_') + ->trim('_') + ->value(); + + return [$normalizedKey => $value]; + })->toArray(); + } + + protected function stringValue(array $payload, array $keys): string + { + foreach ($keys as $key) { + if (! array_key_exists($key, $payload) || $payload[$key] === null) { + continue; + } + + return trim((string) $payload[$key]); + } + + return ''; + } + + protected function integerValue(array $payload, array $keys): ?int + { + $value = $this->stringValue($payload, $keys); + + if ($value === '') { + return null; + } + + if (is_numeric($value)) { + return (int) $value; + } + + $digits = preg_replace('/[^0-9]/', '', $value); + + return $digits === '' ? null : (int) $digits; + } + + protected function decimalValue(array $payload, array $keys): ?float + { + $value = $this->stringValue($payload, $keys); + + if ($value === '') { + return null; + } + + $normalized = preg_replace('/[^0-9.\-]/', '', str($value)->replace(',', '')->toString()); + + return $normalized === '' ? null : (float) $normalized; + } + + protected function dateValue(array $payload, array $keys): ?Carbon + { + foreach ($keys as $key) { + if (! array_key_exists($key, $payload) || blank($payload[$key])) { + continue; + } + + $value = $payload[$key]; + + if (is_numeric($value)) { + return Carbon::instance(ExcelDate::excelToDateTimeObject((float) $value)); + } + + return Carbon::parse((string) $value); + } + + return null; + } +} diff --git a/src/app/Services/InstallmentManualScheduleService.php b/src/app/Services/InstallmentManualScheduleService.php new file mode 100644 index 0000000..d44d9d1 --- /dev/null +++ b/src/app/Services/InstallmentManualScheduleService.php @@ -0,0 +1,119 @@ +persist($application, $schedules, $actor, false); + } + + public function confirm(InstallmentApplication $application, array $schedules, User $actor): array + { + $evaluation = $this->evaluateSchedules($application, $schedules); + + if (! $evaluation['matches_total']) { + throw ValidationException::withMessages([ + 'schedules' => 'Jumlah ansuran tidak sama dengan Jumlah Tunggakan + (Cukai Harta / 2). Sila semak semula amaun ansuran.', + ]); + } + + return $this->persist($application, $schedules, $actor, true); + } + + public function defaultDueDate(int $sequence): string + { + return now()->startOfMonth()->addMonths($sequence)->format('Y-m-d'); + } + + protected function persist(InstallmentApplication $application, array $schedules, User $actor, bool $confirm): array + { + $evaluation = $this->evaluateSchedules($application, $schedules); + $normalized = $evaluation['normalized']; + $total = $evaluation['total']; + $arrears = $evaluation['arrears']; + $propertyTaxHalf = $evaluation['property_tax_half']; + $targetTotal = $evaluation['target_total']; + $matches = $evaluation['matches_total']; + + DB::transaction(function () use ($application, $normalized, $actor, $confirm, $total) { + $application->schedules()->delete(); + + $normalized->each(function (array $schedule) use ($application, $actor, $confirm): void { + InstallmentSchedule::create([ + 'installment_application_id' => $application->id, + 'installment_no' => $schedule['installment_no'], + 'due_date' => $schedule['due_date'], + 'amount' => $schedule['amount'], + 'payment_status' => 'belum_bayar', + 'notes' => $schedule['notes'], + 'is_confirmed' => $confirm, + 'created_by' => $actor->id, + ]); + }); + + $application->update([ + 'schedule_total' => $total, + 'schedule_status' => $confirm ? 'disahkan' : 'draf', + ]); + }); + + return [ + 'total' => number_format($total, 2, '.', ''), + 'arrears' => number_format($arrears, 2, '.', ''), + 'property_tax_half' => number_format($propertyTaxHalf, 2, '.', ''), + 'target_total' => number_format($targetTotal, 2, '.', ''), + 'matches_total' => $matches, + 'warning' => $matches ? null : 'Jumlah ansuran tidak sama dengan Jumlah Tunggakan + (Cukai Harta / 2). Sila semak semula amaun ansuran.', + ]; + } + + protected function evaluateSchedules(InstallmentApplication $application, array $schedules): array + { + $normalized = $this->normalizeSchedules($application, $schedules); + $total = (float) $normalized->sum('amount'); + $arrears = (float) $application->total_arrears; + $application->loadMissing('propertyAccount'); + $propertyTaxHalf = $application->property_tax_half_amount !== null + ? (float) $application->property_tax_half_amount + : (float) ($application->propertyAccount?->cukai_harta ?? 0) / 2; + $targetTotal = $arrears + $propertyTaxHalf; + + return [ + 'normalized' => $normalized, + 'total' => $total, + 'arrears' => $arrears, + 'property_tax_half' => $propertyTaxHalf, + 'target_total' => $targetTotal, + 'matches_total' => abs($total - $targetTotal) < 0.01, + ]; + } + + protected function normalizeSchedules(InstallmentApplication $application, array $schedules): Collection + { + return collect($schedules) + ->take($application->installment_months) + ->values() + ->map(function ($schedule, int $index) { + $sequence = $index + 1; + + return [ + 'installment_no' => $sequence, + 'due_date' => ! empty($schedule['due_date']) + ? Carbon::parse($schedule['due_date'])->format('Y-m-d') + : $this->defaultDueDate($sequence), + 'amount' => round((float) ($schedule['amount'] ?? 0), 2), + 'notes' => $schedule['notes'] ?? null, + ]; + }); + } +} diff --git a/src/app/Services/NotificationService.php b/src/app/Services/NotificationService.php new file mode 100644 index 0000000..59f9792 --- /dev/null +++ b/src/app/Services/NotificationService.php @@ -0,0 +1,43 @@ + $user->id, + 'type' => $type, + 'title' => $title, + 'message' => $message, + 'action_url' => $actionUrl, + ]); + } + + public function createDummyEmail(User $user, string $subject, string $body, ?InstallmentApplication $application = null): EmailLog + { + return EmailLog::create([ + 'user_id' => $user->id, + 'installment_application_id' => $application?->id, + 'recipient_email' => $user->email, + 'subject' => $subject, + 'body' => $body, + 'status' => 'sent', + 'sent_at' => now(), + ]); + } + + public function notifyDecision(User $user, InstallmentApplication $application, string $title, string $message): void + { + $url = route('portal.applications.show', $application); + + $this->createNotification($user, $title, $message, $url, 'application'); + $this->createDummyEmail($user, $title, $message, $application); + } +} diff --git a/src/app/Services/PropertyAccountImportService.php b/src/app/Services/PropertyAccountImportService.php new file mode 100644 index 0000000..857e365 --- /dev/null +++ b/src/app/Services/PropertyAccountImportService.php @@ -0,0 +1,265 @@ +store('imports'); + $rows = Excel::toCollection(new PropertyAccountsImport(), Storage::path($storedPath))->first() ?? collect(); + + return DB::transaction(function () use ($file, $storedPath, $rows, $user, $mode) { + $batch = ImportBatch::create([ + 'filename' => $file->getClientOriginalName(), + 'stored_path' => $storedPath, + 'import_type' => $mode, + 'uploaded_by' => $user->id, + ]); + + $stats = [ + 'processed' => 0, + 'new' => 0, + 'updated' => 0, + 'failed' => 0, + ]; + + $seenIds = []; + + foreach ($rows as $row) { + $stats['processed']++; + $payload = $this->mapRow($row instanceof Collection ? $row->toArray() : (array) $row); + + if ($this->rowIsInvalid($payload, $mode)) { + $stats['failed']++; + continue; + } + + $payload = $this->preparePayload($payload, $mode); + + $account = PropertyAccount::query() + ->where('no_akaun', $payload['no_akaun']) + ->when(filled($payload['no_akaun_tunggakan'] ?? null), fn ($query) => $query->orWhere('no_akaun_tunggakan', $payload['no_akaun_tunggakan'])) + ->first(); + + if ($account) { + if ($mode === 'tax' && blank($payload['no_akaun_tunggakan'] ?? null)) { + unset($payload['no_akaun_tunggakan']); + } + + if ($mode === 'tax' && ($payload['pemilik'] ?? null) === 'Tidak dinyatakan') { + unset($payload['pemilik']); + } + + $account->update(array_merge($payload, [ + 'status_data' => 'Aktif', + 'last_imported_at' => now(), + 'import_batch_id' => $batch->id, + ])); + + $stats['updated']++; + $seenIds[] = $account->id; + } else { + $payload['no_akaun_tunggakan'] = ($payload['no_akaun_tunggakan'] ?? '') ?: $payload['no_akaun']; + + $account = PropertyAccount::create(array_merge($payload, [ + 'status_data' => 'Aktif', + 'last_imported_at' => now(), + 'import_batch_id' => $batch->id, + ])); + + $stats['new']++; + $seenIds[] = $account->id; + } + } + + $missingCount = 0; + + if ($mode === 'arrears') { + $missingCount = PropertyAccount::query() + ->when($seenIds !== [], fn ($query) => $query->whereNotIn('id', $seenIds)) + ->update(['status_data' => 'Tiada Dalam Import Terkini']); + } + + $batch->update([ + 'total_processed' => $stats['processed'], + 'total_new' => $stats['new'], + 'total_updated' => $stats['updated'], + 'total_missing' => $missingCount, + 'total_failed' => $stats['failed'], + 'summary' => [ + 'mode' => $mode, + 'processed_at' => Carbon::now()->toDateTimeString(), + 'seen_account_ids' => $seenIds, + ], + ]); + + $this->auditTrailService->log( + 'Import Excel', + 'upload_excel', + $mode === 'tax' + ? 'Fail Excel data cukai harta dimuat naik dan diproses oleh admin.' + : 'Fail Excel data akaun tunggakan dimuat naik dan diproses oleh staff.', + $user, + [], + [ + 'batch_id' => $batch->id, + 'filename' => $batch->filename, + 'stats' => $batch->summary, + ], + ); + + return $batch->refresh(); + }); + } + + protected function mapRow(array $row): array + { + $normalized = collect($row)->mapWithKeys(function ($value, $key) { + $key = $this->normalizeHeaderKey($key); + + return [$key => $value]; + }); + + return [ + 'no_akaun' => $this->stringValue($normalized, ['no_akaun', 'no._akaun', 'akaun_no', 'account_no']), + 'no_akaun_tunggakan' => $this->stringValue($normalized, ['no_akaun_tunggakan', 'no._akaun_tunggakan', 'akaun_tunggakan', 'account_no_tunggakan']), + 'no_bgnn' => $this->stringValue($normalized, ['no_bgnn', 'no_bangunan', 'no._bgnn', 'no._bangunan']), + 'nama_jalan' => $this->stringValue($normalized, ['nama_jalan', 'jalan']), + 'no_lot' => $this->stringValue($normalized, ['no_lot', 'lot_no', 'lot']), + 'no_dhm' => $this->stringValue($normalized, ['no_dhm', 'dhm_no', 'dhm']), + 'pemilik' => $this->stringValue($normalized, ['pemilik', 'nama_pemilik']), + 'warganegara' => $this->stringValue($normalized, ['warganegara']), + 'pelanggan' => $this->stringValue($normalized, ['pelanggan']), + 'status' => $this->stringValue($normalized, ['status']), + 'bandar' => $this->stringValue($normalized, ['bandar']), + 'taman' => $this->stringValue($normalized, ['taman']), + 'rupacara' => $this->stringValue($normalized, ['rupacara']), + 'kadar' => $this->stringValue($normalized, ['kadar']), + 'cukai_harta' => $this->decimalValue($normalized, ['cukai_harta', 'cukai']), + 'aktif' => $this->stringValue($normalized, ['aktif']), + 'tunggakan' => $this->decimalValue($normalized, ['tunggakan']) ?? 0, + ]; + } + + protected function rowIsInvalid(array $payload, string $mode): bool + { + if ($mode === 'tax') { + return blank($payload['no_akaun']); + } + + return blank($payload['no_akaun']) && blank($payload['no_akaun_tunggakan']); + } + + protected function preparePayload(array $payload, string $mode): array + { + $payload['no_akaun'] = $payload['no_akaun'] ?: $payload['no_akaun_tunggakan']; + + if ($mode !== 'tax') { + $payload['no_akaun_tunggakan'] = $payload['no_akaun_tunggakan'] ?: $payload['no_akaun']; + } + + $payload = $this->withoutBlankOptionalPropertyFields($payload); + + if ($mode === 'tax') { + $payload['pemilik'] = $payload['pemilik'] ?: 'Tidak dinyatakan'; + $payload['cukai_harta'] = $payload['cukai_harta'] ?? 0; + + return collect($payload)->only([ + 'no_akaun', + 'no_akaun_tunggakan', + 'no_bgnn', + 'nama_jalan', + 'no_lot', + 'no_dhm', + 'pemilik', + 'bandar', + 'taman', + 'rupacara', + 'kadar', + 'cukai_harta', + ])->toArray(); + } + + if ($payload['cukai_harta'] === null) { + unset($payload['cukai_harta']); + } + + $payload['no_akaun_tunggakan'] = $payload['no_akaun_tunggakan'] ?: $payload['no_akaun']; + + return $payload; + } + + protected function withoutBlankOptionalPropertyFields(array $payload): array + { + foreach (['no_bgnn', 'nama_jalan', 'no_lot', 'no_dhm'] as $field) { + if (array_key_exists($field, $payload) && blank($payload[$field])) { + unset($payload[$field]); + } + } + + return $payload; + } + + protected function stringValue(Collection $normalized, array $keys): string + { + foreach ($keys as $key) { + $value = $normalized->get($key); + + if ($value === null) { + continue; + } + + return trim((string) $value); + } + + return ''; + } + + protected function decimalValue(Collection $normalized, array $keys): ?float + { + foreach ($keys as $key) { + if (! $normalized->has($key)) { + continue; + } + + $value = trim((string) $normalized->get($key)); + + if ($value === '') { + return null; + } + + return (float) str($value)->replace(',', '')->toString(); + } + + return null; + } + + protected function normalizeHeaderKey(mixed $key): string + { + $header = preg_replace('/^\xEF\xBB\xBF/u', '', trim((string) $key)) ?? ''; + + return str($header) + ->lower() + ->replace([' ', '-', '/', '.'], '_') + ->replace('__', '_') + ->trim('_') + ->value(); + } +} diff --git a/src/app/Services/ReportService.php b/src/app/Services/ReportService.php new file mode 100644 index 0000000..1b18ff7 --- /dev/null +++ b/src/app/Services/ReportService.php @@ -0,0 +1,81 @@ +getDriverName() === 'sqlite' + ? "strftime('%Y-%m', {$column})" + : "DATE_FORMAT({$column}, '%Y-%m')"; + } + + public function dashboardSummary(): array + { + return [ + 'new_applications' => InstallmentApplication::whereDate('created_at', today())->count(), + 'approved_applications' => InstallmentApplication::where('status', 'aktif')->count(), + 'failed_applications' => InstallmentApplication::where('status', 'gagal')->count(), + 'cancelled_applications' => InstallmentApplication::where('status', 'batal')->count(), + 'active_accounts' => InstallmentApplication::where('status', 'aktif')->count(), + 'payments_received' => Payment::where('status', 'success')->sum('amount'), + 'outstanding_arrears' => PropertyAccount::sum('tunggakan'), + 'completed_accounts' => InstallmentApplication::where('status', 'selesai')->count(), + 'public_users' => User::whereHas('role', fn ($query) => $query->where('slug', 'public'))->count(), + 'open_tasks' => Task::where('status', 'belum_selesai')->count(), + ]; + } + + public function monthlyApplications() + { + $monthExpression = $this->monthExpression('created_at'); + + return InstallmentApplication::selectRaw("{$monthExpression} as month, count(*) as total") + ->groupBy('month') + ->orderBy('month') + ->get(); + } + + public function monthlyPayments() + { + $monthExpression = $this->monthExpression('created_at'); + + return Payment::where('status', 'success') + ->selectRaw("{$monthExpression} as month, sum(amount) as total") + ->groupBy('month') + ->orderBy('month') + ->get(); + } + + public function categoryBreakdown() + { + return InstallmentApplication::select('category', DB::raw('count(*) as total')) + ->groupBy('category') + ->get(); + } + + public function areaBreakdown() + { + return PropertyAccount::select('bandar', DB::raw('count(*) as total')) + ->groupBy('bandar') + ->orderByDesc('total') + ->get(); + } + + public function staffPerformance() + { + return User::query() + ->select('users.id', 'users.name') + ->withCount(['reviewedApplications as total_reviewed']) + ->whereHas('role', fn ($query) => $query->where('slug', 'staff')) + ->get(); + } +} diff --git a/src/app/Services/WorkflowStatusService.php b/src/app/Services/WorkflowStatusService.php new file mode 100644 index 0000000..fb1aadd --- /dev/null +++ b/src/app/Services/WorkflowStatusService.php @@ -0,0 +1,227 @@ +status; + + $application->update([ + 'status' => ApplicationStatus::PROCESSING->value, + 'staff_remarks' => $remarks, + 'reviewed_by' => $reviewer->id, + 'reviewed_at' => now(), + 'approved_at' => null, + ]); + + $this->recordHistory( + $application, + $reviewer, + 'akaun_diproses', + $oldStatus, + ApplicationStatus::PROCESSING->value, + $remarks, + $metadata, + ); + + return $application->refresh(); + } + + public function applyAccepted(InstallmentApplication $application, User $reviewer, ?string $remarks = null, array $metadata = []): InstallmentApplication + { + $oldStatus = $application->status; + + $application->update([ + 'status' => ApplicationStatus::ACTIVE->value, + 'schedule_status' => 'disahkan', + 'staff_remarks' => $remarks, + 'reviewed_by' => $reviewer->id, + 'reviewed_at' => now(), + 'approved_at' => now(), + 'rejected_at' => null, + 'rejection_reason' => null, + ]); + + $this->recordHistory( + $application, + $reviewer, + 'permohonan_diterima', + $oldStatus, + ApplicationStatus::ACTIVE->value, + $remarks, + $metadata, + ); + + return $application->refresh(); + } + + public function applyRejected(InstallmentApplication $application, User $reviewer, string $remarks, array $metadata = []): InstallmentApplication + { + $oldStatus = $application->status; + + $application->update([ + 'status' => ApplicationStatus::FAILED->value, + 'staff_remarks' => $remarks, + 'reviewed_by' => $reviewer->id, + 'reviewed_at' => now(), + 'rejected_at' => now(), + 'rejection_reason' => $remarks, + ]); + + $this->recordHistory( + $application, + $reviewer, + 'permohonan_ditolak', + $oldStatus, + ApplicationStatus::FAILED->value, + $remarks, + $metadata, + ); + + return $application->refresh(); + } + + public function applyFailed(InstallmentApplication $application, User $reviewer, string $remarks, array $metadata = []): InstallmentApplication + { + $oldStatus = $application->status; + + $application->update([ + 'status' => ApplicationStatus::FAILED->value, + 'staff_remarks' => $remarks, + 'reviewed_by' => $reviewer->id, + 'reviewed_at' => now(), + 'rejected_at' => now(), + 'rejection_reason' => $remarks, + ]); + + $this->recordHistory( + $application, + $reviewer, + 'akaun_gagal', + $oldStatus, + ApplicationStatus::FAILED->value, + $remarks, + $metadata, + ); + + return $application->refresh(); + } + + public function applyCancelled(InstallmentApplication $application, User $reviewer, string $remarks, array $metadata = []): InstallmentApplication + { + $oldStatus = $application->status; + + $application->update([ + 'status' => ApplicationStatus::CANCELLED->value, + 'staff_remarks' => $remarks, + 'reviewed_by' => $reviewer->id, + 'reviewed_at' => now(), + ]); + + $this->recordHistory( + $application, + $reviewer, + 'akaun_dibatalkan', + $oldStatus, + ApplicationStatus::CANCELLED->value, + $remarks, + $metadata, + ); + + return $application->refresh(); + } + + public function applyCompleted(InstallmentApplication $application, User $reviewer, ?string $remarks = null, array $metadata = []): InstallmentApplication + { + $oldStatus = $application->status; + + $application->update([ + 'status' => ApplicationStatus::COMPLETED->value, + 'staff_remarks' => $remarks, + 'reviewed_by' => $reviewer->id, + 'reviewed_at' => now(), + ]); + + $this->recordHistory( + $application, + $reviewer, + 'akaun_ansuran_selesai', + $oldStatus, + ApplicationStatus::COMPLETED->value, + $remarks ?: 'Akaun disahkan selesai oleh staff.', + $metadata + ['completed_at' => Carbon::now()->toDateTimeString()], + ); + + return $application->refresh(); + } + + public function applyNoAction(InstallmentApplication $application, User $reviewer, ?string $remarks = null, array $metadata = []): InstallmentApplication + { + $application->update([ + 'staff_remarks' => $remarks, + 'reviewed_by' => $reviewer->id, + 'reviewed_at' => now(), + ]); + + $this->recordHistory( + $application, + $reviewer, + 'tiada_tindakan', + $application->status, + $application->status, + $remarks, + $metadata, + ); + + return $application->refresh(); + } + + public function markCompletedIfPaid(InstallmentApplication $application, ?User $actor = null): void + { + if ($application->schedules()->exists() + && $application->schedules()->where('payment_status', '!=', 'dibayar')->where('payment_status', '!=', 'selesai')->doesntExist()) { + $oldStatus = $application->status; + $application->update([ + 'status' => ApplicationStatus::COMPLETED->value, + ]); + + $this->recordHistory( + $application, + $actor, + 'akaun_ansuran_selesai', + $oldStatus, + ApplicationStatus::COMPLETED->value, + 'Semua ansuran telah dibayar.', + ['completed_at' => Carbon::now()->toDateTimeString()], + ); + } + } + + public function recordHistory( + InstallmentApplication $application, + ?User $user, + string $action, + ?string $oldStatus, + ?string $newStatus, + ?string $remarks = null, + array $metadata = [], + ): ApplicationHistory { + return ApplicationHistory::create([ + 'installment_application_id' => $application->id, + 'user_id' => $user?->id, + 'action' => $action, + 'old_status' => $oldStatus, + 'new_status' => $newStatus, + 'remarks' => $remarks, + 'metadata' => $metadata ?: null, + ]); + } +} diff --git a/src/artisan b/src/artisan new file mode 100644 index 0000000..c35e31d --- /dev/null +++ b/src/artisan @@ -0,0 +1,18 @@ +#!/usr/bin/env php +handleCommand(new ArgvInput); + +exit($status); diff --git a/src/bootstrap/app.php b/src/bootstrap/app.php new file mode 100644 index 0000000..e7d33d9 --- /dev/null +++ b/src/bootstrap/app.php @@ -0,0 +1,21 @@ +withRouting( + web: __DIR__.'/../routes/web.php', + commands: __DIR__.'/../routes/console.php', + health: '/up', + ) + ->withMiddleware(function (Middleware $middleware): void { + $middleware->alias([ + 'role' => \App\Http\Middleware\EnsureRole::class, + 'profile.completed' => \App\Http\Middleware\EnsureProfileCompleted::class, + ]); + }) + ->withExceptions(function (Exceptions $exceptions): void { + // + })->create(); diff --git a/src/bootstrap/cache/.gitignore b/src/bootstrap/cache/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/src/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/bootstrap/providers.php b/src/bootstrap/providers.php new file mode 100644 index 0000000..fc94ae6 --- /dev/null +++ b/src/bootstrap/providers.php @@ -0,0 +1,7 @@ +=5.0.0" + }, + "require-dev": { + "doctrine/dbal": "^4.0.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2024-02-09T16:56:22+00:00" + }, + { + "name": "composer/pcre", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<1.11.10" + }, + "require-dev": { + "phpstan/phpstan": "^1.12 || ^2", + "phpstan/phpstan-strict-rules": "^1 || ^2", + "phpunit/phpunit": "^8 || ^9" + }, + "type": "library", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.3.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-11-12T16:29:46+00:00" + }, + { + "name": "composer/semver", + "version": "3.4.4", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.4" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + } + ], + "time": "2025-08-20T19:15:30+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": "ezyang/htmlpurifier", + "version": "v4.19.0", + "source": { + "type": "git", + "url": "https://github.com/ezyang/htmlpurifier.git", + "reference": "b287d2a16aceffbf6e0295559b39662612b77fcf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/b287d2a16aceffbf6e0295559b39662612b77fcf", + "reference": "b287d2a16aceffbf6e0295559b39662612b77fcf", + "shasum": "" + }, + "require": { + "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" + }, + "require-dev": { + "cerdic/css-tidy": "^1.7 || ^2.0", + "simpletest/simpletest": "dev-master" + }, + "suggest": { + "cerdic/css-tidy": "If you want to use the filter 'Filter.ExtractStyleBlocks'.", + "ext-bcmath": "Used for unit conversion and imagecrash protection", + "ext-iconv": "Converts text to and from non-UTF-8 encodings", + "ext-tidy": "Used for pretty-printing HTML" + }, + "type": "library", + "autoload": { + "files": [ + "library/HTMLPurifier.composer.php" + ], + "psr-0": { + "HTMLPurifier": "library/" + }, + "exclude-from-classmap": [ + "/library/HTMLPurifier/Language/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Edward Z. Yang", + "email": "admin@htmlpurifier.org", + "homepage": "http://ezyang.com" + } + ], + "description": "Standards compliant HTML filter written in PHP", + "homepage": "http://htmlpurifier.org/", + "keywords": [ + "html" + ], + "support": { + "issues": "https://github.com/ezyang/htmlpurifier/issues", + "source": "https://github.com/ezyang/htmlpurifier/tree/v4.19.0" + }, + "time": "2025-10-17T16:34:55+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "shasum": "" + }, + "require": { + "php": "^8.1", + "symfony/http-foundation": "^5.4|^6.4|^7.3|^8" + }, + "require-dev": { + "phpstan/phpstan": "^2", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.4.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2025-12-03T09:33:47+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.4", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/e01f4a821471308ba86aa202fed6698b6b695e3b", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:43:20+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^2.3", + "guzzlehttp/psr7": "^2.8", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-curl": "*", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2025-08-23T22:36:01+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "481557b130ef3790cf82b713667b43030dc9c957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957", + "reference": "481557b130ef3790cf82b713667b43030dc9c957", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:34:08+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.9.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/7d0ed42f28e42d61352a7a79de682e5e67fec884", + "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "0.9.0", + "jshttp/mime-db": "1.54.0.1", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.9.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2026-03-10T16:41:02+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.5", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:27:06+00:00" + }, + { + "name": "laravel/framework", + "version": "v13.9.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "a0c6ad03b380287015287d8d5a0fa2459e2332fd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/a0c6ad03b380287015287d8d5a0fa2459e2332fd", + "reference": "a0c6ad03b380287015287d8d5a0fa2459e2332fd", + "shasum": "" + }, + "require": { + "brick/math": "^0.14.2 || ^0.15 || ^0.16 || ^0.17", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.4", + "egulias/email-validator": "^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.3", + "guzzlehttp/guzzle": "^7.8.2", + "guzzlehttp/promises": "^2.0.3", + "guzzlehttp/uri-template": "^1.0", + "laravel/prompts": "^0.3.0", + "laravel/serializable-closure": "^2.0.10", + "league/commonmark": "^2.8.1", + "league/flysystem": "^3.25.1", + "league/flysystem-local": "^3.25.1", + "league/uri": "^7.5.1", + "monolog/monolog": "^3.0", + "nesbot/carbon": "^3.8.4", + "nunomaduro/termwind": "^2.0", + "php": "^8.3", + "psr/container": "^1.1.1 || ^2.0.1", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^7.4.0 || ^8.0.0", + "symfony/error-handler": "^7.4.0 || ^8.0.0", + "symfony/finder": "^7.4.0 || ^8.0.0", + "symfony/http-foundation": "^7.4.0 || ^8.0.0", + "symfony/http-kernel": "^7.4.0 || ^8.0.0", + "symfony/mailer": "^7.4.0 || ^8.0.0", + "symfony/mime": "^7.4.0 || ^8.0.0", + "symfony/polyfill-php84": "^1.36", + "symfony/polyfill-php85": "^1.36", + "symfony/polyfill-php86": "^1.36", + "symfony/process": "^7.4.5 || ^8.0.5", + "symfony/routing": "^7.4.0 || ^8.0.0", + "symfony/uid": "^7.4.0 || ^8.0.0", + "symfony/var-dumper": "^7.4.0 || ^8.0.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.6.1", + "voku/portable-ascii": "^2.0.2" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1 || 2.0", + "psr/log-implementation": "1.0 || 2.0 || 3.0", + "psr/simple-cache-implementation": "1.0 || 2.0 || 3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/concurrency": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/json-schema": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/process": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/reflection": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version", + "spatie/once": "*" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.322.9", + "ext-gmp": "*", + "fakerphp/faker": "^1.24", + "guzzlehttp/psr7": "^2.9", + "laravel/pint": "^1.18", + "league/flysystem-aws-s3-v3": "^3.25.1", + "league/flysystem-ftp": "^3.25.1", + "league/flysystem-path-prefixing": "^3.25.1", + "league/flysystem-read-only": "^3.25.1", + "league/flysystem-sftp-v3": "^3.25.1", + "mockery/mockery": "^1.6.10", + "opis/json-schema": "^2.4.1", + "orchestra/testbench-core": "^11.0.0", + "pda/pheanstalk": "^7.0.0 || ^8.0.0", + "php-http/discovery": "^1.15", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^11.5.50 || ^12.5.8 || ^13.0.3", + "predis/predis": "^2.3 || ^3.0", + "rector/rector": "^2.3", + "resend/resend-php": "^1.0", + "symfony/cache": "^7.4.0 || ^8.0.0", + "symfony/http-client": "^7.4.0 || ^8.0.0", + "symfony/psr-http-message-bridge": "^7.4.0 || ^8.0.0", + "symfony/translation": "^7.4.0 || ^8.0.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.322.9).", + "brianium/paratest": "Required to run tests in parallel (^7.0 || ^8.0).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", + "ext-pdo": "Required to use all database features.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0 || ^5.0 || ^6.0).", + "fakerphp/faker": "Required to generate fake data using the fake() helper (^1.23).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.25.1).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.25.1).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.25.1).", + "league/flysystem-read-only": "Required to use read-only disks (^3.25.1)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.25.1).", + "mockery/mockery": "Required to use mocking (^1.6).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^7.0 || ^8.0).", + "php-http/discovery": "Required to use PSR-7 bridging features (^1.15).", + "phpunit/phpunit": "Required to use assertions and run tests (^11.5.50 || ^12.5.8 || ^13.0.3).", + "predis/predis": "Required to use the predis connector (^2.3 || ^3.0).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0 || ^7.0).", + "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0 || ^1.0).", + "spatie/fork": "Required to use the 'fork' concurrency driver (^1.2).", + "symfony/cache": "Required to PSR-6 cache bridge (^7.4 || ^8.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.4 || ^8.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.4 || ^8.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.4 || ^8.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.4 || ^8.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.4 || ^8.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "13.0.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/functions.php", + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Filesystem/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Log/functions.php", + "src/Illuminate/Reflection/helpers.php", + "src/Illuminate/Support/functions.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/", + "src/Illuminate/Reflection/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2026-05-13T15:38:40+00:00" + }, + { + "name": "laravel/prompts", + "version": "v0.3.17", + "source": { + "type": "git", + "url": "https://github.com/laravel/prompts.git", + "reference": "6a82ac19a28b916ae0885828795dbd4c59d9a818" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/prompts/zipball/6a82ac19a28b916ae0885828795dbd4c59d9a818", + "reference": "6a82ac19a28b916ae0885828795dbd4c59d9a818", + "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.17" + }, + "time": "2026-04-20T16:07:33+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": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "4faba77764bd33411735936acdf30446d058c78b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/4faba77764bd33411735936acdf30446d058c78b", + "reference": "4faba77764bd33411735936acdf30446d058c78b", + "shasum": "" + }, + "require": { + "illuminate/console": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "php": "^8.1", + "psy/psysh": "^0.12.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0|^8.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5|^11.5" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^8.0|^9.0|^10.0|^11.0|^12.0|^13.0)." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v3.0.2" + }, + "time": "2026-03-17T14:54:13+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": "maatwebsite/excel", + "version": "3.1.69", + "source": { + "type": "git", + "url": "https://github.com/SpartnerNL/Laravel-Excel.git", + "reference": "ae5d65b7c9a2fac43bff4d44f796ac95d7a8e760" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/SpartnerNL/Laravel-Excel/zipball/ae5d65b7c9a2fac43bff4d44f796ac95d7a8e760", + "reference": "ae5d65b7c9a2fac43bff4d44f796ac95d7a8e760", + "shasum": "" + }, + "require": { + "composer/semver": "^3.3", + "ext-json": "*", + "illuminate/support": "5.8.*||^6.0||^7.0||^8.0||^9.0||^10.0||^11.0||^12.0||^13.0", + "php": "^7.0||^8.0", + "phpoffice/phpspreadsheet": "^1.30.4", + "psr/simple-cache": "^1.0||^2.0||^3.0" + }, + "require-dev": { + "laravel/scout": "^7.0||^8.0||^9.0||^10.0||^11.0", + "orchestra/testbench": "^6.0||^7.0||^8.0||^9.0||^10.0||^11.0", + "predis/predis": "^1.1" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Excel": "Maatwebsite\\Excel\\Facades\\Excel" + }, + "providers": [ + "Maatwebsite\\Excel\\ExcelServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Maatwebsite\\Excel\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Patrick Brouwers", + "email": "patrick@spartner.nl" + } + ], + "description": "Supercharged Excel exports and imports in Laravel", + "keywords": [ + "PHPExcel", + "batch", + "csv", + "excel", + "export", + "import", + "laravel", + "php", + "phpspreadsheet" + ], + "support": { + "issues": "https://github.com/SpartnerNL/Laravel-Excel/issues", + "source": "https://github.com/SpartnerNL/Laravel-Excel/tree/3.1.69" + }, + "funding": [ + { + "url": "https://laravel-excel.com/commercial-support", + "type": "custom" + }, + { + "url": "https://github.com/patrickbrouwers", + "type": "github" + } + ], + "time": "2026-04-30T20:03:58+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "3.2.2", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e", + "reference": "77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "ext-zlib": "*", + "php-64bit": "^8.3" + }, + "require-dev": { + "brianium/paratest": "^7.7", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.86", + "guzzlehttp/guzzle": "^7.5", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.5", + "phpunit/phpunit": "^12.0", + "vimeo/psalm": "^6.0" + }, + "suggest": { + "guzzlehttp/psr7": "^2.4", + "psr/http-message": "^2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/3.2.2" + }, + "funding": [ + { + "url": "https://github.com/maennchen", + "type": "github" + } + ], + "time": "2026-04-11T18:38:28+00:00" + }, + { + "name": "markbaker/complex", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPComplex.git", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Complex\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@lange.demon.co.uk" + } + ], + "description": "PHP Class for working with complex numbers", + "homepage": "https://github.com/MarkBaker/PHPComplex", + "keywords": [ + "complex", + "mathematics" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/3.0.2" + }, + "time": "2022-12-06T16:21:08+00:00" + }, + { + "name": "markbaker/matrix", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPMatrix.git", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/728434227fe21be27ff6d86621a1b13107a2562c", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpdocumentor/phpdocumentor": "2.*", + "phploc/phploc": "^4.0", + "phpmd/phpmd": "2.*", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "sebastian/phpcpd": "^4.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Matrix\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@demon-angel.eu" + } + ], + "description": "PHP Class for working with matrices", + "homepage": "https://github.com/MarkBaker/PHPMatrix", + "keywords": [ + "mathematics", + "matrix", + "vector" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/3.0.1" + }, + "time": "2022-12-02T22:17:43+00:00" + }, + { + "name": "monolog/monolog", + "version": "3.10.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/b321dd6749f0bf7189444158a3ce785cc16d69b0", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8 || ^2.0", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "php-console/php-console": "^3.1.8", + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^10.5.17 || ^11.0.7", + "predis/predis": "^1.1 || ^2", + "rollbar/rollbar": "^4.0", + "ruflin/elastica": "^7 || ^8", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/3.10.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2026-01-02T08:56:05+00:00" + }, + { + "name": "nesbot/carbon", + "version": "3.11.4", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon.git", + "reference": "e890471a3494740f7d9326d72ce6a8c559ffee60" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/e890471a3494740f7d9326d72ce6a8c559ffee60", + "reference": "e890471a3494740f7d9326d72ce6a8c559ffee60", + "shasum": "" + }, + "require": { + "carbonphp/carbon-doctrine-types": "<100.0", + "ext-json": "*", + "php": "^8.1", + "psr/clock": "^1.0", + "symfony/clock": "^6.3.12 || ^7.0 || ^8.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0 || ^8.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^3.6.3 || ^4.0", + "doctrine/orm": "^2.15.2 || ^3.0", + "friendsofphp/php-cs-fixer": "^v3.87.1", + "kylekatarnls/multi-tester": "^2.5.3", + "phpmd/phpmd": "^2.15.0", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.1.22", + "phpunit/phpunit": "^10.5.53", + "squizlabs/php_codesniffer": "^3.13.4 || ^4.0.0" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev", + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbonphp.github.io/carbon/", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbonphp.github.io/carbon/guide/getting-started/introduction.html", + "issues": "https://github.com/CarbonPHP/carbon/issues", + "source": "https://github.com/CarbonPHP/carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2026-04-07T09:57:54+00:00" + }, + { + "name": "nette/schema", + "version": "v1.3.5", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/f0ab1a3cda782dbc5da270d28545236aa80c4002", + "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0", + "php": "8.1 - 8.5" + }, + "require-dev": { + "nette/phpstan-rules": "^1.0", + "nette/tester": "^2.6", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.1.39@stable", + "tracy/tracy": "^2.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.3.5" + }, + "time": "2026-02-23T03:47:12+00:00" + }, + { + "name": "nette/utils", + "version": "v4.1.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": "phpoffice/phpspreadsheet", + "version": "1.30.4", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PhpSpreadsheet.git", + "reference": "02970383cc12e7bf0bc0707ea6e2e8ed23a7aec9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/02970383cc12e7bf0bc0707ea6e2e8ed23a7aec9", + "reference": "02970383cc12e7bf0bc0707ea6e2e8ed23a7aec9", + "shasum": "" + }, + "require": { + "composer/pcre": "^1||^2||^3", + "ext-ctype": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-gd": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "ext-xmlreader": "*", + "ext-xmlwriter": "*", + "ext-zip": "*", + "ext-zlib": "*", + "ezyang/htmlpurifier": "^4.15", + "maennchen/zipstream-php": "^2.1 || ^3.0", + "markbaker/complex": "^3.0", + "markbaker/matrix": "^3.0", + "php": ">=7.4.0 <8.5.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-main", + "doctrine/instantiator": "^1.5", + "dompdf/dompdf": "^1.0 || ^2.0 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.2", + "mitoteam/jpgraph": "^10.3", + "mpdf/mpdf": "^8.1.1", + "phpcompatibility/php-compatibility": "^9.3", + "phpstan/phpstan": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^8.5 || ^9.0", + "squizlabs/php_codesniffer": "^3.7", + "tecnickcom/tcpdf": "^6.5" + }, + "suggest": { + "dompdf/dompdf": "Option for rendering PDF with PDF Writer", + "ext-intl": "PHP Internationalization Functions", + "mitoteam/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers", + "mpdf/mpdf": "Option for rendering PDF with PDF Writer", + "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer" + }, + "type": "library", + "autoload": { + "psr-4": { + "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "https://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker", + "homepage": "https://markbakeruk.net" + }, + { + "name": "Franck Lefevre", + "homepage": "https://rootslabs.net" + }, + { + "name": "Erik Tilt" + }, + { + "name": "Adrien Crivelli" + }, + { + "name": "Owen Leibman" + } + ], + "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "https://github.com/PHPOffice/PhpSpreadsheet", + "keywords": [ + "OpenXML", + "excel", + "gnumeric", + "ods", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.30.4" + }, + "time": "2026-04-19T06:00:39+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.5", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/75365b91986c2405cf5e1e012c5595cd487a98be", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25 || ^10.5.53 || ^11.5.34" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:41:33+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.12.22", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "3be75d5b9244936dd4ac62ade2bfb004d13acf0f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/3be75d5b9244936dd4ac62ade2bfb004d13acf0f", + "reference": "3be75d5b9244936dd4ac62ade2bfb004d13acf0f", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2", + "composer/class-map-generator": "^1.6" + }, + "suggest": { + "composer/class-map-generator": "Improved tab completion performance with better class discovery.", + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": false, + "forward-command": false + }, + "branch-alias": { + "dev-main": "0.12.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "https://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.12.22" + }, + "time": "2026-03-22T23:03:24+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/344572933ad0181accbf4ba763e85a0306a8c5e2", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.45", + "fakerphp/faker": "^1.24", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^2.1", + "mockery/mockery": "^1.6", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpspec/prophecy-phpunit": "^2.3", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^10.5", + "ramsey/coding-standard": "^2.3", + "ramsey/conventional-commits": "^1.6", + "roave/security-advisories": "dev-latest" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.1.1" + }, + "time": "2025-03-22T05:38:12+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.9.2", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "8429c78ca35a09f27565311b98101e2826affde0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/8429c78ca35a09f27565311b98101e2826affde0", + "reference": "8429c78ca35a09f27565311b98101e2826affde0", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.16 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.25", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "ergebnis/composer-normalize": "^2.47", + "mockery/mockery": "^1.6", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.6", + "php-mock/php-mock-mockery": "^1.5", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpbench/phpbench": "^1.2.14", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6", + "slevomat/coding-standard": "^8.18", + "squizlabs/php_codesniffer": "^3.13" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.9.2" + }, + "time": "2025-12-14T04:43:48+00:00" + }, + { + "name": "symfony/clock", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/clock.git", + "reference": "674fa3b98e21531dd040e613479f5f6fa8f32111" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/clock/zipball/674fa3b98e21531dd040e613479f5f6fa8f32111", + "reference": "674fa3b98e21531dd040e613479f5f6fa8f32111", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/clock": "^1.0", + "symfony/polyfill-php83": "^1.28" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/now.php" + ], + "psr-4": { + "Symfony\\Component\\Clock\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Decouples applications from the system clock", + "homepage": "https://symfony.com", + "keywords": [ + "clock", + "psr20", + "time" + ], + "support": { + "source": "https://github.com/symfony/clock/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/console", + "version": "v7.4.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "ed0107e43ab452aa77ae99e005b95e56b556e075" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/ed0107e43ab452aa77ae99e005b95e56b556e075", + "reference": "ed0107e43ab452aa77ae99e005b95e56b556e075", + "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.11" + }, + "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-13T12:04:42+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v7.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "b75663ed96cf4756e28e3105476f220f92886cc4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/b75663ed96cf4756e28e3105476f220f92886cc4", + "reference": "b75663ed96cf4756e28e3105476f220f92886cc4", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v7.4.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-18T13:18:21+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": "v7.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "e4a2e29753c7801f7a8340e066cfa788f3bc8101" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/e4a2e29753c7801f7a8340e066cfa788f3bc8101", + "reference": "e4a2e29753c7801f7a8340e066cfa788f3bc8101", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/event-dispatcher-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/error-handler": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/framework-bundle": "^6.4|^7.0|^8.0", + "symfony/http-foundation": "^6.4|^7.0|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.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-18T13:18:21+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.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "9381209597ec66c25be154cbf2289076e64d1eab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/9381209597ec66c25be154cbf2289076e64d1eab", + "reference": "9381209597ec66c25be154cbf2289076e64d1eab", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "^1.1" + }, + "conflict": { + "doctrine/dbal": "<3.6", + "symfony/cache": "<6.4.12|>=7.0,<7.1.5" + }, + "require-dev": { + "doctrine/dbal": "^3.6|^4", + "predis/predis": "^1.1|^2.0", + "symfony/cache": "^6.4.12|^7.1.5|^8.0", + "symfony/clock": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/mime": "^6.4|^7.0|^8.0", + "symfony/rate-limiter": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v7.4.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "eb9d68199af3fcfb3fb4d2e227367b68f8c1bb88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/eb9d68199af3fcfb3fb4d2e227367b68f8c1bb88", + "reference": "eb9d68199af3fcfb3fb4d2e227367b68f8c1bb88", + "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.11" + }, + "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-13T17:55:00+00:00" + }, + { + "name": "symfony/mailer", + "version": "v7.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "f6ea532250b476bfc1b56699b388a1bdbf168f62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/f6ea532250b476bfc1b56699b388a1bdbf168f62", + "reference": "f6ea532250b476bfc1b56699b388a1bdbf168f62", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.2", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^6.4|^7.0|^8.0", + "symfony/mime": "^7.2|^8.0", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/messenger": "<6.4", + "symfony/mime": "<6.4", + "symfony/twig-bridge": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-client": "^6.4|^7.0|^8.0", + "symfony/messenger": "^6.4|^7.0|^8.0", + "symfony/twig-bridge": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v7.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-24T13:12:05+00:00" + }, + { + "name": "symfony/mime", + "version": "v7.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "2d550c4758ba4c47519a6667c36553d535705b0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/2d550c4758ba4c47519a6667c36553d535705b0c", + "reference": "2d550c4758ba4c47519a6667c36553d535705b0c", + "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.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-29T13:21:53+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.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "4864388bfbd3001ce88e234fab652acd91fdc57e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/4864388bfbd3001ce88e234fab652acd91fdc57e", + "reference": "4864388bfbd3001ce88e234fab652acd91fdc57e", + "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.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-26T13:13:48+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "symfony/polyfill-intl-normalizer": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.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": "2024-09-10T14:38:51+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "3833d7255cc303546435cb650316bff708a1c75c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.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": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6a21eb99c6973357967f6ce3708cd55a6bec6315" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6a21eb99c6973357967f6ce3708cd55a6bec6315", + "reference": "6a21eb99c6973357967f6ce3708cd55a6bec6315", + "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.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-10T17:25:58+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.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php83.git", + "reference": "3600c2cb22399e25bb226e4a135ce91eeb2a6149" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/3600c2cb22399e25bb226e4a135ce91eeb2a6149", + "reference": "3600c2cb22399e25bb226e4a135ce91eeb2a6149", + "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.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-10T17:25:58+00:00" + }, + { + "name": "symfony/polyfill-php84", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "88486db2c389b290bf87ff1de7ebc1e13e42bb06" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/88486db2c389b290bf87ff1de7ebc1e13e42bb06", + "reference": "88486db2c389b290bf87ff1de7ebc1e13e42bb06", + "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.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-10T18:47:49+00:00" + }, + { + "name": "symfony/polyfill-php85", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php85.git", + "reference": "fcfa4973a9917cef23f2e38774da74a2b7d115ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/fcfa4973a9917cef23f2e38774da74a2b7d115ee", + "reference": "fcfa4973a9917cef23f2e38774da74a2b7d115ee", + "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.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-26T13:10:57+00:00" + }, + { + "name": "symfony/polyfill-php86", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php86.git", + "reference": "33d8fc5a705481e21fe3a81212b26f9b1f61749c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php86/zipball/33d8fc5a705481e21fe3a81212b26f9b1f61749c", + "reference": "33d8fc5a705481e21fe3a81212b26f9b1f61749c", + "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\\Php86\\": "" + }, + "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.6+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php86/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-26T13:13:48+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.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "d9593c9efa40499eb078b81144de42cbc28a31f0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/d9593c9efa40499eb078b81144de42cbc28a31f0", + "reference": "d9593c9efa40499eb078b81144de42cbc28a31f0", + "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.11" + }, + "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-11T16:55:21+00:00" + }, + { + "name": "symfony/routing", + "version": "v7.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "287771d8bc86eacb30678dd10eda6c64a859951f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/287771d8bc86eacb30678dd10eda6c64a859951f", + "reference": "287771d8bc86eacb30678dd10eda6c64a859951f", + "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.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-22T15:21:55+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": "v7.4.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "965f7306a43383d02c6aca1e3f3bd2f0ea5dee15" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/965f7306a43383d02c6aca1e3f3bd2f0ea5dee15", + "reference": "965f7306a43383d02c6aca1e3f3bd2f0ea5dee15", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3.0", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.33", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.5" + }, + "require-dev": { + "symfony/emoji": "^7.1|^8.0", + "symfony/http-client": "^6.4|^7.0|^8.0", + "symfony/intl": "^6.4|^7.0|^8.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v7.4.11" + }, + "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-13T12:04:42+00:00" + }, + { + "name": "symfony/translation", + "version": "v7.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "ada7578c30dd5feaa8259cff3e885069ea81ddde" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/ada7578c30dd5feaa8259cff3e885069ea81ddde", + "reference": "ada7578c30dd5feaa8259cff3e885069ea81ddde", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.5.3|^3.3" + }, + "conflict": { + "nikic/php-parser": "<5.0", + "symfony/config": "<6.4", + "symfony/console": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/service-contracts": "<2.5", + "symfony/twig-bundle": "<6.4", + "symfony/yaml": "<6.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^5.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/finder": "^6.4|^7.0|^8.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/intl": "^6.4|^7.0|^8.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^6.4|^7.0|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v7.4.10" + }, + "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-06T11:19:24+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/agent-detector", + "version": "v2.0.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/agent-detector.git", + "reference": "90694b9256099591cf9e55d08c18ba7a00bf099f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/agent-detector/zipball/90694b9256099591cf9e55d08c18ba7a00bf099f", + "reference": "90694b9256099591cf9e55d08c18ba7a00bf099f", + "shasum": "" + }, + "require": { + "php": "^8.2.0" + }, + "require-dev": { + "laravel/pint": "^1.24.0", + "pestphp/pest": "^3.8.5|^4.1.0", + "pestphp/pest-plugin-type-coverage": "^3.0|^4.0.2", + "phpstan/phpstan": "^2.1.26", + "rector/rector": "^2.1.7", + "symfony/var-dumper": "^7.3.3" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Laravel\\AgentDetector\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Detect if code is running in an AI agent or automated development environment", + "homepage": "https://github.com/laravel/agent-detector", + "keywords": [ + "Agent", + "ai", + "automation", + "claude", + "cursor", + "detection", + "devin", + "php" + ], + "support": { + "issues": "https://github.com/laravel/agent-detector/issues", + "source": "https://github.com/laravel/agent-detector" + }, + "time": "2026-04-29T18:32:34+00:00" + }, + { + "name": "laravel/pail", + "version": "v1.2.6", + "source": { + "type": "git", + "url": "https://github.com/laravel/pail.git", + "reference": "aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pail/zipball/aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf", + "reference": "aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "illuminate/console": "^10.24|^11.0|^12.0|^13.0", + "illuminate/contracts": "^10.24|^11.0|^12.0|^13.0", + "illuminate/log": "^10.24|^11.0|^12.0|^13.0", + "illuminate/process": "^10.24|^11.0|^12.0|^13.0", + "illuminate/support": "^10.24|^11.0|^12.0|^13.0", + "nunomaduro/termwind": "^1.15|^2.0", + "php": "^8.2", + "symfony/console": "^6.0|^7.0|^8.0" + }, + "require-dev": { + "laravel/framework": "^10.24|^11.0|^12.0|^13.0", + "laravel/pint": "^1.13", + "orchestra/testbench-core": "^8.13|^9.17|^10.8|^11.0", + "pestphp/pest": "^2.20|^3.0|^4.0", + "pestphp/pest-plugin-type-coverage": "^2.3|^3.0|^4.0", + "phpstan/phpstan": "^1.12.27", + "symfony/var-dumper": "^6.3|^7.0|^8.0", + "symfony/yaml": "^6.3|^7.0|^8.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Pail\\PailServiceProvider" + ] + }, + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Pail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Easily delve into your Laravel application's log files directly from the command line.", + "homepage": "https://github.com/laravel/pail", + "keywords": [ + "dev", + "laravel", + "logs", + "php", + "tail" + ], + "support": { + "issues": "https://github.com/laravel/pail/issues", + "source": "https://github.com/laravel/pail" + }, + "time": "2026-02-09T13:44:54+00:00" + }, + { + "name": "laravel/pao", + "version": "v1.0.6", + "source": { + "type": "git", + "url": "https://github.com/laravel/pao.git", + "reference": "02f62a64c2b60af44a418ee490fee193590d8269" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pao/zipball/02f62a64c2b60af44a418ee490fee193590d8269", + "reference": "02f62a64c2b60af44a418ee490fee193590d8269", + "shasum": "" + }, + "require": { + "laravel/agent-detector": "^2.0.0", + "php": "^8.3" + }, + "conflict": { + "laravel/framework": "<12.0.0", + "nunomaduro/collision": "<8.9.3", + "pestphp/pest": "<4.6.3 || >=6.0.0", + "phpunit/phpunit": "<12.5.23 || >=13.0.0 <13.1.7 || >=14.0.0" + }, + "require-dev": { + "brianium/paratest": "^7.20.0", + "laravel/pint": "^1.29.1", + "orchestra/testbench": "^10.11.0 || ^11.1.0", + "pestphp/pest": "^4.6.3 || ^5.0.0", + "pestphp/pest-plugin-type-coverage": "^4.0.4 || ^5.0.0", + "phpstan/phpstan": "^2.1.51", + "rector/rector": "^2.4.2", + "symfony/process": "^7.4.8 || ^8.1.0", + "symfony/var-dumper": "^7.4.8 || ^8.0.8" + }, + "type": "library", + "extra": { + "pest": { + "plugins": [ + "Laravel\\Pao\\Drivers\\Pest\\Plugin" + ] + }, + "laravel": { + "providers": [ + "Laravel\\Pao\\Laravel\\ServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Autoload.php" + ], + "psr-4": { + "Laravel\\Pao\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Agent-optimized output for PHP testing tools", + "keywords": [ + "Agent", + "PHPStan", + "ai", + "dev", + "paratest", + "pest", + "php", + "phpunit", + "testing" + ], + "support": { + "issues": "https://github.com/laravel/pao/issues", + "source": "https://github.com/laravel/pao" + }, + "time": "2026-04-27T22:37:26+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": "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": "12.5.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "876099a072646c7745f673d7aeab5382c4439691" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/876099a072646c7745f673d7aeab5382c4439691", + "reference": "876099a072646c7745f673d7aeab5382c4439691", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^5.7.0", + "php": ">=8.3", + "phpunit/php-text-template": "^5.0", + "sebastian/complexity": "^5.0", + "sebastian/environment": "^8.0.3", + "sebastian/lines-of-code": "^4.0", + "sebastian/version": "^6.0", + "theseer/tokenizer": "^2.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.1" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", + "type": "tidelift" + } + ], + "time": "2026-04-15T08:23:17+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "6.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5", + "reference": "3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" + } + ], + "time": "2026-02-02T14:04:18+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:58+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/e1367a453f0eda562eedb4f659e13aa900d66c53", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:16+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "8.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:38+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "12.5.25", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "792c2980442dfce319226b88fa845b8b6de3b333" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/792c2980442dfce319226b88fa845b8b6de3b333", + "reference": "792c2980442dfce319226b88fa845b8b6de3b333", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.13.4", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.3", + "phpunit/php-code-coverage": "^12.5.6", + "phpunit/php-file-iterator": "^6.0.1", + "phpunit/php-invoker": "^6.0.0", + "phpunit/php-text-template": "^5.0.0", + "phpunit/php-timer": "^8.0.0", + "sebastian/cli-parser": "^4.2.0", + "sebastian/comparator": "^7.1.6", + "sebastian/diff": "^7.0.0", + "sebastian/environment": "^8.1.0", + "sebastian/exporter": "^7.0.2", + "sebastian/global-state": "^8.0.2", + "sebastian/object-enumerator": "^7.0.0", + "sebastian/recursion-context": "^7.0.1", + "sebastian/type": "^6.0.3", + "sebastian/version": "^6.0.0", + "staabm/side-effects-detector": "^1.0.5" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.25" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsoring.html", + "type": "other" + } + ], + "time": "2026-05-13T03:56:57+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "4.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7d05781b13f7dec9043a629a21d086ed74582a15", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.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/cli-parser", + "type": "tidelift" + } + ], + "time": "2026-05-17T05:29:34+00:00" + }, + { + "name": "sebastian/comparator", + "version": "7.1.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "c769009dee98f494e0edc3fd4f4087501688f11e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/c769009dee98f494e0edc3fd4f4087501688f11e", + "reference": "c769009dee98f494e0edc3fd4f4087501688f11e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/diff": "^7.0", + "sebastian/exporter": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.2" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" + } + ], + "time": "2026-04-14T08:23:15+00:00" + }, + { + "name": "sebastian/complexity", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0", + "symfony/process": "^7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:46+00:00" + }, + { + "name": "sebastian/environment", + "version": "8.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "b121608b28a13f721e76ffbbd386d08eff58f3f6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/b121608b28a13f721e76ffbbd386d08eff58f3f6", + "reference": "b121608b28a13f721e76ffbbd386d08eff58f3f6", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/8.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", + "type": "tidelift" + } + ], + "time": "2026-04-15T12:13:01+00:00" + }, + { + "name": "sebastian/exporter", + "version": "7.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "016951ae10980765e4e7aee491eb288c64e505b7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/016951ae10980765e4e7aee491eb288c64e505b7", + "reference": "016951ae10980765e4e7aee491eb288c64e505b7", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" + } + ], + "time": "2025-09-24T06:16:11+00:00" + }, + { + "name": "sebastian/global-state", + "version": "8.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/ef1377171613d09edd25b7816f05be8313f9115d", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" + } + ], + "time": "2025-08-29T11:29:25+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:28+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:48+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:17+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" + } + ], + "time": "2025-08-13T04:44:59+00:00" + }, + { + "name": "sebastian/type", + "version": "6.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/e549163b9760b8f71f191651d22acf32d56d6d4d", + "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/6.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/type", + "type": "tidelift" + } + ], + "time": "2025-08-09T06:57:12+00:00" + }, + { + "name": "sebastian/version", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/3e6ccf7657d4f0a59200564b08cead899313b53c", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T05:00:38+00:00" + }, + { + "name": "staabm/side-effects-detector", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^8.1" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2025-12-08T11:19:18+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.3" + }, + "platform-dev": {}, + "plugin-api-version": "2.9.0" +} diff --git a/src/config/app.php b/src/config/app.php new file mode 100644 index 0000000..5ada68f --- /dev/null +++ b/src/config/app.php @@ -0,0 +1,126 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | the application so that it's available within Artisan commands. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. The timezone + | is set to "UTC" by default as it is suitable for most use cases. + | + */ + + 'timezone' => env('APP_TIMEZONE', 'Asia/Kuala_Lumpur'), + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by Laravel's translation / localization methods. This option can be + | set to any locale for which you plan to have translation strings. + | + */ + + 'locale' => env('APP_LOCALE', 'en'), + + 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), + + 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is utilized by Laravel's encryption services and should be set + | to a random, 32 character string to ensure that all encrypted values + | are secure. You should do this prior to deploying the application. + | + */ + + 'cipher' => 'AES-256-CBC', + + 'key' => env('APP_KEY'), + + 'previous_keys' => [ + ...array_filter( + explode(',', (string) env('APP_PREVIOUS_KEYS', '')) + ), + ], + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), + 'store' => env('APP_MAINTENANCE_STORE', 'database'), + ], + +]; diff --git a/src/config/auth.php b/src/config/auth.php new file mode 100644 index 0000000..d7568ff --- /dev/null +++ b/src/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/src/config/cache.php b/src/config/cache.php new file mode 100644 index 0000000..c68acdf --- /dev/null +++ b/src/config/cache.php @@ -0,0 +1,130 @@ + env('CACHE_STORE', 'database'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + | Supported drivers: "array", "database", "file", "memcached", + | "redis", "dynamodb", "octane", + | "failover", "null" + | + */ + + 'stores' => [ + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'connection' => env('DB_CACHE_CONNECTION'), + 'table' => env('DB_CACHE_TABLE', 'cache'), + 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'), + 'lock_table' => env('DB_CACHE_LOCK_TABLE'), + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + 'lock_path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'), + 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'), + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + 'failover' => [ + 'driver' => 'failover', + 'stores' => [ + 'database', + 'array', + ], + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, and DynamoDB cache + | stores, there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'), + + /* + |-------------------------------------------------------------------------- + | Serializable Classes + |-------------------------------------------------------------------------- + | + | This value determines the classes that can be unserialized from cache + | storage. By default, no PHP classes will be unserialized from your + | cache to prevent gadget chain attacks if your APP_KEY is leaked. + | + */ + + 'serializable_classes' => false, + +]; diff --git a/src/config/database.php b/src/config/database.php new file mode 100644 index 0000000..abbb88e --- /dev/null +++ b/src/config/database.php @@ -0,0 +1,184 @@ + env('DB_CONNECTION', 'sqlite'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Below are all of the database connections defined for your application. + | An example configuration is provided for each database system which + | is supported by Laravel. You're free to add / remove connections. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DB_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + 'busy_timeout' => null, + 'journal_mode' => null, + 'synchronous' => null, + 'transaction_mode' => 'DEFERRED', + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => env('DB_CHARSET', 'utf8mb4'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + 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([ + 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/src/config/filesystems.php b/src/config/filesystems.php new file mode 100644 index 0000000..37d8fca --- /dev/null +++ b/src/config/filesystems.php @@ -0,0 +1,80 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Below you may configure as many filesystem disks as necessary, and you + | may even configure multiple disks for the same driver. Examples for + | most supported storage drivers are configured here for reference. + | + | Supported drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app/private'), + 'serve' => true, + 'throw' => false, + 'report' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => rtrim(env('APP_URL', 'http://localhost'), '/').'/storage', + 'visibility' => 'public', + 'throw' => false, + 'report' => false, + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + 'report' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/src/config/logging.php b/src/config/logging.php new file mode 100644 index 0000000..b09cb25 --- /dev/null +++ b/src/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/src/config/mail.php b/src/config/mail.php new file mode 100644 index 0000000..e32e88d --- /dev/null +++ b/src/config/mail.php @@ -0,0 +1,118 @@ + env('MAIL_MAILER', 'log'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers that can be used + | when delivering an email. You may specify which one you're using for + | your mailers below. You may also add additional mailers if needed. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", + | "postmark", "resend", "log", "array", + | "failover", "roundrobin" + | + */ + + 'mailers' => [ + + 'smtp' => [ + 'transport' => 'smtp', + 'scheme' => env('MAIL_SCHEME'), + 'url' => env('MAIL_URL'), + 'host' => env('MAIL_HOST', '127.0.0.1'), + 'port' => env('MAIL_PORT', 2525), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'postmark' => [ + 'transport' => 'postmark', + // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), + // 'client' => [ + // 'timeout' => 5, + // ], + ], + + 'resend' => [ + 'transport' => 'resend', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + 'retry_after' => 60, + ], + + 'roundrobin' => [ + 'transport' => 'roundrobin', + 'mailers' => [ + 'ses', + 'postmark', + ], + 'retry_after' => 60, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all emails sent by your application to be sent from + | the same address. Here you may specify a name and address that is + | used globally for all emails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Laravel')), + ], + +]; diff --git a/src/config/queue.php b/src/config/queue.php new file mode 100644 index 0000000..79c2c0a --- /dev/null +++ b/src/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/src/config/services.php b/src/config/services.php new file mode 100644 index 0000000..6a90eb8 --- /dev/null +++ b/src/config/services.php @@ -0,0 +1,38 @@ + [ + 'key' => env('POSTMARK_API_KEY'), + ], + + 'resend' => [ + 'key' => env('RESEND_API_KEY'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + + 'slack' => [ + 'notifications' => [ + 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), + 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'), + ], + ], + +]; diff --git a/src/config/session.php b/src/config/session.php new file mode 100644 index 0000000..f574482 --- /dev/null +++ b/src/config/session.php @@ -0,0 +1,233 @@ + env('SESSION_DRIVER', 'database'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to expire immediately when the browser is closed then you may + | indicate that via the expire_on_close configuration option. + | + */ + + 'lifetime' => (int) env('SESSION_LIFETIME', 120), + + 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false), + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it's stored. All encryption is performed + | automatically by Laravel and you may use the session like normal. + | + */ + + 'encrypt' => env('SESSION_ENCRYPT', false), + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When utilizing the "file" session driver, the session files are placed + | on disk. The default storage location is defined here; however, you + | are free to provide another location where they should be stored. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION'), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table to + | be used to store sessions. Of course, a sensible default is defined + | for you; however, you're welcome to change this to another table. + | + */ + + 'table' => env('SESSION_TABLE', 'sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | When using one of the framework's cache driven session backends, you may + | define the cache store which should be used to store the session data + | between requests. This must match one of your defined cache stores. + | + | Affects: "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the session cookie that is created by + | the framework. Typically, you should not need to change this value + | since doing so does not grant a meaningful security improvement. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug((string) env('APP_NAME', 'laravel')).'-session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application, but you're free to change this when necessary. + | + */ + + 'path' => env('SESSION_PATH', '/'), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | This value determines the domain and subdomains the session cookie is + | available to. By default, the cookie will be available to the root + | domain without subdomains. Typically, this shouldn't be changed. + | + */ + + 'domain' => env('SESSION_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you when it can't be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. It's unlikely you should disable this option. + | + */ + + 'http_only' => env('SESSION_HTTP_ONLY', true), + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | will set this value to "lax" to permit secure cross-site requests. + | + | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => env('SESSION_SAME_SITE', 'lax'), + + /* + |-------------------------------------------------------------------------- + | Partitioned Cookies + |-------------------------------------------------------------------------- + | + | Setting this value to true will tie the cookie to the top-level site for + | a cross-site context. Partitioned cookies are accepted by the browser + | when flagged "secure" and the Same-Site attribute is set to "none". + | + */ + + 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false), + + /* + |-------------------------------------------------------------------------- + | Session Serialization + |-------------------------------------------------------------------------- + | + | This value controls the serialization strategy for session data, which + | is JSON by default. Setting this to "php" allows the storage of PHP + | objects in the session but can make an application vulnerable to + | "gadget chain" serialization attacks if the APP_KEY is leaked. + | + | Supported: "json", "php" + | + */ + + 'serialization' => 'json', + +]; diff --git a/src/database/.gitignore b/src/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/src/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/src/database/factories/UserFactory.php b/src/database/factories/UserFactory.php new file mode 100644 index 0000000..c4ceb07 --- /dev/null +++ b/src/database/factories/UserFactory.php @@ -0,0 +1,45 @@ + + */ +class UserFactory extends Factory +{ + /** + * The current password being used by the factory. + */ + protected static ?string $password; + + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => fake()->name(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => static::$password ??= Hash::make('password'), + 'remember_token' => Str::random(10), + ]; + } + + /** + * Indicate that the model's email address should be unverified. + */ + public function unverified(): static + { + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/src/database/migrations/0001_01_01_000000_create_users_table.php b/src/database/migrations/0001_01_01_000000_create_users_table.php new file mode 100644 index 0000000..0988b35 --- /dev/null +++ b/src/database/migrations/0001_01_01_000000_create_users_table.php @@ -0,0 +1,53 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->unsignedBigInteger('role_id')->nullable()->index(); + $table->unsignedBigInteger('department_id')->nullable()->index(); + $table->boolean('is_active')->default(true); + $table->timestamp('last_login_at')->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/src/database/migrations/0001_01_01_000001_create_cache_table.php b/src/database/migrations/0001_01_01_000001_create_cache_table.php new file mode 100644 index 0000000..06dc7a5 --- /dev/null +++ b/src/database/migrations/0001_01_01_000001_create_cache_table.php @@ -0,0 +1,35 @@ +string('key')->primary(); + $table->mediumText('value'); + $table->bigInteger('expiration')->index(); + }); + + Schema::create('cache_locks', function (Blueprint $table) { + $table->string('key')->primary(); + $table->string('owner'); + $table->bigInteger('expiration')->index(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('cache'); + Schema::dropIfExists('cache_locks'); + } +}; diff --git a/src/database/migrations/0001_01_01_000002_create_jobs_table.php b/src/database/migrations/0001_01_01_000002_create_jobs_table.php new file mode 100644 index 0000000..edac6fe --- /dev/null +++ b/src/database/migrations/0001_01_01_000002_create_jobs_table.php @@ -0,0 +1,59 @@ +id(); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedSmallInteger('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->string('connection'); + $table->string('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + + $table->index(['connection', 'queue', 'failed_at']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('jobs'); + Schema::dropIfExists('job_batches'); + Schema::dropIfExists('failed_jobs'); + } +}; diff --git a/src/database/migrations/2026_05_18_110000_create_myansuran_core_tables.php b/src/database/migrations/2026_05_18_110000_create_myansuran_core_tables.php new file mode 100644 index 0000000..5de801b --- /dev/null +++ b/src/database/migrations/2026_05_18_110000_create_myansuran_core_tables.php @@ -0,0 +1,263 @@ +id(); + $table->string('name'); + $table->string('slug')->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + + Schema::create('role_permissions', function (Blueprint $table) { + $table->id(); + $table->foreignId('role_id')->constrained()->cascadeOnDelete(); + $table->string('module'); + $table->json('permissions'); + $table->timestamps(); + }); + + Schema::create('departments', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->string('code')->nullable()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + + Schema::create('user_profiles', function (Blueprint $table) { + $table->id(); + $table->foreignId('user_id')->unique()->constrained()->cascadeOnDelete(); + $table->string('public_name')->nullable(); + $table->string('identification_type')->nullable(); + $table->string('identification_number')->nullable(); + $table->string('country_code')->default('+60'); + $table->string('mobile_no')->nullable(); + $table->string('correspondence_address')->nullable(); + $table->string('workplace_address')->nullable(); + $table->string('occupation')->nullable(); + $table->decimal('monthly_income', 12, 2)->nullable(); + $table->timestamps(); + }); + + Schema::create('import_batches', function (Blueprint $table) { + $table->id(); + $table->string('filename'); + $table->string('stored_path')->nullable(); + $table->foreignId('uploaded_by')->nullable()->constrained('users')->nullOnDelete(); + $table->unsignedInteger('total_processed')->default(0); + $table->unsignedInteger('total_new')->default(0); + $table->unsignedInteger('total_updated')->default(0); + $table->unsignedInteger('total_missing')->default(0); + $table->unsignedInteger('total_failed')->default(0); + $table->json('summary')->nullable(); + $table->timestamps(); + }); + + Schema::create('property_accounts', function (Blueprint $table) { + $table->id(); + $table->string('no_akaun')->unique(); + $table->string('no_akaun_tunggakan')->unique(); + $table->string('pemilik'); + $table->string('warganegara')->nullable(); + $table->string('pelanggan')->nullable(); + $table->string('status')->nullable(); + $table->string('bandar')->nullable(); + $table->string('taman')->nullable(); + $table->string('rupacara')->nullable(); + $table->string('kadar')->nullable(); + $table->string('aktif')->nullable(); + $table->decimal('tunggakan', 12, 2)->default(0); + $table->string('jenis_lot')->nullable(); + $table->string('no_lot')->nullable(); + $table->string('jenis_dhm')->nullable(); + $table->string('no_dhm')->nullable(); + $table->string('no_syarikat')->nullable(); + $table->string('alamat_harta')->nullable(); + $table->string('category')->nullable(); + $table->string('status_data')->default('Aktif'); + $table->timestamp('last_imported_at')->nullable(); + $table->foreignId('import_batch_id')->nullable()->constrained()->nullOnDelete(); + $table->timestamps(); + }); + + Schema::create('installment_applications', function (Blueprint $table) { + $table->id(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->foreignId('property_account_id')->nullable()->constrained()->nullOnDelete(); + $table->foreignId('assigned_staff_id')->nullable()->constrained('users')->nullOnDelete(); + $table->string('application_no')->unique(); + $table->string('no_akaun'); + $table->string('no_akaun_tunggakan'); + $table->string('category'); + $table->unsignedTinyInteger('installment_months'); + $table->decimal('total_arrears', 12, 2)->default(0); + $table->string('status')->default('diproses'); + $table->string('schedule_status')->default('draf'); + $table->decimal('schedule_total', 12, 2)->default(0); + $table->text('staff_remarks')->nullable(); + $table->foreignId('reviewed_by')->nullable()->constrained('users')->nullOnDelete(); + $table->timestamp('reviewed_at')->nullable(); + $table->timestamp('approved_at')->nullable(); + $table->timestamp('rejected_at')->nullable(); + $table->text('rejection_reason')->nullable(); + $table->string('identification_type')->nullable(); + $table->string('identification_number')->nullable(); + $table->string('no_syarikat')->nullable(); + $table->string('alamat_harta')->nullable(); + $table->string('alamat_surat_menyurat')->nullable(); + $table->string('country_code')->default('+60'); + $table->string('mobile_no')->nullable(); + $table->string('email')->nullable(); + $table->string('alamat_tempat_bekerja')->nullable(); + $table->string('pekerjaan')->nullable(); + $table->decimal('pendapatan_sebulan', 12, 2)->nullable(); + $table->string('declaration_name'); + $table->string('declaration_identification_type'); + $table->string('declaration_identification_number'); + $table->date('declaration_date'); + $table->boolean('declaration_accepted')->default(false); + $table->string('ic_attachment_path')->nullable(); + $table->timestamp('printed_at')->nullable(); + $table->timestamps(); + }); + + Schema::create('installment_schedules', function (Blueprint $table) { + $table->id(); + $table->foreignId('installment_application_id')->constrained()->cascadeOnDelete(); + $table->unsignedTinyInteger('installment_no'); + $table->date('due_date')->nullable(); + $table->decimal('amount', 12, 2)->default(0); + $table->string('payment_status')->default('belum_bayar'); + $table->timestamp('paid_at')->nullable(); + $table->text('notes')->nullable(); + $table->boolean('is_confirmed')->default(false); + $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete(); + $table->timestamps(); + }); + + Schema::create('payments', function (Blueprint $table) { + $table->id(); + $table->foreignId('installment_application_id')->constrained()->cascadeOnDelete(); + $table->foreignId('installment_schedule_id')->nullable()->constrained()->nullOnDelete(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->string('transaction_no')->unique(); + $table->string('receipt_no')->nullable(); + $table->string('biller_code')->default('37317'); + $table->string('ref_1'); + $table->string('ref_2'); + $table->decimal('amount', 12, 2); + $table->string('status')->default('pending'); + $table->json('payload')->nullable(); + $table->timestamp('paid_at')->nullable(); + $table->text('remarks')->nullable(); + $table->timestamps(); + }); + + Schema::create('notifications', function (Blueprint $table) { + $table->id(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->string('type')->default('system'); + $table->string('title'); + $table->text('message'); + $table->string('action_url')->nullable(); + $table->boolean('is_read')->default(false); + $table->timestamp('read_at')->nullable(); + $table->timestamps(); + }); + + Schema::create('email_logs', function (Blueprint $table) { + $table->id(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->foreignId('installment_application_id')->nullable()->constrained()->nullOnDelete(); + $table->string('recipient_email'); + $table->string('subject'); + $table->text('body')->nullable(); + $table->string('status')->default('queued'); + $table->timestamp('sent_at')->nullable(); + $table->timestamps(); + }); + + Schema::create('tasks', function (Blueprint $table) { + $table->id(); + $table->foreignId('installment_application_id')->nullable()->constrained()->nullOnDelete(); + $table->foreignId('assigned_to')->nullable()->constrained('users')->nullOnDelete(); + $table->foreignId('assigned_by')->nullable()->constrained('users')->nullOnDelete(); + $table->string('title'); + $table->text('description')->nullable(); + $table->string('priority')->default('normal'); + $table->string('status')->default('belum_selesai'); + $table->timestamp('due_at')->nullable(); + $table->timestamp('completed_at')->nullable(); + $table->timestamps(); + }); + + Schema::create('application_histories', function (Blueprint $table) { + $table->id(); + $table->foreignId('installment_application_id')->constrained()->cascadeOnDelete(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->string('action'); + $table->string('old_status')->nullable(); + $table->string('new_status')->nullable(); + $table->text('remarks')->nullable(); + $table->json('metadata')->nullable(); + $table->timestamps(); + }); + + Schema::create('system_settings', function (Blueprint $table) { + $table->id(); + $table->string('group')->default('general'); + $table->string('key')->unique(); + $table->string('label'); + $table->text('value')->nullable(); + $table->text('description')->nullable(); + $table->timestamps(); + }); + + Schema::create('audit_trails', function (Blueprint $table) { + $table->id(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->foreignId('installment_application_id')->nullable()->constrained()->nullOnDelete(); + $table->string('action'); + $table->string('module'); + $table->text('description'); + $table->json('old_values')->nullable(); + $table->json('new_values')->nullable(); + $table->string('ip_address', 45)->nullable(); + $table->text('user_agent')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('audit_trails'); + Schema::dropIfExists('system_settings'); + Schema::dropIfExists('application_histories'); + Schema::dropIfExists('tasks'); + Schema::dropIfExists('email_logs'); + Schema::dropIfExists('notifications'); + Schema::dropIfExists('payments'); + Schema::dropIfExists('installment_schedules'); + Schema::dropIfExists('installment_applications'); + Schema::dropIfExists('property_accounts'); + Schema::dropIfExists('import_batches'); + Schema::dropIfExists('user_profiles'); + Schema::dropIfExists('departments'); + Schema::dropIfExists('role_permissions'); + Schema::dropIfExists('roles'); + } +}; diff --git a/src/database/migrations/2026_05_18_180000_add_property_detail_fields_to_installment_applications_table.php b/src/database/migrations/2026_05_18_180000_add_property_detail_fields_to_installment_applications_table.php new file mode 100644 index 0000000..b894896 --- /dev/null +++ b/src/database/migrations/2026_05_18_180000_add_property_detail_fields_to_installment_applications_table.php @@ -0,0 +1,24 @@ +string('jenis_lot')->nullable()->after('no_syarikat'); + $table->string('no_lot')->nullable()->after('jenis_lot'); + $table->string('jenis_dhm')->nullable()->after('no_lot'); + }); + } + + public function down(): void + { + Schema::table('installment_applications', function (Blueprint $table) { + $table->dropColumn(['jenis_lot', 'no_lot', 'jenis_dhm']); + }); + } +}; diff --git a/src/database/migrations/2026_05_18_190000_add_property_tax_fields_to_property_accounts_table.php b/src/database/migrations/2026_05_18_190000_add_property_tax_fields_to_property_accounts_table.php new file mode 100644 index 0000000..a4213ba --- /dev/null +++ b/src/database/migrations/2026_05_18_190000_add_property_tax_fields_to_property_accounts_table.php @@ -0,0 +1,24 @@ +string('no_bgnn')->nullable()->after('no_akaun_tunggakan'); + $table->string('nama_jalan')->nullable()->after('no_bgnn'); + $table->decimal('cukai_harta', 12, 2)->default(0)->after('kadar'); + }); + } + + public function down(): void + { + Schema::table('property_accounts', function (Blueprint $table) { + $table->dropColumn(['no_bgnn', 'nama_jalan', 'cukai_harta']); + }); + } +}; diff --git a/src/database/migrations/2026_05_18_191000_add_import_type_to_import_batches_table.php b/src/database/migrations/2026_05_18_191000_add_import_type_to_import_batches_table.php new file mode 100644 index 0000000..67ff051 --- /dev/null +++ b/src/database/migrations/2026_05_18_191000_add_import_type_to_import_batches_table.php @@ -0,0 +1,22 @@ +string('import_type')->default('arrears')->after('stored_path'); + }); + } + + public function down(): void + { + Schema::table('import_batches', function (Blueprint $table) { + $table->dropColumn('import_type'); + }); + } +}; diff --git a/src/database/migrations/2026_05_18_192000_add_no_dhm_to_installment_applications_table.php b/src/database/migrations/2026_05_18_192000_add_no_dhm_to_installment_applications_table.php new file mode 100644 index 0000000..b4f1527 --- /dev/null +++ b/src/database/migrations/2026_05_18_192000_add_no_dhm_to_installment_applications_table.php @@ -0,0 +1,22 @@ +string('no_dhm')->nullable()->after('no_lot'); + }); + } + + public function down(): void + { + Schema::table('installment_applications', function (Blueprint $table): void { + $table->dropColumn('no_dhm'); + }); + } +}; diff --git a/src/database/migrations/2026_05_18_193000_add_property_tax_half_amount_to_installment_applications_table.php b/src/database/migrations/2026_05_18_193000_add_property_tax_half_amount_to_installment_applications_table.php new file mode 100644 index 0000000..d4160a3 --- /dev/null +++ b/src/database/migrations/2026_05_18_193000_add_property_tax_half_amount_to_installment_applications_table.php @@ -0,0 +1,22 @@ +decimal('property_tax_half_amount', 12, 2)->nullable()->after('total_arrears'); + }); + } + + public function down(): void + { + Schema::table('installment_applications', function (Blueprint $table): void { + $table->dropColumn('property_tax_half_amount'); + }); + } +}; diff --git a/src/database/seeders/DatabaseSeeder.php b/src/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..1de1cfa --- /dev/null +++ b/src/database/seeders/DatabaseSeeder.php @@ -0,0 +1,529 @@ +value => Role::create([ + 'name' => 'Admin', + 'slug' => UserRole::ADMIN->value, + 'description' => 'Akses penuh pemantauan, laporan dan tetapan sistem.', + ]), + UserRole::STAFF->value => Role::create([ + 'name' => 'Staff', + 'slug' => UserRole::STAFF->value, + 'description' => 'Semak permohonan, input jadual manual dan cetak borang.', + ]), + UserRole::PUBLIC->value => Role::create([ + 'name' => 'Pengguna Awam', + 'slug' => UserRole::PUBLIC->value, + 'description' => 'Mohon ansuran, lihat jadual manual dan buat bayaran dummy.', + ]), + ]); + + foreach ([ + UserRole::ADMIN->value => [ + 'Dashboard' => ['view'], + 'Pengurusan Pengguna' => ['view', 'create', 'edit', 'reset_password'], + 'Laporan' => ['view', 'export'], + 'Audit Trail' => ['view'], + ], + UserRole::STAFF->value => [ + 'Dashboard Staff' => ['view'], + 'Permohonan' => ['view', 'review', 'print'], + 'Kemaskini Bayaran Pukal' => ['view', 'upload'], + 'Import Excel' => ['view', 'upload'], + ], + UserRole::PUBLIC->value => [ + 'Dashboard Pengguna Awam' => ['view'], + 'Permohonan Saya' => ['view', 'create'], + 'Bayaran Dummy JomPAY' => ['view', 'pay'], + ], + ] as $roleSlug => $permissions) { + foreach ($permissions as $module => $access) { + RolePermission::create([ + 'role_id' => $roles[$roleSlug]->id, + 'module' => $module, + 'permissions' => $access, + ]); + } + } + + $department = Department::create([ + 'name' => 'Unit Hasil & Tunggakan', + 'code' => 'UHT', + 'description' => 'Bahagian pengurusan tunggakan cukai harta dan ansuran.', + ]); + + $admin = User::create([ + 'name' => 'Admin MyAnsuran', + 'email' => 'admin@myansuran.test', + 'password' => Hash::make('password'), + 'role_id' => $roles[UserRole::ADMIN->value]->id, + 'department_id' => $department->id, + 'last_login_at' => now()->subHours(2), + ]); + + $staff = User::create([ + 'name' => 'Pegawai Semakan', + 'email' => 'staff@myansuran.test', + 'password' => Hash::make('password'), + 'role_id' => $roles[UserRole::STAFF->value]->id, + 'department_id' => $department->id, + 'last_login_at' => now()->subHour(), + ]); + + $publicUser = User::create([ + 'name' => 'Nur Balqis', + 'email' => 'user@myansuran.test', + 'password' => Hash::make('password'), + 'role_id' => $roles[UserRole::PUBLIC->value]->id, + 'last_login_at' => now()->subMinutes(20), + ]); + + UserProfile::create([ + 'user_id' => $publicUser->id, + 'public_name' => 'Nur Balqis Binti Rahman', + 'identification_type' => 'MyKad', + 'identification_number' => '920101-01-2345', + 'country_code' => '+60', + 'mobile_no' => '123456789', + 'correspondence_address' => 'No. 88, Jalan Setia 3, Taman Setia Indah, Johor Bahru, Johor', + 'workplace_address' => 'Pejabat Pengurusan BizHub, Iskandar Puteri, Johor', + 'occupation' => 'Eksekutif Operasi', + 'monthly_income' => 4200.00, + ]); + + $this->seedSystemSettings(); + + if (! app()->environment('testing')) { + return; + } + + $importBatch = ImportBatch::create([ + 'filename' => 'property-accounts-demo.xlsx', + 'stored_path' => 'imports/property-accounts-demo.xlsx', + 'import_type' => 'arrears', + 'uploaded_by' => $staff->id, + 'total_processed' => 10, + 'total_new' => 10, + 'total_updated' => 0, + 'total_missing' => 0, + 'total_failed' => 0, + 'summary' => ['seeded' => true], + ]); + + $propertyAccounts = collect([ + ['A1001', 'NBE1001', 'Nur Balqis Binti Rahman', 'Johor Bahru', 'Taman Setia Indah', 'Banglo', '4.5%', 1200, 'Kediaman'], + ['A1002', 'NBE1002', 'Syarikat Maju Bina Sdn Bhd', 'Iskandar Puteri', 'Kawasan Perindustrian Gelang Patah', 'Kilang', '6.0%', 4500, 'Industri'], + ['A1003', 'NBE1003', 'Kedai Seri Jaya Enterprise', 'Johor Bahru', 'Taman Molek', 'Kedai Pejabat', '5.5%', 7800, 'Perdagangan'], + ['A1004', 'NBE1004', 'Puan Salmah Binti Jusoh', 'Skudai', 'Taman Universiti', 'Teres', '4.0%', 1600, 'Kediaman'], + ['A1005', 'NBE1005', 'Warisan Teguh Industries', 'Pasir Gudang', 'Kawasan Industri Tanjung Langsat', 'Gudang', '6.8%', 9800, 'Industri'], + ['A1006', 'NBE1006', 'Restoran Selera Selatan', 'Johor Bahru', 'Bandar Dato Onn', 'Premis Niaga', '5.2%', 3100, 'Perdagangan'], + ['A1007', 'NBE1007', 'Encik Azhar Bin Jaafar', 'Kulai', 'Taman Putri', 'Teres', '4.1%', 1400, 'Kediaman'], + ['A1008', 'NBE1008', 'Mutiara Logistic Sdn Bhd', 'Iskandar Puteri', 'Nusajaya Tech Park', 'Lot Industri', '6.4%', 8600, 'Industri'], + ['A1009', 'NBE1009', 'Butik Anggun Mawar', 'Johor Bahru', 'Taman Mount Austin', 'Lot Komersial', '5.1%', 2600, 'Perdagangan'], + ['A1010', 'NBE1010', 'Puan Hajar Binti Osman', 'Skudai', 'Taman Sri Pulai', 'Apartment', '3.9%', 900, 'Kediaman'], + ])->map(function (array $row) use ($importBatch) { + [$noAkaun, $noAkaunTunggakan, $pemilik, $bandar, $taman, $rupacara, $kadar, $tunggakan, $category] = $row; + + return PropertyAccount::create([ + 'no_akaun' => $noAkaun, + 'no_akaun_tunggakan' => $noAkaunTunggakan, + 'no_bgnn' => 'BGN-'.str($noAkaun)->after('A'), + 'nama_jalan' => 'Jalan Demo '.str($noAkaun)->after('A'), + 'pemilik' => $pemilik, + 'warganegara' => 'Ya', + 'pelanggan' => 'Aktif', + 'status' => 'Tunggakan', + 'bandar' => $bandar, + 'taman' => $taman, + 'rupacara' => $rupacara, + 'kadar' => $kadar, + 'cukai_harta' => round($tunggakan * 0.35, 2), + 'aktif' => 'Ya', + 'tunggakan' => $tunggakan, + 'jenis_lot' => 'Komersial / Kediaman', + 'no_lot' => 'LOT-'.str($noAkaun)->after('A'), + 'jenis_dhm' => 'Hakmilik Kekal', + 'no_dhm' => 'DHM-'.str($noAkaun)->after('A'), + 'no_syarikat' => str($pemilik)->contains('Sdn Bhd') ? '201901234567' : null, + 'alamat_harta' => $taman.', '.$bandar.', Johor', + 'category' => $category, + 'status_data' => 'Aktif', + 'last_imported_at' => now(), + 'import_batch_id' => $importBatch->id, + ]); + }); + + $activeApplication = InstallmentApplication::create([ + 'user_id' => $publicUser->id, + 'property_account_id' => $propertyAccounts[0]->id, + 'assigned_staff_id' => $staff->id, + 'application_no' => 'MYA-202605-0001', + 'no_akaun' => $propertyAccounts[0]->no_akaun, + 'no_akaun_tunggakan' => $propertyAccounts[0]->no_akaun_tunggakan, + 'category' => 'Kediaman', + 'installment_months' => 4, + 'total_arrears' => 1200.00, + 'status' => ApplicationStatus::ACTIVE->value, + 'schedule_status' => 'disahkan', + 'schedule_total' => 1200.00, + 'staff_remarks' => 'Permohonan lengkap. Bayaran pertama dipandu pada kadar minimum 30%.', + 'reviewed_by' => $staff->id, + 'reviewed_at' => now()->subDays(5), + 'approved_at' => now()->subDays(5), + 'identification_type' => 'MyKad', + 'identification_number' => '920101-01-2345', + 'no_lot' => $propertyAccounts[0]->no_lot, + 'no_dhm' => $propertyAccounts[0]->no_dhm, + 'no_syarikat' => $propertyAccounts[0]->no_syarikat, + 'alamat_harta' => $propertyAccounts[0]->no_bgnn.', '.$propertyAccounts[0]->nama_jalan, + 'alamat_surat_menyurat' => 'No. 88, Jalan Setia 3, Taman Setia Indah, Johor Bahru, Johor', + 'country_code' => '+60', + 'mobile_no' => '123456789', + 'email' => $publicUser->email, + 'alamat_tempat_bekerja' => 'Pejabat Pengurusan BizHub, Iskandar Puteri, Johor', + 'pekerjaan' => 'Eksekutif Operasi', + 'pendapatan_sebulan' => 4200.00, + 'declaration_name' => 'Nur Balqis Binti Rahman', + 'declaration_identification_type' => 'MyKad', + 'declaration_identification_number' => '920101-01-2345', + 'declaration_date' => now()->subDays(6)->toDateString(), + 'declaration_accepted' => true, + 'printed_at' => now()->subDays(4), + 'created_at' => now()->subDays(6), + 'updated_at' => now()->subDays(4), + ]); + + collect([ + [1, 360.00, now()->subDays(4)->toDateString(), 'dibayar'], + [2, 280.00, now()->addDays(5)->toDateString(), 'belum_bayar'], + [3, 280.00, now()->addMonth()->toDateString(), 'belum_bayar'], + [4, 280.00, now()->addMonths(2)->toDateString(), 'belum_bayar'], + ])->each(function (array $schedule) use ($activeApplication, $staff) { + InstallmentSchedule::create([ + 'installment_application_id' => $activeApplication->id, + 'installment_no' => $schedule[0], + 'amount' => $schedule[1], + 'due_date' => $schedule[2], + 'payment_status' => $schedule[3], + 'paid_at' => $schedule[3] === 'dibayar' ? now()->subDays(3) : null, + 'is_confirmed' => true, + 'created_by' => $staff->id, + ]); + }); + + $processingApplication = InstallmentApplication::create([ + 'user_id' => $publicUser->id, + 'property_account_id' => $propertyAccounts[1]->id, + 'assigned_staff_id' => $staff->id, + 'application_no' => 'MYA-202605-0002', + 'no_akaun' => $propertyAccounts[1]->no_akaun, + 'no_akaun_tunggakan' => $propertyAccounts[1]->no_akaun_tunggakan, + 'category' => 'Industri', + 'installment_months' => 3, + 'total_arrears' => 4500.00, + 'status' => ApplicationStatus::PROCESSING->value, + 'schedule_status' => 'draf', + 'schedule_total' => 0, + 'identification_type' => 'MyKad', + 'identification_number' => '920101-01-2345', + 'no_lot' => $propertyAccounts[1]->no_lot, + 'no_dhm' => $propertyAccounts[1]->no_dhm, + 'no_syarikat' => $propertyAccounts[1]->no_syarikat, + 'alamat_harta' => $propertyAccounts[1]->no_bgnn.', '.$propertyAccounts[1]->nama_jalan, + 'alamat_surat_menyurat' => 'No. 88, Jalan Setia 3, Taman Setia Indah, Johor Bahru, Johor', + 'country_code' => '+60', + 'mobile_no' => '123456789', + 'email' => $publicUser->email, + 'alamat_tempat_bekerja' => 'Pejabat Pengurusan BizHub, Iskandar Puteri, Johor', + 'pekerjaan' => 'Eksekutif Operasi', + 'pendapatan_sebulan' => 4200.00, + 'declaration_name' => 'Nur Balqis Binti Rahman', + 'declaration_identification_type' => 'MyKad', + 'declaration_identification_number' => '920101-01-2345', + 'declaration_date' => now()->subDays(2)->toDateString(), + 'declaration_accepted' => true, + 'created_at' => now()->subDays(2), + 'updated_at' => now()->subDays(2), + ]); + + $failedApplication = InstallmentApplication::create([ + 'user_id' => $publicUser->id, + 'property_account_id' => $propertyAccounts[2]->id, + 'assigned_staff_id' => $staff->id, + 'application_no' => 'MYA-202604-0003', + 'no_akaun' => $propertyAccounts[2]->no_akaun, + 'no_akaun_tunggakan' => $propertyAccounts[2]->no_akaun_tunggakan, + 'category' => 'Perdagangan', + 'installment_months' => 2, + 'total_arrears' => 7800.00, + 'status' => ApplicationStatus::FAILED->value, + 'schedule_status' => 'draf', + 'schedule_total' => 5000.00, + 'staff_remarks' => 'Dokumen sokongan tidak lengkap. Sila kemukakan semula salinan IC yang jelas.', + 'reviewed_by' => $staff->id, + 'reviewed_at' => now()->subMonth(), + 'rejected_at' => now()->subMonth(), + 'rejection_reason' => 'Dokumen sokongan tidak lengkap.', + 'identification_type' => 'MyKad', + 'identification_number' => '920101-01-2345', + 'no_lot' => $propertyAccounts[2]->no_lot, + 'no_dhm' => $propertyAccounts[2]->no_dhm, + 'no_syarikat' => $propertyAccounts[2]->no_syarikat, + 'alamat_harta' => $propertyAccounts[2]->no_bgnn.', '.$propertyAccounts[2]->nama_jalan, + 'alamat_surat_menyurat' => 'No. 88, Jalan Setia 3, Taman Setia Indah, Johor Bahru, Johor', + 'country_code' => '+60', + 'mobile_no' => '123456789', + 'email' => $publicUser->email, + 'alamat_tempat_bekerja' => 'Pejabat Pengurusan BizHub, Iskandar Puteri, Johor', + 'pekerjaan' => 'Eksekutif Operasi', + 'pendapatan_sebulan' => 4200.00, + 'declaration_name' => 'Nur Balqis Binti Rahman', + 'declaration_identification_type' => 'MyKad', + 'declaration_identification_number' => '920101-01-2345', + 'declaration_date' => now()->subMonth()->toDateString(), + 'declaration_accepted' => true, + 'printed_at' => now()->subMonth()->addDay(), + 'created_at' => now()->subMonth()->subDays(2), + 'updated_at' => now()->subMonth()->addDay(), + ]); + + $completedApplication = InstallmentApplication::create([ + 'user_id' => $publicUser->id, + 'property_account_id' => $propertyAccounts[3]->id, + 'assigned_staff_id' => $staff->id, + 'application_no' => 'MYA-202603-0004', + 'no_akaun' => $propertyAccounts[3]->no_akaun, + 'no_akaun_tunggakan' => $propertyAccounts[3]->no_akaun_tunggakan, + 'category' => 'Kediaman', + 'installment_months' => 2, + 'total_arrears' => 1600.00, + 'status' => ApplicationStatus::COMPLETED->value, + 'schedule_status' => 'disahkan', + 'schedule_total' => 1600.00, + 'staff_remarks' => 'Semua bayaran telah dijelaskan.', + 'reviewed_by' => $staff->id, + 'reviewed_at' => now()->subMonths(2), + 'approved_at' => now()->subMonths(2), + 'identification_type' => 'MyKad', + 'identification_number' => '920101-01-2345', + 'no_lot' => $propertyAccounts[3]->no_lot, + 'no_dhm' => $propertyAccounts[3]->no_dhm, + 'no_syarikat' => $propertyAccounts[3]->no_syarikat, + 'alamat_harta' => $propertyAccounts[3]->no_bgnn.', '.$propertyAccounts[3]->nama_jalan, + 'alamat_surat_menyurat' => 'No. 88, Jalan Setia 3, Taman Setia Indah, Johor Bahru, Johor', + 'country_code' => '+60', + 'mobile_no' => '123456789', + 'email' => $publicUser->email, + 'alamat_tempat_bekerja' => 'Pejabat Pengurusan BizHub, Iskandar Puteri, Johor', + 'pekerjaan' => 'Eksekutif Operasi', + 'pendapatan_sebulan' => 4200.00, + 'declaration_name' => 'Nur Balqis Binti Rahman', + 'declaration_identification_type' => 'MyKad', + 'declaration_identification_number' => '920101-01-2345', + 'declaration_date' => now()->subMonths(2)->toDateString(), + 'declaration_accepted' => true, + 'printed_at' => now()->subMonths(2)->addDays(2), + 'created_at' => now()->subMonths(2)->subDays(3), + 'updated_at' => now()->subMonth(), + ]); + + collect([ + [$completedApplication, 1, 800.00, now()->subMonths(2)->addDays(5)->toDateString()], + [$completedApplication, 2, 800.00, now()->subMonth()->toDateString()], + ])->each(function (array $schedule) use ($staff) { + InstallmentSchedule::create([ + 'installment_application_id' => $schedule[0]->id, + 'installment_no' => $schedule[1], + 'amount' => $schedule[2], + 'due_date' => $schedule[3], + 'payment_status' => 'dibayar', + 'paid_at' => Carbon::parse($schedule[3])->endOfDay(), + 'is_confirmed' => true, + 'created_by' => $staff->id, + ]); + }); + + Task::insert([ + [ + 'installment_application_id' => $processingApplication->id, + 'assigned_to' => $staff->id, + 'assigned_by' => $admin->id, + 'title' => 'Semak permohonan '.$processingApplication->application_no, + 'description' => 'Permohonan baharu menunggu input amaun ansuran manual.', + 'priority' => 'tinggi', + 'status' => 'belum_selesai', + 'due_at' => now()->addDay(), + 'created_at' => now(), + 'updated_at' => now(), + ], + [ + 'installment_application_id' => $activeApplication->id, + 'assigned_to' => $staff->id, + 'assigned_by' => $admin->id, + 'title' => 'Pantau baki ansuran '.$activeApplication->application_no, + 'description' => 'Semak kemasukan bayaran ansuran bulan kedua.', + 'priority' => 'normal', + 'status' => 'belum_selesai', + 'due_at' => now()->addWeek(), + 'created_at' => now(), + 'updated_at' => now(), + ], + ]); + + $activePaymentSchedule = $activeApplication->schedules()->first(); + Payment::create([ + 'installment_application_id' => $activeApplication->id, + 'installment_schedule_id' => $activePaymentSchedule?->id, + 'user_id' => $publicUser->id, + 'transaction_no' => 'TRX-DEMO-1001', + 'receipt_no' => 'RCPT-DEMO-1001', + 'ref_1' => $activeApplication->no_akaun, + 'ref_2' => $publicUser->email, + 'amount' => 360.00, + 'status' => 'success', + 'payload' => ['channel' => 'JomPAY Dummy'], + 'paid_at' => now()->subDays(3), + 'remarks' => 'Bayaran pertama berjaya.', + ]); + + foreach ($completedApplication->schedules as $index => $schedule) { + Payment::create([ + 'installment_application_id' => $completedApplication->id, + 'installment_schedule_id' => $schedule->id, + 'user_id' => $publicUser->id, + 'transaction_no' => 'TRX-DEMO-200'.($index + 1), + 'receipt_no' => 'RCPT-DEMO-200'.($index + 1), + 'ref_1' => $completedApplication->no_akaun, + 'ref_2' => $publicUser->email, + 'amount' => $schedule->amount, + 'status' => 'success', + 'payload' => ['channel' => 'JomPAY Dummy'], + 'paid_at' => $schedule->paid_at, + 'remarks' => 'Bayaran ansuran selesai.', + ]); + } + + foreach ([ + [$activeApplication, $publicUser, 'permohonan_dihantar', null, ApplicationStatus::ACTIVE->value, 'Permohonan diterima dan jadual manual disahkan.'], + [$processingApplication, $publicUser, 'permohonan_dihantar', null, ApplicationStatus::PROCESSING->value, 'Permohonan sedang diproses oleh staff.'], + [$failedApplication, $staff, 'permohonan_ditolak', ApplicationStatus::PROCESSING->value, ApplicationStatus::FAILED->value, 'Dokumen sokongan tidak lengkap.'], + [$completedApplication, $staff, 'akaun_ansuran_selesai', ApplicationStatus::ACTIVE->value, ApplicationStatus::COMPLETED->value, 'Semua ansuran telah dibayar.'], + ] as $history) { + ApplicationHistory::create([ + 'installment_application_id' => $history[0]->id, + 'user_id' => $history[1]->id, + 'action' => $history[2], + 'old_status' => $history[3], + 'new_status' => $history[4], + 'remarks' => $history[5], + 'metadata' => ['seeded' => true], + 'created_at' => now(), + 'updated_at' => now(), + ]); + } + + foreach ([ + ['Permohonan diterima', 'Permohonan MYA-202605-0001 telah disahkan dan jadual bayaran dipaparkan.', $activeApplication], + ['Permohonan masih diproses', 'Permohonan MYA-202605-0002 sedang disemak oleh staff.', $processingApplication], + ['Permohonan ditolak', 'Permohonan MYA-202604-0003 ditolak. Sila semak ulasan pegawai.', $failedApplication], + ] as $notification) { + SystemNotification::create([ + 'user_id' => $publicUser->id, + 'type' => 'application', + 'title' => $notification[0], + 'message' => $notification[1], + 'action_url' => '/portal/applications/'.$notification[2]->id, + ]); + } + + foreach ([ + ['Permohonan diterima', 'Jadual bayaran manual untuk MYA-202605-0001 telah disahkan.', $activeApplication], + ['Permohonan ditolak', 'Permohonan MYA-202604-0003 memerlukan semakan semula dokumen.', $failedApplication], + ] as $email) { + EmailLog::create([ + 'user_id' => $publicUser->id, + 'installment_application_id' => $email[2]->id, + 'recipient_email' => $publicUser->email, + 'subject' => $email[0], + 'body' => $email[1], + 'status' => 'sent', + 'sent_at' => now(), + ]); + } + + foreach ([ + [$admin, 'login', 'Authentication', 'Admin log masuk ke sistem.'], + [$publicUser, 'hantar_permohonan', 'Permohonan Ansuran', 'Pengguna menghantar permohonan baharu.'], + [$staff, 'semak_permohonan', 'Semakan Staff', 'Staff mengesahkan jadual ansuran manual.'], + [$staff, 'upload_excel', 'Import Excel', 'Staff memuat naik Excel data akaun cukai harta.'], + [$publicUser, 'bayaran_dummy', 'Pembayaran', 'Pengguna membuat bayaran dummy melalui JomPAY.'], + ] as $audit) { + AuditTrail::create([ + 'user_id' => $audit[0]->id, + 'installment_application_id' => $activeApplication->id, + 'action' => $audit[1], + 'module' => $audit[2], + 'description' => $audit[3], + 'old_values' => ['seeded' => true], + 'new_values' => ['seeded' => true], + 'ip_address' => '127.0.0.1', + 'user_agent' => 'Seeder', + 'created_at' => now(), + 'updated_at' => now(), + ]); + } + } + + protected function seedSystemSettings(): void + { + foreach ([ + ['general', 'max_installment_months', 'Jumlah maksimum ansuran', '6', 'Had maksimum tempoh ansuran yang dibenarkan.'], + ['general', 'minimum_first_payment_residential', 'Kediaman - Panduan Bayaran Awal', '30', 'Peratus panduan bayaran pertama untuk kediaman.'], + ['general', 'minimum_first_payment_industrial', 'Industri - Panduan Bayaran Awal', '50', 'Peratus panduan bayaran pertama untuk industri.'], + ['general', 'minimum_first_payment_commercial', 'Perdagangan - Panduan Bayaran Awal', '50', 'Peratus panduan bayaran pertama untuk perdagangan.'], + ['department', 'department_name', 'Nama Jabatan', 'Majlis Bandaraya Iskandar Puteri', 'Nama jabatan untuk paparan portal.'], + ['payment', 'jompay_biller_code', 'Biller Code JomPAY', '37317', 'Kod pengebil untuk demo pembayaran JomPAY.'], + ] as $setting) { + SystemSetting::updateOrCreate( + ['key' => $setting[1]], + [ + 'group' => $setting[0], + 'label' => $setting[2], + 'value' => $setting[3], + 'description' => $setting[4], + ], + ); + } + } +} diff --git a/src/package.json b/src/package.json new file mode 100644 index 0000000..49c869e --- /dev/null +++ b/src/package.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://www.schemastore.org/package.json", + "private": true, + "type": "module", + "scripts": { + "build": "vite build", + "dev": "vite" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.0.0", + "concurrently": "^9.0.1", + "laravel-vite-plugin": "^3.1", + "tailwindcss": "^4.0.0", + "vite": "^8.0.0" + } +} diff --git a/src/phpunit.xml b/src/phpunit.xml new file mode 100644 index 0000000..e7f0a48 --- /dev/null +++ b/src/phpunit.xml @@ -0,0 +1,36 @@ + + + + + tests/Unit + + + tests/Feature + + + + + app + + + + + + + + + + + + + + + + + + + diff --git a/src/public/.htaccess b/src/public/.htaccess new file mode 100644 index 0000000..b574a59 --- /dev/null +++ b/src/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/src/public/favicon.ico b/src/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/src/public/index.php b/src/public/index.php new file mode 100644 index 0000000..ee8f07e --- /dev/null +++ b/src/public/index.php @@ -0,0 +1,20 @@ +handleRequest(Request::capture()); diff --git a/src/public/robots.txt b/src/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/src/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/src/resources/css/app.css b/src/resources/css/app.css new file mode 100644 index 0000000..3e6abea --- /dev/null +++ b/src/resources/css/app.css @@ -0,0 +1,11 @@ +@import 'tailwindcss'; + +@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php'; +@source '../../storage/framework/views/*.php'; +@source '../**/*.blade.php'; +@source '../**/*.js'; + +@theme { + --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', + 'Segoe UI Symbol', 'Noto Color Emoji'; +} diff --git a/src/resources/js/app.js b/src/resources/js/app.js new file mode 100644 index 0000000..8337712 --- /dev/null +++ b/src/resources/js/app.js @@ -0,0 +1 @@ +// diff --git a/src/resources/views/admin/application-show.blade.php b/src/resources/views/admin/application-show.blade.php new file mode 100644 index 0000000..0b3f50d --- /dev/null +++ b/src/resources/views/admin/application-show.blade.php @@ -0,0 +1,87 @@ +@extends('layouts.app') + +@section('title', 'Butiran Permohonan Admin') +@section('page-title', 'Butiran Permohonan') +@section('page-label', 'Admin') + +@section('page-actions') + Print Borang +@endsection + +@section('content') +
+
+
+
+
+
No Permohonan
+

{{ $application->application_no }}

+
+ @include('components.status-badge', ['status' => $application->status]) +
+
+
Pemohon
{{ $application->user->displayName() }}
+
Contact Number
{{ $application->country_code }} {{ $application->mobile_no }}
+
Emel
{{ $application->email }}
+
Alamat Surat Menyurat
{{ $application->alamat_surat_menyurat }}
+
Alamat Harta
{{ $application->alamat_harta }}
+
Pekerjaan
{{ $application->pekerjaan ?: '-' }}
+
No Lot
{{ $application->no_lot ?: '-' }}
+
No DHM
{{ $application->no_dhm ?: '-' }}
+
No Syarikat
{{ $application->no_syarikat ?: '-' }}
+
Pendapatan Sebulan
{{ $application->pendapatan_sebulan ? 'RM '.number_format((float) $application->pendapatan_sebulan, 2) : '-' }}
+
Ulasan Staff
{{ $application->staff_remarks ?: 'Tiada ulasan direkodkan.' }}
+
+
+
+

Jadual Ansuran Manual

+
+ + + + + + + + + + + @forelse ($application->schedules as $schedule) + + + + + + + @empty + + @endforelse + +
Ansuran Ke-TarikhAmaunStatus
{{ $schedule->installment_no }}{{ optional($schedule->due_date)->format('d/m/Y') }}RM {{ number_format((float) $schedule->amount, 2) }}@include('components.status-badge', ['status' => $schedule->payment_status])
Tiada jadual direkodkan.
+
+
+
+
+
+

Maklumat Akaun

+
+
Pemilik
{{ $application->propertyAccount?->pemilik }}
+
Bandar
{{ $application->propertyAccount?->bandar }}
+
Taman
{{ $application->propertyAccount?->taman }}
+
Rupacara
{{ $application->propertyAccount?->rupacara }}
+
Kadar
{{ $application->propertyAccount?->kadar }}
+
+
+
+

Sejarah Tindakan

+ @foreach ($application->histories as $history) +
+
{{ str($history->action)->replace('_', ' ')->headline() }}
+
{{ $history->created_at->format('d/m/Y h:i A') }}
+
{{ $history->remarks ?: '-' }}
+
+ @endforeach +
+
+
+@endsection diff --git a/src/resources/views/admin/applications-index.blade.php b/src/resources/views/admin/applications-index.blade.php new file mode 100644 index 0000000..20a2238 --- /dev/null +++ b/src/resources/views/admin/applications-index.blade.php @@ -0,0 +1,71 @@ +@extends('layouts.app') + +@section('title', 'Pengurusan Permohonan') +@section('page-title', 'Pengurusan Permohonan') +@section('page-label', 'Admin') + +@section('page-actions') + Eksport Excel +@endsection + +@section('content') +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + @foreach ($applications as $application) + + + + + + + + + + @endforeach + +
No PermohonanPemohonNo Akaun TunggakanKategoriStatusPegawai
{{ $application->application_no }}{{ $application->user->displayName() }}{{ $application->no_akaun_tunggakan }}{{ $application->category }}@include('components.status-badge', ['status' => $application->status]){{ $application->reviewer?->displayName() ?: '-' }}Lihat
+
+
{{ $applications->links() }}
+
+@endsection diff --git a/src/resources/views/admin/audit-trail.blade.php b/src/resources/views/admin/audit-trail.blade.php new file mode 100644 index 0000000..e6054cf --- /dev/null +++ b/src/resources/views/admin/audit-trail.blade.php @@ -0,0 +1,37 @@ +@extends('layouts.app') + +@section('title', 'Audit Trail') +@section('page-title', 'Audit Trail') +@section('page-label', 'Admin') + +@section('content') +
+
+ + + + + + + + + + + + + @foreach ($audits as $audit) + + + + + + + + + @endforeach + +
TarikhPenggunaModulTindakanKeteranganIP
{{ $audit->created_at->format('d/m/Y h:i A') }}{{ $audit->user?->displayName() ?: 'Sistem' }}{{ $audit->module }}{{ $audit->action }}{{ $audit->description }}{{ $audit->ip_address ?: '-' }}
+
+
{{ $audits->links() }}
+
+@endsection diff --git a/src/resources/views/admin/communications-index.blade.php b/src/resources/views/admin/communications-index.blade.php new file mode 100644 index 0000000..f57bbc3 --- /dev/null +++ b/src/resources/views/admin/communications-index.blade.php @@ -0,0 +1,34 @@ +@extends('layouts.app') + +@section('title', 'Notifikasi & Emel') +@section('page-title', 'Notifikasi & Emel') +@section('page-label', 'Admin') + +@section('content') +
+
+
+

Notifikasi Sistem

+ @foreach ($notifications as $notification) +
+
{{ $notification->title }}
+
{{ $notification->user?->displayName() }} | {{ $notification->created_at->format('d/m/Y h:i A') }}
+
{{ $notification->message }}
+
+ @endforeach +
+
+
+
+

Dummy Email Log

+ @foreach ($emailLogs as $emailLog) +
+
{{ $emailLog->subject }}
+
{{ $emailLog->recipient_email }} | {{ optional($emailLog->sent_at)->format('d/m/Y h:i A') }}
+
{{ $emailLog->body }}
+
+ @endforeach +
+
+
+@endsection diff --git a/src/resources/views/admin/dashboard.blade.php b/src/resources/views/admin/dashboard.blade.php new file mode 100644 index 0000000..d064148 --- /dev/null +++ b/src/resources/views/admin/dashboard.blade.php @@ -0,0 +1,77 @@ +@extends('layouts.app') + +@section('title', 'Dashboard Admin') +@section('page-title', 'Dashboard Admin') +@section('page-label', 'Pemantauan Keseluruhan') + +@section('content') +
+ @foreach ([ + ['label' => 'Permohonan Baharu', 'value' => $summary['new_applications'], 'icon' => 'bi-journal-plus'], + ['label' => 'Permohonan Lulus', 'value' => $summary['approved_applications'], 'icon' => 'bi-check2-circle'], + ['label' => 'Permohonan Gagal', 'value' => $summary['failed_applications'], 'icon' => 'bi-x-circle'], + ['label' => 'Permohonan Batal', 'value' => $summary['cancelled_applications'], 'icon' => 'bi-ban'], + ['label' => 'Akaun Ansuran Aktif', 'value' => $summary['active_accounts'], 'icon' => 'bi-calendar-range'], + ['label' => 'Bayaran Diterima', 'value' => 'RM '.number_format((float) $summary['payments_received'], 2), 'icon' => 'bi-cash-coin'], + ['label' => 'Tunggakan Semasa', 'value' => 'RM '.number_format((float) $summary['outstanding_arrears'], 2), 'icon' => 'bi-exclamation-diamond'], + ['label' => 'Akaun Ansuran Selesai', 'value' => $summary['completed_accounts'], 'icon' => 'bi-patch-check'], + ['label' => 'Pengguna Awam Berdaftar', 'value' => $summary['public_users'], 'icon' => 'bi-people'], + ] as $card) +
+
+
+
+
{{ $card['label'] }}
+
{{ $card['value'] }}
+
+
+
+
+
+ @endforeach +
+ +
+
+
+

Permohonan Terkini

+
+ + + + + + + + + + + @foreach ($latestApplications as $application) + + + + + + + @endforeach + +
No PermohonanPemohonNo AkaunStatus
{{ $application->application_no }}{{ $application->user->displayName() }}{{ $application->no_akaun_tunggakan }}@include('components.status-badge', ['status' => $application->status])
+
+
+
+
+
+

Notifikasi Terkini

+ @forelse ($latestNotifications as $notification) +
+
{{ $notification->title }}
+
{{ $notification->user?->displayName() }} | {{ $notification->created_at->format('d/m/Y h:i A') }}
+
{{ $notification->message }}
+
+ @empty +
Tiada notifikasi untuk dipaparkan.
+ @endforelse +
+
+
+@endsection diff --git a/src/resources/views/admin/installment-accounts-index.blade.php b/src/resources/views/admin/installment-accounts-index.blade.php new file mode 100644 index 0000000..0259c8d --- /dev/null +++ b/src/resources/views/admin/installment-accounts-index.blade.php @@ -0,0 +1,36 @@ +@extends('layouts.app') + +@section('title', 'Akaun Ansuran') +@section('page-title', 'Akaun Ansuran Aktif') +@section('page-label', 'Pemantauan Akaun') + +@section('content') +
+
+ + + + + + + + + + + + @foreach ($applications as $application) + @php($paid = $application->payments->where('status', 'success')->sum('amount')) + + + + + + + + @endforeach + +
No PermohonanPemohonNo AkaunJumlah JadualBaki Tertunggak
{{ $application->application_no }}{{ $application->user->displayName() }}{{ $application->no_akaun_tunggakan }}RM {{ number_format((float) $application->schedule_total, 2) }}RM {{ number_format((float) $application->schedule_total - (float) $paid, 2) }}
+
+
{{ $applications->links() }}
+
+@endsection diff --git a/src/resources/views/admin/payments-index.blade.php b/src/resources/views/admin/payments-index.blade.php new file mode 100644 index 0000000..cdbda26 --- /dev/null +++ b/src/resources/views/admin/payments-index.blade.php @@ -0,0 +1,37 @@ +@extends('layouts.app') + +@section('title', 'Pengurusan Bayaran') +@section('page-title', 'Senarai Bayaran') +@section('page-label', 'Admin') + +@section('content') +
+
+ + + + + + + + + + + + + @foreach ($payments as $payment) + + + + + + + + + @endforeach + +
ResitPembayarNo AkaunAmaunStatusTarikh
{{ $payment->receipt_no }}{{ $payment->user?->displayName() }}{{ $payment->application?->no_akaun }}RM {{ number_format((float) $payment->amount, 2) }}@include('components.status-badge', ['status' => $payment->status]){{ optional($payment->paid_at)->format('d/m/Y h:i A') }}
+
+
{{ $payments->links() }}
+
+@endsection diff --git a/src/resources/views/admin/property-account-form.blade.php b/src/resources/views/admin/property-account-form.blade.php new file mode 100644 index 0000000..6f7f529 --- /dev/null +++ b/src/resources/views/admin/property-account-form.blade.php @@ -0,0 +1,28 @@ +@extends('layouts.app') + +@section('title', $account->exists ? 'Edit Data Harta' : 'Tambah Data Harta') +@section('page-title', $account->exists ? 'Edit Data Harta' : 'Tambah Data Harta') +@section('page-label', 'Data Harta') + +@section('content') +
+
+ @csrf + @if ($account->exists) @method('PUT') @endif +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@endsection diff --git a/src/resources/views/admin/property-accounts-index.blade.php b/src/resources/views/admin/property-accounts-index.blade.php new file mode 100644 index 0000000..82a3522 --- /dev/null +++ b/src/resources/views/admin/property-accounts-index.blade.php @@ -0,0 +1,66 @@ +@extends('layouts.app') + +@section('title', 'Data Harta') +@section('page-title', 'Data Harta') +@section('page-label', 'Admin') + +@section('page-actions') + Tambah Data Harta +@endsection + +@section('content') +
+
+
+ + +
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + @foreach ($accounts as $account) + + + + + + + + + + + + @endforeach + +
No AkaunNo Akaun TunggakanNo BgnnPemilikJalan / BandarCukai HartaTunggakanStatus Data
{{ $account->no_akaun }}{{ $account->no_akaun_tunggakan }}{{ $account->no_bgnn ?: '-' }}{{ $account->pemilik }}{{ $account->nama_jalan ?: '-' }} / {{ $account->bandar ?: '-' }}RM {{ number_format((float) $account->cukai_harta, 2) }}RM {{ number_format((float) $account->tunggakan, 2) }}{{ $account->status_data }} +
+ Edit +
+ @csrf @method('DELETE') + +
+
+
+
+
{{ $accounts->links() }}
+
+@endsection diff --git a/src/resources/views/admin/reports.blade.php b/src/resources/views/admin/reports.blade.php new file mode 100644 index 0000000..8eb8a31 --- /dev/null +++ b/src/resources/views/admin/reports.blade.php @@ -0,0 +1,98 @@ +@extends('layouts.app') + +@section('title', 'Laporan') +@section('page-title', 'Laporan') +@section('page-label', 'Admin') + +@section('page-actions') + +@endsection + +@section('content') +
+ @foreach ([ + ['label' => 'Jumlah Bayaran Diterima', 'value' => 'RM '.number_format((float) $summary['payments_received'], 2)], + ['label' => 'Jumlah Tunggakan', 'value' => 'RM '.number_format((float) $summary['outstanding_arrears'], 2)], + ['label' => 'Permohonan Batal', 'value' => $summary['cancelled_applications']], + ['label' => 'Akaun Ansuran Aktif', 'value' => $summary['active_accounts']], + ] as $card) +
+
+
{{ $card['label'] }}
+
{{ $card['value'] }}
+
+
+ @endforeach +
+
+
+
+

Jumlah Permohonan Bulanan

+ + + + @foreach ($monthlyApplications as $item) + + @endforeach + +
BulanJumlah
{{ $item->month }}{{ $item->total }}
+
+
+
+
+

Bayaran Diterima

+ + + + @foreach ($monthlyPayments as $item) + + @endforeach + +
BulanJumlah
{{ $item->month }}RM {{ number_format((float) $item->total, 2) }}
+
+
+
+
+

Laporan Ikut Kategori Harta

+ + + + @foreach ($categoryBreakdown as $item) + + @endforeach + +
KategoriJumlah
{{ $item->category }}{{ $item->total }}
+
+
+
+
+

Laporan Ikut Kawasan

+ + + + @foreach ($areaBreakdown as $item) + + @endforeach + +
BandarJumlah
{{ $item->bandar ?: 'Tidak Ditetapkan' }}{{ $item->total }}
+
+
+
+
+

Prestasi Staff / Pegawai

+ + + + @foreach ($staffPerformance as $staff) + + @endforeach + +
NamaJumlah Disemak
{{ $staff->name }}{{ $staff->total_reviewed }}
+
+
+
+@endsection diff --git a/src/resources/views/admin/roles-index.blade.php b/src/resources/views/admin/roles-index.blade.php new file mode 100644 index 0000000..ff29228 --- /dev/null +++ b/src/resources/views/admin/roles-index.blade.php @@ -0,0 +1,26 @@ +@extends('layouts.app') + +@section('title', 'Pengurusan Peranan') +@section('page-title', 'Pengurusan Peranan') +@section('page-label', 'Admin') + +@section('content') +
+ @foreach ($roles as $role) +
+
+

{{ $role->name }}

+

{{ $role->description }}

+
Akses modul
+
    + @forelse ($role->permissions as $permission) +
  • {{ $permission->module }}: {{ implode(', ', $permission->permissions) }}
  • + @empty +
  • Belum ditetapkan
  • + @endforelse +
+
+
+ @endforeach +
+@endsection diff --git a/src/resources/views/admin/settings.blade.php b/src/resources/views/admin/settings.blade.php new file mode 100644 index 0000000..4ed1288 --- /dev/null +++ b/src/resources/views/admin/settings.blade.php @@ -0,0 +1,33 @@ +@extends('layouts.app') + +@section('title', 'Tetapan Sistem') +@section('page-title', 'Tetapan Sistem') +@section('page-label', 'Admin') + +@section('content') +
+
+ @csrf + @method('PUT') + @foreach ($settings as $group => $items) +
+

{{ $group }}

+
+ @foreach ($items as $setting) +
+ + + @if ($setting->description) +
{{ $setting->description }}
+ @endif +
+ @endforeach +
+
+ @endforeach +
+ +
+
+
+@endsection diff --git a/src/resources/views/admin/tasks-index.blade.php b/src/resources/views/admin/tasks-index.blade.php new file mode 100644 index 0000000..db9084a --- /dev/null +++ b/src/resources/views/admin/tasks-index.blade.php @@ -0,0 +1,35 @@ +@extends('layouts.app') + +@section('title', 'Pengurusan Tugasan') +@section('page-title', 'Pengurusan Tugasan') +@section('page-label', 'Admin') + +@section('content') +
+
+ + + + + + + + + + + + @foreach ($tasks as $task) + + + + + + + + @endforeach + +
TajukPegawaiPrioritiStatusDue Date
{{ $task->title }}{{ $task->assignee?->displayName() ?: '-' }}{{ ucfirst($task->priority) }}{{ ucfirst(str_replace('_', ' ', $task->status)) }}{{ optional($task->due_at)->format('d/m/Y h:i A') ?: '-' }}
+
+
{{ $tasks->links() }}
+
+@endsection diff --git a/src/resources/views/admin/user-form.blade.php b/src/resources/views/admin/user-form.blade.php new file mode 100644 index 0000000..8b15d26 --- /dev/null +++ b/src/resources/views/admin/user-form.blade.php @@ -0,0 +1,54 @@ +@extends('layouts.app') + +@section('title', $user->exists ? 'Edit Pengguna' : 'Tambah Pengguna') +@section('page-title', $user->exists ? 'Edit Pengguna' : 'Tambah Pengguna') +@section('page-label', 'Pengurusan Pengguna') + +@section('content') +
+
+ @csrf + @if ($user->exists) + @method('PUT') + @endif +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + exists ? '' : 'required' }}> +
+
+
+ is_active ?? true))> + +
+
+
+ +
+
+
+@endsection diff --git a/src/resources/views/admin/users-index.blade.php b/src/resources/views/admin/users-index.blade.php new file mode 100644 index 0000000..85d939e --- /dev/null +++ b/src/resources/views/admin/users-index.blade.php @@ -0,0 +1,47 @@ +@extends('layouts.app') + +@section('title', 'Pengurusan Pengguna') +@section('page-title', 'Pengurusan Pengguna') +@section('page-label', 'Admin') + +@section('page-actions') + Tambah Pengguna +@endsection + +@section('content') +
+
+ + + + + + + + + + + + + @foreach ($users as $user) + + + + + + + + + @endforeach + +
NamaEmelPerananBahagian/UnitStatus
{{ $user->displayName() }}{{ $user->email }}{{ $user->role?->name }}{{ $user->department?->name ?: '-' }}{!! $user->is_active ? 'Aktif' : 'Nyahaktif' !!} +
+ Edit +
@csrf
+
@csrf
+
+
+
+
{{ $users->links() }}
+
+@endsection diff --git a/src/resources/views/auth/login.blade.php b/src/resources/views/auth/login.blade.php new file mode 100644 index 0000000..cab3eaf --- /dev/null +++ b/src/resources/views/auth/login.blade.php @@ -0,0 +1,42 @@ +@extends('layouts.guest') + +@section('title', 'Log Masuk | MyAnsuran') + +@section('content') +
+
+
+
+

Log Masuk MyAnsuran

+

Portal permohonan bayaran cukai harta secara ansuran.

+
+
+ @include('components.flash') +
+ @csrf +
+ + +
+
+ + +
+
+ + +
+ +
+
+ Akaun demo: admin@myansuran.test, staff@myansuran.test, user@myansuran.test
+ Kata laluan demo: password +
+ +
+
+
+
+@endsection diff --git a/src/resources/views/auth/register.blade.php b/src/resources/views/auth/register.blade.php new file mode 100644 index 0000000..3a53914 --- /dev/null +++ b/src/resources/views/auth/register.blade.php @@ -0,0 +1,38 @@ +@extends('layouts.guest') + +@section('title', 'Daftar | MyAnsuran') + +@section('content') +
+
+
+
+

Pendaftaran Pengguna Awam

+

Daftar akaun untuk memohon bayaran ansuran cukai harta secara atas talian.

+
+
+ @include('components.flash') +
+ @csrf +
+ + +
+
+ + +
+
+ + +
+ +
+ +
+
+
+
+@endsection diff --git a/src/resources/views/components/flash.blade.php b/src/resources/views/components/flash.blade.php new file mode 100644 index 0000000..362527b --- /dev/null +++ b/src/resources/views/components/flash.blade.php @@ -0,0 +1,19 @@ +@foreach (['success' => 'success', 'warning' => 'warning', 'error' => 'danger'] as $key => $variant) + @if (session($key)) + + @endif +@endforeach + +@if ($errors->any()) +
+
Terdapat ralat pada borang.
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+@endif diff --git a/src/resources/views/components/status-badge.blade.php b/src/resources/views/components/status-badge.blade.php new file mode 100644 index 0000000..3a408eb --- /dev/null +++ b/src/resources/views/components/status-badge.blade.php @@ -0,0 +1,29 @@ +@php + $statusMap = [ + 'diproses' => 'warning', + 'aktif' => 'success', + 'gagal' => 'danger', + 'batal' => 'danger', + 'selesai' => 'dark', + 'pending' => 'warning', + 'success' => 'success', + 'failed' => 'danger', + 'belum_bayar' => 'secondary', + 'dibayar' => 'success', + 'lewat' => 'danger', + ]; + $labelMap = [ + 'diproses' => 'Diproses', + 'aktif' => 'Aktif', + 'gagal' => 'Gagal', + 'batal' => 'Batal', + 'selesai' => 'Selesai', + 'pending' => 'Pending', + 'success' => 'Berjaya', + 'failed' => 'Gagal', + 'belum_bayar' => 'Belum Bayar', + 'dibayar' => 'Dibayar', + 'lewat' => 'Lewat', + ]; +@endphp +{{ $labelMap[$status] ?? ucfirst($status) }} diff --git a/src/resources/views/exports/report-print.blade.php b/src/resources/views/exports/report-print.blade.php new file mode 100644 index 0000000..ce40283 --- /dev/null +++ b/src/resources/views/exports/report-print.blade.php @@ -0,0 +1,40 @@ + + + + + Laporan MyAnsuran + + + +

Laporan Ringkas MyAnsuran

+ + + + +
Jumlah Permohonan Baharu{{ $summary['new_applications'] }}
Jumlah Bayaran DiterimaRM {{ number_format((float) $summary['payments_received'], 2) }}
Jumlah TunggakanRM {{ number_format((float) $summary['outstanding_arrears'], 2) }}
+ +

Permohonan Bulanan

+ + + + @foreach ($monthlyApplications as $item) + + @endforeach + +
BulanJumlah
{{ $item->month }}{{ $item->total }}
+ +

Bayaran Bulanan

+ + + + @foreach ($monthlyPayments as $item) + + @endforeach + +
BulanJumlah
{{ $item->month }}RM {{ number_format((float) $item->total, 2) }}
+ + diff --git a/src/resources/views/layouts/app.blade.php b/src/resources/views/layouts/app.blade.php new file mode 100644 index 0000000..0fdca39 --- /dev/null +++ b/src/resources/views/layouts/app.blade.php @@ -0,0 +1,257 @@ +@php + $user = auth()->user(); + $isPublicPortal = $user?->isPublicUser(); + $notifications = $user?->notifications()->latest()->take(5)->get() ?? collect(); + $menus = match($user?->role?->slug) { + 'admin' => [ + ['route' => 'admin.dashboard', 'label' => 'Dashboard', 'icon' => 'bi-grid-1x2-fill'], + ['route' => 'admin.users.index', 'label' => 'Pengurusan Pengguna', 'icon' => 'bi-people-fill'], + ['route' => 'admin.roles.index', 'label' => 'Pengurusan Peranan', 'icon' => 'bi-shield-lock-fill'], + ['route' => 'admin.applications.index', 'label' => 'Permohonan', 'icon' => 'bi-journal-text'], + ['route' => 'admin.installment-accounts.index', 'label' => 'Akaun Ansuran', 'icon' => 'bi-calendar-range-fill'], + ['route' => 'admin.payments.index', 'label' => 'Bayaran', 'icon' => 'bi-credit-card-2-front-fill'], + ['route' => 'admin.tasks.index', 'label' => 'Tugasan', 'icon' => 'bi-list-task'], + ['route' => 'admin.communications.index', 'label' => 'Notifikasi & Emel', 'icon' => 'bi-envelope-paper-fill'], + ['route' => 'admin.property-accounts.index', 'label' => 'Data Harta', 'icon' => 'bi-house-check-fill'], + ['route' => 'admin.import.index', 'label' => 'Import Excel', 'icon' => 'bi-file-earmark-arrow-up-fill'], + ['route' => 'admin.settings.index', 'label' => 'Tetapan Sistem', 'icon' => 'bi-gear-fill'], + ['route' => 'admin.reports.index', 'label' => 'Laporan', 'icon' => 'bi-bar-chart-fill'], + ['route' => 'admin.audit-trail.index', 'label' => 'Audit Trail', 'icon' => 'bi-clock-history'], + ], + 'staff' => [ + ['route' => 'staff.dashboard', 'label' => 'Dashboard Staff', 'icon' => 'bi-speedometer2'], + ['route' => 'staff.applications.index', 'label' => 'Permohonan', 'icon' => 'bi-folder2-open'], + ['route' => 'staff.bulk-payments.index', 'label' => 'Kemaskini Bayaran Pukal', 'icon' => 'bi-file-earmark-spreadsheet-fill'], + ['route' => 'staff.import.index', 'label' => 'Import Excel', 'icon' => 'bi-file-earmark-arrow-up-fill'], + ], + default => [ + ['route' => 'portal.dashboard', 'label' => 'Dashboard', 'icon' => 'bi-house-door-fill'], + ['route' => 'portal.applications.index', 'label' => 'Permohonan Saya', 'icon' => 'bi-journal-check'], + ['route' => 'portal.applications.create', 'label' => 'Permohonan Baharu', 'icon' => 'bi-plus-circle-fill'], + ['route' => 'portal.profile.edit', 'label' => 'Profil Pengguna', 'icon' => 'bi-person-vcard-fill'], + ], + }; +@endphp + + + + + + @yield('title', 'MyAnsuran') + + + + + + @stack('styles') + + + @if ($isPublicPortal) +
+ + @include('components.flash') + @yield('content') +
+ @else +
+
+ +
+
+
+
@yield('page-label', 'Modul Sistem')
+

@yield('page-title', 'MyAnsuran')

+
+
+ + @yield('page-actions') +
+ @csrf + +
+
+
+ @include('components.flash') + @yield('content') +
+
+
+ @endif + + diff --git a/src/resources/views/layouts/guest.blade.php b/src/resources/views/layouts/guest.blade.php new file mode 100644 index 0000000..4ef1f60 --- /dev/null +++ b/src/resources/views/layouts/guest.blade.php @@ -0,0 +1,66 @@ + + + + + + @yield('title', 'MyAnsuran') + + + + + + @stack('styles') + + + @yield('content') + + diff --git a/src/resources/views/portal/application-form.blade.php b/src/resources/views/portal/application-form.blade.php new file mode 100644 index 0000000..56d35c4 --- /dev/null +++ b/src/resources/views/portal/application-form.blade.php @@ -0,0 +1,428 @@ +@extends('layouts.app') + +@section('title', 'Permohonan Baharu') + +@section('content') + @php + $profile = auth()->user()->profile; + $declarationFields = [ + 'declaration_name', + 'declaration_identification_type', + 'declaration_identification_number', + 'declaration_date', + 'declaration_accepted', + 'ic_attachment', + ]; + $hasDeclarationErrors = collect($declarationFields)->contains(fn ($field) => $errors->has($field)); + $isOldAccountBlocked = (bool) ($oldAccountStatus['is_blocked'] ?? false); + $initialStep = $hasDeclarationErrors && ! $isOldAccountBlocked ? 3 : (old('property_account_id') && ! $isOldAccountBlocked ? 2 : 1); + @endphp + +
+
+
+
Permohonan Baharu
+

Permohonan Bayaran Cukai Harta Secara Ansuran

+

Lengkapkan permohonan mengikut turutan semakan, borang dan perakuan.

+
+ Kembali +
+ +
+
+ 1 + Semakan No_Akaun_Tunggakan +
+
+ 2 + Borang Permohonan +
+
+ 3 + Teks Perakuan Pemohon +
+
+ + @if ($errors->any()) +
+ Sila semak semula maklumat permohonan sebelum dihantar. +
+ @endif + +
+
+
+

Semakan No_Akaun_Tunggakan

+

Masukkan nombor akaun tunggakan untuk mendapatkan maklumat akaun cukai harta.

+
+ + +
Pengguna hanya dibenarkan memasukkan nombor akaun tunggakan. No_Akaun akan dipaparkan secara automatik selepas semakan berjaya.
+
+
+ + +
+
+
+
+ @if ($oldAccount) +
+ Akaun dijumpai: {{ $oldAccount->no_akaun }}
+ Status Akaun: + {{ $oldAccountStatus['label'] }} + @if ($oldAccountStatus['application_no']) + ({{ $oldAccountStatus['application_no'] }}) + @endif +
+ Pemilik: {{ $oldAccount->pemilik }}
+ Tunggakan: RM {{ number_format((float) $oldAccount->tunggakan, 2) }} + @if ($isOldAccountBlocked) +
+ Permohonan tidak boleh diteruskan.
+ {{ $oldAccountStatus['block_message'] }} + @endif +
+ @else +
Maklumat akaun dan status terkini akan dipaparkan selepas semakan berjaya.
+ @endif +
+
+
+
+ +
+ @csrf + + + +
+
+
+

Borang Permohonan Bayaran Cukai Harta Secara Ansuran

+

Lengkapkan semua maklumat permohonan selepas semakan akaun berjaya.

+
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
Rupacara, No_Lot dan Alamat_Harta akan diisi automatik daripada data import Excel. No_DHM dan No_Syarikat boleh dikemas kini oleh pemohon jika perlu.
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
Susunan alamat harta: No_Bgnn, Nama_Jalan.
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ + +
+
+ +
+

Teks Perakuan Pemohon

+
+ “Saya yang bertandatangan dibawah bersetuju dan berjanji akan menjelaskan bayaran cukai harta mengikut jadual ansuran yang telah diluluskan sebagaimana di bawah. Sekiranya saya gagal maka pihak Majlis Bandaraya Iskandar Puteri berhak membatalkan permohonan ini dan mengambil TINDAKAN SITAAN / UNDANG-UNDANG ke atas SAYA / PREMIS tanpa apa-apa notis lagi.” +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+ @error('declaration_accepted') +
{{ $message }}
+ @enderror +
+
+ +
+ + +
+
+
+
+@endsection + +@push('styles') + + +@endpush diff --git a/src/resources/views/portal/application-show.blade.php b/src/resources/views/portal/application-show.blade.php new file mode 100644 index 0000000..101c9c4 --- /dev/null +++ b/src/resources/views/portal/application-show.blade.php @@ -0,0 +1,95 @@ +@extends('layouts.app') + +@section('title', 'Butiran Permohonan') + +@section('content') +
+
+
+
+
+
No Permohonan
+

{{ $application->application_no }}

+

Tarikh permohonan: {{ $application->created_at->format('d/m/Y h:i A') }}

+
+ @include('components.status-badge', ['status' => $application->status]) +
+
+
No Akaun:
{{ $application->no_akaun }}
+
No Akaun Tunggakan:
{{ $application->no_akaun_tunggakan }}
+
Kategori:
{{ $application->category }}
+
Tempoh Ansuran:
{{ $application->installment_months }} bulan
+
No Lot:
{{ $application->no_lot ?: '-' }}
+
No DHM:
{{ $application->no_dhm ?: '-' }}
+
No Syarikat:
{{ $application->no_syarikat ?: '-' }}
+
Jumlah Tunggakan:
RM {{ number_format((float) $application->total_arrears, 2) }}
+
Ulasan Staff:
{{ $application->staff_remarks ?: 'Belum direkodkan.' }}
+
+
+ +
+

Jadual Ansuran Manual

+ @if ($application->status === 'aktif' && $application->schedules->count()) +
+ + + + + + + + + + + + @foreach ($application->schedules as $schedule) + + + + + + + + @endforeach + +
Ansuran Ke-Tarikh BayaranAmaunStatus
{{ $schedule->installment_no }}{{ optional($schedule->due_date)->format('d/m/Y') }}RM {{ number_format((float) $schedule->amount, 2) }}@include('components.status-badge', ['status' => $schedule->payment_status]) + @if ($schedule->payment_status === 'belum_bayar') + Bayar Dummy JomPAY + @endif +
+
+ @else +
Jadual ansuran akan dipaparkan selepas disahkan oleh staff.
+ @endif +
+
+
+
+

Maklumat Akaun

+
+
Pemilik
{{ $application->propertyAccount?->pemilik }}
+
Taman
{{ $application->propertyAccount?->taman }}
+
Rupacara
{{ $application->propertyAccount?->rupacara }}
+
Kadar
{{ $application->propertyAccount?->kadar }}
+
Alamat Harta
{{ $application->alamat_harta }}
+
+
+
+

Sejarah Tindakan

+
+ @forelse ($application->histories as $history) +
+
{{ str($history->action)->replace('_', ' ')->headline() }}
+
{{ $history->created_at->format('d/m/Y h:i A') }} oleh {{ $history->user?->displayName() ?? 'Sistem' }}
+ @if ($history->remarks) +
{{ $history->remarks }}
+ @endif +
+ @empty +
Tiada sejarah tindakan direkodkan.
+ @endforelse +
+
+
+
+@endsection diff --git a/src/resources/views/portal/applications-index.blade.php b/src/resources/views/portal/applications-index.blade.php new file mode 100644 index 0000000..6cea9e4 --- /dev/null +++ b/src/resources/views/portal/applications-index.blade.php @@ -0,0 +1,47 @@ +@extends('layouts.app') + +@section('title', 'Permohonan Saya') + +@section('content') +
+
+

Senarai Permohonan Ansuran

+

Pantau status permohonan dan jadual ansuran manual yang disahkan.

+
+ Tambah Permohonan +
+ +
+
+ + + + + + + + + + + + + + @forelse ($applications as $application) + + + + + + + + + + @empty + + @endforelse + +
No PermohonanNo AkaunKategoriTempohJumlah TunggakanStatus
{{ $application->application_no }}{{ $application->no_akaun_tunggakan }}{{ $application->category }}{{ $application->installment_months }} bulanRM {{ number_format((float) $application->total_arrears, 2) }}@include('components.status-badge', ['status' => $application->status])Butiran
Tiada permohonan untuk dipaparkan.
+
+
{{ $applications->links() }}
+
+@endsection diff --git a/src/resources/views/portal/dashboard.blade.php b/src/resources/views/portal/dashboard.blade.php new file mode 100644 index 0000000..b33b825 --- /dev/null +++ b/src/resources/views/portal/dashboard.blade.php @@ -0,0 +1,85 @@ +@extends('layouts.app') + +@section('title', 'Dashboard Pengguna Awam') + +@section('content') + + +
+ @foreach ([ + ['label' => 'Jumlah Permohonan', 'value' => $stats['total'], 'icon' => 'bi-journal-text'], + ['label' => 'Permohonan Diproses', 'value' => $stats['processing'], 'icon' => 'bi-hourglass-split'], + ['label' => 'Akaun Aktif', 'value' => $stats['active'], 'icon' => 'bi-check-circle-fill'], + ['label' => 'Bayaran Selesai', 'value' => $stats['completed'], 'icon' => 'bi-patch-check-fill'], + ] as $card) +
+
+
+
+
{{ $card['label'] }}
+
{{ $card['value'] }}
+
+
+
+
+
+ @endforeach +
+ +
+
+

Permohonan Terkini

+ Lihat Semua +
+
+ + + + + + + + + + + + + @forelse ($applications as $application) + + + + + + + + + @empty + + + + @endforelse + +
No PermohonanNo Akaun TunggakanKategoriTempohStatus
{{ $application->application_no }}{{ $application->no_akaun_tunggakan }}{{ $application->category }}{{ $application->installment_months }} bulan@include('components.status-badge', ['status' => $application->status])Butiran
Belum ada permohonan dihantar.
+
+
+ +
+
Terma & Syarat | Polisi Privasi | Maklumat Hubungan
+
+ + + +
+
+@endsection diff --git a/src/resources/views/portal/landing.blade.php b/src/resources/views/portal/landing.blade.php new file mode 100644 index 0000000..37a393c --- /dev/null +++ b/src/resources/views/portal/landing.blade.php @@ -0,0 +1,97 @@ +@extends('layouts.guest') + +@section('title', 'MyAnsuran') + +@section('content') +
+
+
+
+
+ + Demo KIK MBIP | Portal Bayaran Ansuran Cukai Harta +
+

MyAnsuran memudahkan permohonan bayaran cukai harta secara ansuran.

+

Pengguna awam boleh semak akaun tunggakan, memohon tempoh ansuran 2 hingga 6 bulan, dan membuat bayaran dummy JomPAY selepas jadual ansuran manual disahkan oleh staff.

+ +
+
+
+
+
+
+
Jumlah Permohonan Demo
+
{{ $stats['applications'] }}
+
+
+
+
+
Data Harta
+
{{ $stats['property_accounts'] }}
+
+
+
+
+
Akaun Aktif
+
{{ $stats['active_cases'] }}
+
+
+
+
+ Biller Code JomPAY: 37317 +
+
+
+
+
+
+
+
+ +
+
+
+
+
+

Langkah Proses Ringkas

+
    +
  1. Daftar dan lengkapkan profil.
  2. +
  3. Masukkan No_Akaun_Tunggakan.
  4. +
  5. Pilih tempoh ansuran 2 hingga 6 bulan.
  6. +
  7. Staff semak dan masukkan amaun ansuran manual.
  8. +
  9. Buat bayaran dummy JomPAY.
  10. +
+
+
+
+
+
+

Panduan Bayaran Pertama

+ + + + + + +
KediamanMinimum 30%
IndustriMinimum 50%
PerdaganganMinimum 50%
+

Panduan ini hanya untuk rujukan. Amaun ansuran sebenar dimasukkan secara manual oleh staff.

+
+
+
+
+
+

Kelebihan Sistem

+
    +
  • Dashboard berasingan untuk Admin, Staff dan Pengguna Awam.
  • +
  • Modul import Excel data akaun tunggakan.
  • +
  • Rekod notifikasi, email dummy, laporan dan audit trail.
  • +
  • Print borang rasmi termasuk ulasan staff.
  • +
+
+
+
+
+@endsection diff --git a/src/resources/views/portal/payment.blade.php b/src/resources/views/portal/payment.blade.php new file mode 100644 index 0000000..9b43b89 --- /dev/null +++ b/src/resources/views/portal/payment.blade.php @@ -0,0 +1,75 @@ +@extends('layouts.app') + +@section('title', 'Pembayaran Dummy JomPAY') + +@section('content') +
+
+
+

Pembayaran Dummy JomPAY

+

Masukkan maklumat bil dan amaun pembayaran sebelum simulasi pembayaran berjaya.

+
+ @csrf + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ @foreach ([1,2,3,4,5,6,7,8,9,'.',0,'C'] as $key) +
+ +
+ @endforeach +
+
+
+ +
+
+
+
+
+
+

Maklumat Pembayar

+
Nama Pembayar: {{ auth()->user()->displayName() }}
+
Emel: {{ auth()->user()->email }}
+
No. Telefon: {{ auth()->user()->profile?->country_code }} {{ auth()->user()->profile?->mobile_no }}
+
Jumlah Amaun: RM {{ number_format((float) $defaultAmount, 2) }}
+
+
Klik nombor pada pad untuk mengemaskini amaun bayaran. Untuk demo, status bayaran akan direkodkan sebagai success.
+
+
+
+@endsection + +@push('styles') + +@endpush diff --git a/src/resources/views/portal/profile.blade.php b/src/resources/views/portal/profile.blade.php new file mode 100644 index 0000000..8773d20 --- /dev/null +++ b/src/resources/views/portal/profile.blade.php @@ -0,0 +1,73 @@ +@extends('layouts.app') + +@section('title', 'Profil Pengguna') + +@section('content') +
+
+
+

Pendaftaran Maklumat Pengguna Awam

+

Lengkapkan maklumat pemohon sebelum membuat permohonan ansuran.

+
+
+
+ @csrf + @method('PUT') +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+@endsection diff --git a/src/resources/views/portal/receipt.blade.php b/src/resources/views/portal/receipt.blade.php new file mode 100644 index 0000000..f2f8468 --- /dev/null +++ b/src/resources/views/portal/receipt.blade.php @@ -0,0 +1,30 @@ +@extends('layouts.app') + +@section('title', 'Resit Pembayaran') + +@section('content') +
+
+
+
+
+

Resit Pembayaran Dummy JomPAY

+

Sila simpan salinan ini untuk tujuan demo dan semakan dalaman.

+
+
+
No. Resit
{{ $payment->receipt_no }}
+
No. Transaksi
{{ $payment->transaction_no }}
+
Pembayar
{{ $payment->user->displayName() }}
+
Status
@include('components.status-badge', ['status' => $payment->status])
+
Akaun
{{ $payment->application->no_akaun }}
+
REF 2
{{ $payment->ref_2 }}
+
Jumlah Bayaran
RM {{ number_format((float) $payment->amount, 2) }}
+
+
+ Kembali ke Permohonan + +
+
+
+
+@endsection diff --git a/src/resources/views/print/application.blade.php b/src/resources/views/print/application.blade.php new file mode 100644 index 0000000..9adb501 --- /dev/null +++ b/src/resources/views/print/application.blade.php @@ -0,0 +1,141 @@ + + + + + Borang Permohonan Ansuran + + + +
+ +
+

BORANG PERMOHONAN BAYARAN CUKAI HARTA SECARA ANSURAN

+
No Permohonan: {{ $application->application_no }} | Tarikh: {{ $application->created_at->format('d/m/Y h:i A') }}
+ +
+

Maklumat Akaun

+ + + + + + + +
No Akaun{{ $application->no_akaun }}No Akaun Tunggakan{{ $application->no_akaun_tunggakan }}
Pemilik{{ $application->propertyAccount?->pemilik }}Taman{{ $application->propertyAccount?->taman }}
Rupacara{{ $application->propertyAccount?->rupacara }}Kadar{{ $application->propertyAccount?->kadar }}
No Lot{{ $application->no_lot ?: '-' }}No DHM{{ $application->no_dhm ?: '-' }}
No Syarikat{{ $application->no_syarikat ?: '-' }}Alamat Harta{{ $application->alamat_harta ?: '-' }}
TunggakanRM {{ number_format((float) $application->total_arrears, 2) }}Kategori Harta{{ $application->category }}
+
+ +
+

MAKLUMAT PEMOHON

+
+
Nama: {{ $application->user->displayName() }}
+
No. Kad Pengenalan / ID: {{ $application->identification_type }} - {{ $application->identification_number }}
+
No. Telefon: {{ $application->country_code }} {{ $application->mobile_no }}
+
Emel: {{ $application->email }}
+
Alamat Surat Menyurat: {{ $application->alamat_surat_menyurat }}
+
Alamat Harta: {{ $application->alamat_harta }}
+
Alamat Tempat Bekerja: {{ $application->alamat_tempat_bekerja ?: '-' }}
+
Pekerjaan: {{ $application->pekerjaan ?: '-' }}
+
Pendapatan Sebulan: {{ $application->pendapatan_sebulan ? 'RM '.number_format((float) $application->pendapatan_sebulan, 2) : '-' }}
+
+
+ +
+

Maklumat Permohonan

+ + + +
Tarikh Permohonan{{ $application->created_at->format('d/m/Y') }}Tempoh Ansuran{{ $application->installment_months }} bulan
Status Permohonan{{ ucfirst($application->status) }}Pegawai Penyemak{{ $application->reviewer?->displayName() ?: 'Belum disahkan' }}
+
+ +
+

Jadual Ansuran Manual

+ + + + + + + + + + + @forelse ($application->schedules as $schedule) + + + + + + + @empty + + @endforelse + +
Ansuran Ke-Tarikh BayaranAmaunStatus Bayaran
{{ $schedule->installment_no }}{{ optional($schedule->due_date)->format('d/m/Y') }}RM {{ number_format((float) $schedule->amount, 2) }}{{ ucfirst(str_replace('_', ' ', $schedule->payment_status)) }}
Tiada jadual ansuran direkodkan.
+
+ +
+

Rekod Pembayaran

+ + + + + + + + + + + + + + + @forelse ($application->payments->sortByDesc(fn ($payment) => $payment->paid_at ?? $payment->created_at) as $payment) + + + + + + + + + + + @empty + + @endforelse + +
Tarikh BayaranNo ResitNo TransaksiAnsuran Ke-REF 1REF 2AmaunStatus
{{ optional($payment->paid_at)->format('d/m/Y h:i A') ?: $payment->created_at->format('d/m/Y h:i A') }}{{ $payment->receipt_no ?: '-' }}{{ $payment->transaction_no ?: '-' }}{{ $payment->schedule?->installment_no ? 'Ansuran '.$payment->schedule->installment_no : '-' }}{{ $payment->ref_1 ?: '-' }}{{ $payment->ref_2 ?: '-' }}RM {{ number_format((float) $payment->amount, 2) }}{{ $payment->status === 'success' ? 'Berjaya' : ucfirst($payment->status) }}
Tiada rekod pembayaran direkodkan setakat ini.
+
+ +
+

Perakuan Pemohon

+

“Saya yang bertandatangan dibawah bersetuju dan berjanji akan menjelaskan bayaran cukai harta mengikut jadual ansuran yang telah diluluskan sebagaimana di bawah. Sekiranya saya gagal maka pihak Majlis Bandaraya Iskandar Puteri berhak membatalkan permohonan ini dan mengambil TINDAKAN SITAAN / UNDANG-UNDANG ke atas SAYA / PREMIS tanpa apa-apa notis lagi.”

+ + + +
Nama{{ $application->declaration_name }}Tarikh{{ $application->declaration_date->format('d/m/Y') }}
No ID{{ $application->declaration_identification_type }} - {{ $application->declaration_identification_number }}Status Tick{{ $application->declaration_accepted ? 'Ditanda' : 'Tidak Ditanda' }}
+
+ +
+

ULASAN STAFF / PEGAWAI PENYEMAK

+

{{ $application->staff_remarks ?: 'Tiada ulasan direkodkan.' }}

+
+ +
+
Tandatangan Pemohon
+
Tandatangan Staff / Pegawai Penyemak
+
Tarikh
+
+ + diff --git a/src/resources/views/shared/import-excel.blade.php b/src/resources/views/shared/import-excel.blade.php new file mode 100644 index 0000000..63e25f0 --- /dev/null +++ b/src/resources/views/shared/import-excel.blade.php @@ -0,0 +1,77 @@ +@extends('layouts.app') + +@section('title', $pageTitle) +@section('page-title', $pageTitle) +@section('page-label', 'Import Excel') + +@section('page-actions') + Download Template Excel +@endsection + +@section('content') +
+
+
+

Muat Naik dan Proses Fail

+

{{ $description }}

+
+ @if ($importType === 'tax') + Import ini hanya untuk Admin dan digunakan sebagai data cukai harta. Kolum penting: No_Bgnn, Nama_Jalan, Kadar, Cukai_Harta. + @else + Import ini digunakan oleh Staff untuk data tunggakan. Format tunggakan sedia ada dikekalkan. + @endif +
+

Format dibenarkan: xlsx, xls atau csv.

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

Sejarah Import

+
+ + + + + + + + + + + + + + + @forelse ($batches as $batch) + + + + + + + + + + + @empty + + @endforelse + +
BatchJenisFailDiprosesBaharuDikemaskiniTiada Dalam ImportGagal
#{{ $batch->id }}{{ $batch->import_type === 'tax' ? 'Cukai Harta' : 'Tunggakan' }} +
{{ $batch->filename }}
+
{{ $batch->created_at->format('d/m/Y h:i A') }}
+
{{ $batch->total_processed }}{{ $batch->total_new }}{{ $batch->total_updated }}{{ $batch->total_missing }}{{ $batch->total_failed }}
Belum ada sejarah import.
+
+
{{ $batches->links() }}
+
+
+
+@endsection diff --git a/src/resources/views/shared/page-header.blade.php b/src/resources/views/shared/page-header.blade.php new file mode 100644 index 0000000..a0a8e05 --- /dev/null +++ b/src/resources/views/shared/page-header.blade.php @@ -0,0 +1,12 @@ +
+
+
{{ $label ?? 'Maklumat Modul' }}
+

{{ $title }}

+ @if (! empty($subtitle)) +

{{ $subtitle }}

+ @endif +
+ @if (! empty($actions ?? null)) +
{!! $actions !!}
+ @endif +
diff --git a/src/resources/views/staff/application-show.blade.php b/src/resources/views/staff/application-show.blade.php new file mode 100644 index 0000000..e2fc2cd --- /dev/null +++ b/src/resources/views/staff/application-show.blade.php @@ -0,0 +1,396 @@ +@extends('layouts.app') + +@section('title', 'Semakan Permohonan Staff') +@section('page-title', 'Semakan Permohonan') +@section('page-label', 'Butiran Permohonan') + +@section('page-actions') + Print Borang +@endsection + +@section('content') + @php + $propertyTax = (float) ($application->propertyAccount?->cukai_harta ?? 0); + $propertyTaxHalf = $application->property_tax_half_amount !== null ? (float) $application->property_tax_half_amount : $propertyTax / 2; + $installmentTarget = (float) $application->total_arrears + $propertyTaxHalf; + @endphp + +
+
+
+
+
+
No Permohonan
+

{{ $application->application_no }}

+

Dihantar pada {{ $application->created_at->format('d/m/Y h:i A') }}

+
+ @include('components.status-badge', ['status' => $application->status]) +
+
+ Panduan bayaran pertama minimum bagi kategori {{ $application->category }}: + {{ $guidance?->guidanceRate() ?? 0 }}%. + Staff masih perlu memasukkan amaun ansuran secara manual. +
+
+
No Akaun:
{{ $application->no_akaun }}
+
No Akaun Tunggakan:
{{ $application->no_akaun_tunggakan }}
+
Kategori Harta:
{{ $application->category }}
+
Tempoh Ansuran Dipilih:
{{ $application->installment_months }} bulan
+
No Lot:
{{ $application->no_lot ?: '-' }}
+
No DHM:
{{ $application->no_dhm ?: '-' }}
+
No Syarikat:
{{ $application->no_syarikat ?: '-' }}
+
Jumlah Tunggakan:
RM {{ number_format((float) $application->total_arrears, 2, '.', '') }}
+
Cukai Harta:
RM {{ number_format($propertyTax, 2) }}
+
Cukai Harta / 2:
RM {{ number_format($propertyTaxHalf, 2) }}
+
Jumlah Ansuran:
RM {{ number_format($installmentTarget, 2) }}
+
Jumlah Jadual Semasa:
RM {{ number_format((float) $application->schedule_total, 2) }}
+
+
+ +
+

Maklumat Pemohon

+
+
Nama Pemohon
{{ $application->user->displayName() }}
+
Identification Type
{{ $application->identification_type }}
+
Identification Number
{{ $application->identification_number }}
+
No. Telefon / Contact Number
{{ $application->country_code }} {{ $application->mobile_no }}
+
Emel
{{ $application->email }}
+
Alamat Surat Menyurat
{{ $application->alamat_surat_menyurat }}
+
Alamat Harta
{{ $application->alamat_harta }}
+
Alamat Tempat Bekerja
{{ $application->alamat_tempat_bekerja ?: '-' }}
+
Pekerjaan
{{ $application->pekerjaan ?: '-' }}
+
Pendapatan Sebulan
{{ $application->pendapatan_sebulan ? 'RM '.number_format((float) $application->pendapatan_sebulan, 2) : '-' }}
+
+
+ +
+

Rekod Pembayaran

+
+ + + + + + + + + + + + + + + @forelse ($application->payments->sortByDesc(fn ($payment) => $payment->paid_at ?? $payment->created_at) as $payment) + + + + + + + + + + + @empty + + @endforelse + +
Tarikh BayaranNo ResitNo TransaksiAnsuran Ke-REF 1REF 2AmaunStatus
{{ optional($payment->paid_at)->format('d/m/Y h:i A') ?: $payment->created_at->format('d/m/Y h:i A') }}{{ $payment->receipt_no ?: '-' }}{{ $payment->transaction_no ?: '-' }}{{ $payment->schedule?->installment_no ? 'Ansuran '.$payment->schedule->installment_no : '-' }}{{ $payment->ref_1 ?: '-' }}{{ $payment->ref_2 ?: '-' }}RM {{ number_format((float) $payment->amount, 2) }}@include('components.status-badge', ['status' => $payment->status])
Tiada rekod pembayaran direkodkan setakat ini.
+
+
+ +
+

Maklumat Akaun & Sejarah

+
+
Pemilik
{{ $application->propertyAccount?->pemilik }}
+
Bandar / Taman
{{ $application->propertyAccount?->bandar }} / {{ $application->propertyAccount?->taman }}
+
Rupacara
{{ $application->propertyAccount?->rupacara }}
+
Kadar
{{ $application->propertyAccount?->kadar }}
+
Cukai Harta
RM {{ number_format($propertyTax, 2) }}
+
+
+ + + + + + + + + + + + @forelse ($application->histories as $history) + + + + + + + + @empty + + @endforelse + +
TindakanStatus LamaStatus BaharuUlasanTarikh
{{ str($history->action)->replace('_', ' ')->headline() }}{{ $history->old_status ?: '-' }}{{ $history->new_status ?: '-' }}{{ $history->remarks ?: '-' }}{{ $history->created_at->format('d/m/Y h:i A') }}
Belum ada sejarah tindakan.
+
+
+
+ +
+ @php($recordableSchedules = $application->schedules->whereIn('payment_status', ['belum_bayar', 'lewat'])->sortBy('installment_no')->values()) +
+

Input Manual Ansuran Oleh Staff

+
+ @csrf + @if ($errors->has('schedules') || $errors->has('staff_remarks')) +
+ Sila semak semula input ansuran manual dan ulasan staff sebelum simpan. +
+ @endif + +
+
+ + + @error('total_arrears') +
{{ $message }}
+ @enderror +
+
+ + + @error('property_tax_half_amount') +
{{ $message }}
+ @enderror +
Autofill daripada Cukai Harta / 2, tetapi staff boleh ubah jika perlu.
+
+
+
+ Jumlah Ansuran = Jumlah Tunggakan + (Cukai Harta / 2) +
+ Jumlah Ansuran semasa: RM {{ number_format($installmentTarget, 2) }} +
+
+
+ +
+ + + + + + + + + + + @foreach ($scheduleRows as $index => $row) + + + + + + + @endforeach + +
AnsuranTarikh BayaranAmaun AnsuranCatatan
+
{{ $index === 0 ? 'Bayaran Pertama' : 'Bayaran Bulan Ke-'.($index + 1) }}
+
Ansuran {{ $row['installment_no'] }}
+
+ + + + + +
+
+ +
+ Jumlah ansuran semasa: RM 0.00 +
+ +
+ + +
+ +
+ + @php($selectedAction = old('action', $application->status === 'diproses' ? 'processing' : ($application->status === 'aktif' ? 'active' : 'none'))) + + @error('action') +
{{ $message }}
+ @enderror +
+ + +
+
+ +
+

Rekod Bayaran Manual

+

Digunakan apabila bayaran diterima secara manual tanpa integrasi API. Staff perlu key-in nombor resit untuk tujuan rekod database.

+ + @error('manual_payment') +
{{ $message }}
+ @enderror + + @if ($application->status !== 'aktif') +
+ Rekod bayaran manual hanya dibenarkan selepas staff mengesahkan akaun sebagai aktif. +
+ @elseif ($recordableSchedules->isEmpty()) +
+ Semua ansuran untuk akaun ini telah direkodkan sebagai dibayar. +
+ @else +
+ @csrf +
+ + + @error('installment_schedule_id') +
{{ $message }}
+ @enderror +
+ +
+
+ + + @error('receipt_no') +
{{ $message }}
+ @enderror +
+
+ + + @error('transaction_no') +
{{ $message }}
+ @enderror +
+
+ + + @error('amount') +
{{ $message }}
+ @enderror +
+
+ + + @error('paid_at') +
{{ $message }}
+ @enderror +
+
+ +
+ + + @error('remarks') +
{{ $message }}
+ @enderror +
+ +
+ REF 1 akan menggunakan {{ $application->no_akaun }} dan REF 2 akan menggunakan emel atau nombor telefon pemohon secara automatik. +
+ + +
+ @endif +
+
+
+@endsection + +@push('styles') + +@endpush diff --git a/src/resources/views/staff/applications-index.blade.php b/src/resources/views/staff/applications-index.blade.php new file mode 100644 index 0000000..0b8a727 --- /dev/null +++ b/src/resources/views/staff/applications-index.blade.php @@ -0,0 +1,76 @@ +@extends('layouts.app') + +@section('title', 'Permohonan Staff') +@section('page-title', 'Permohonan Ansuran') +@section('page-label', 'Modul Staff') + +@section('page-actions') + Eksport Excel +@endsection + +@section('content') +
+
+ Hanya akaun berstatus diproses dan aktif dipaparkan untuk semakan staff. Akaun batal, gagal, dan selesai kekal dalam sejarah, database, dan kemas kini Excel. +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ + + + + + + + + + + + + + @forelse ($applications as $application) + + + + + + + + + + @empty + + @endforelse + +
No PermohonanPemohonNo Akaun TunggakanKategoriTempohStatus
{{ $application->application_no }}{{ $application->user->displayName() }}{{ $application->no_akaun_tunggakan }}{{ $application->category }}{{ $application->installment_months }} bulan@include('components.status-badge', ['status' => $application->status])Semak Detail
Tiada rekod ditemui.
+
+
{{ $applications->links() }}
+
+@endsection diff --git a/src/resources/views/staff/bulk-payments-index.blade.php b/src/resources/views/staff/bulk-payments-index.blade.php new file mode 100644 index 0000000..e0aa24b --- /dev/null +++ b/src/resources/views/staff/bulk-payments-index.blade.php @@ -0,0 +1,183 @@ +@extends('layouts.app') + +@section('title', 'Kemaskini Bayaran Pukal') +@section('page-title', 'Kemaskini Bayaran Pukal') +@section('page-label', 'Modul Staff') + +@section('page-actions') + + Download Template Excel + +@endsection + +@section('content') +
+
+
+
+
Akaun Aktif
+
{{ $activeAccountCount }}
+
Akaun ansuran yang sedang aktif.
+
+
+
+
+
+
Ansuran Dalam Excel
+
{{ $activeSchedules->count() }}
+
{{ $unpaidScheduleCount }} belum bayar, {{ $paidScheduleCount }} sudah dibayar.
+
+
+
+
+
+
Jumlah Belum Direkod
+
RM {{ number_format($totalUnpaidAmount, 2) }}
+
Jumlah ansuran aktif yang belum dibayar.
+
+
+
+ +
+
+
+

Upload Excel/CSV Bayaran

+

+ Gunakan template daripada sistem supaya setiap baris mempunyai Installment_Schedule_ID, + No_Akaun dan Ansuran_Ke. Staff hanya perlu isi No_Resit, Tarikh_Bayaran, + Amaun_Bayaran dan catatan jika perlu. Baris yang sudah dibayar akan membawa transaksi sedia ada untuk semakan atau kemaskini. +

+ +
+ Hanya akaun berstatus aktif akan diproses. Ansuran belum bayar/lewat + akan direkodkan sebagai bayaran baharu, manakala ansuran dibayar akan mengemaskini + transaksi bayaran sedia ada dalam database. +
+ +
+ @csrf +
+ + + @error('file') +
{{ $message }}
+ @enderror +
+ + +
+
+
+ +
+
+

Ringkasan Proses Terakhir

+ + @if ($importResult) +
+
+
+
Diproses
+
{{ $importResult['processed'] }}
+
+
+
+
+
Berjaya
+
{{ $importResult['success'] }}
+
+
+
+
+
Gagal
+
{{ $importResult['failed'] }}
+
+
+
+
+
Diabaikan
+
{{ $importResult['skipped'] }}
+
+
+
+ + @if (! empty($importResult['errors'])) +
+
Ralat yang perlu disemak
+
    + @foreach ($importResult['errors'] as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @else +
+ Semua baris bayaran yang lengkap berjaya dikemaskini. +
+ @endif + @else +
+ Belum ada proses upload bayaran pukal dalam sesi ini. +
+ @endif +
+
+
+ +
+
+
+

Senarai Ansuran Aktif Untuk Template

+
Paparan ini menunjukkan ansuran akaun aktif termasuk transaksi yang sudah dibayar.
+
+ + Download Template + +
+ +
+ + + + + + + + + + + + + + + + @forelse ($activeSchedules as $schedule) + @php($payment = $schedule->payments->sortByDesc(fn ($item) => $item->paid_at?->timestamp ?? $item->id)->first()) + + + + + + + + + + + + @empty + + + + @endforelse + +
No AkaunNo PermohonanPemohonAnsuranTarikh JadualAmaunStatusNo ResitNo Transaksi
+
{{ $schedule->application?->no_akaun }}
+
{{ $schedule->application?->no_akaun_tunggakan }}
+
{{ $schedule->application?->application_no }}{{ $schedule->application?->user?->displayName() }}Ansuran {{ $schedule->installment_no }}{{ optional($schedule->due_date)->format('d/m/Y') ?: '-' }}RM {{ number_format((float) $schedule->amount, 2) }}@include('components.status-badge', ['status' => $schedule->payment_status]){{ $payment?->receipt_no ?: '-' }}{{ $payment?->transaction_no ?: '-' }}
+ Tiada ansuran akaun aktif setakat ini. +
+
+
+@endsection diff --git a/src/resources/views/staff/dashboard.blade.php b/src/resources/views/staff/dashboard.blade.php new file mode 100644 index 0000000..cd83e13 --- /dev/null +++ b/src/resources/views/staff/dashboard.blade.php @@ -0,0 +1,62 @@ +@extends('layouts.app') + +@section('title', 'Dashboard Staff') +@section('page-title', 'Dashboard Staff') +@section('page-label', 'Pengurusan Permohonan') + +@section('content') +
+ @foreach ([ + ['label' => 'Akaun Boleh Disemak', 'value' => $stats['reviewable'], 'icon' => 'bi-clipboard2-check'], + ['label' => 'Akaun Diproses', 'value' => $stats['processing'], 'icon' => 'bi-hourglass-top'], + ['label' => 'Akaun Aktif', 'value' => $stats['active'], 'icon' => 'bi-check2-circle'], + ['label' => 'Tugasan Belum Selesai', 'value' => $stats['pending_tasks'], 'icon' => 'bi-list-task'], + ] as $card) +
+
+
+
+
{{ $card['label'] }}
+
{{ $card['value'] }}
+
+
+
+
+
+ @endforeach +
+ +
+
+

Senarai Akaun Boleh Disemak

+ Lihat Semua +
+
+ Akaun berstatus diproses dan aktif sahaja dipaparkan di dashboard staff. Akaun batal, gagal, dan selesai kekal dalam sejarah, database, dan kemas kini Excel tetapi tidak dipaparkan untuk semakan staff. +
+
+ + + + + + + + + + + + @foreach ($applications as $application) + + + + + + + + @endforeach + +
No PermohonanPemohonNo Akaun TunggakanStatus
{{ $application->application_no }}{{ $application->user->displayName() }}{{ $application->no_akaun_tunggakan }}@include('components.status-badge', ['status' => $application->status])Semak
+
+
+@endsection diff --git a/src/resources/views/welcome.blade.php b/src/resources/views/welcome.blade.php new file mode 100644 index 0000000..26e294a --- /dev/null +++ b/src/resources/views/welcome.blade.php @@ -0,0 +1,223 @@ + + + + + + + {{ config('app.name', 'Laravel') }} + + @fonts + + + @if (file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot'))) + @vite(['resources/css/app.css', 'resources/js/app.js']) + @else + + @endif + + +
+ @if (Route::has('login')) + + @endif +
+
+
+
+

Let's get started

+

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

+ + + +

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

+
+
+ {{-- Laravel Logo --}} + + + + + + + + + + + {{-- 13 --}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + @if (Route::has('login')) + + @endif + + diff --git a/src/routes/console.php b/src/routes/console.php new file mode 100644 index 0000000..3c9adf1 --- /dev/null +++ b/src/routes/console.php @@ -0,0 +1,8 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); diff --git a/src/routes/web.php b/src/routes/web.php new file mode 100644 index 0000000..fb19253 --- /dev/null +++ b/src/routes/web.php @@ -0,0 +1,108 @@ +name('home'); + +Route::middleware('guest')->group(function () { + Route::get('/login', [AuthController::class, 'showLogin'])->name('login'); + Route::post('/login', [AuthController::class, 'login'])->name('login.store'); + Route::get('/register', [AuthController::class, 'showRegister'])->name('register'); + Route::post('/register', [AuthController::class, 'register'])->name('register.store'); +}); + +Route::post('/logout', [AuthController::class, 'logout'])->middleware('auth')->name('logout'); + +Route::middleware(['auth', 'role:public'])->prefix('portal')->name('portal.')->group(function () { + Route::get('/dashboard', [PortalDashboardController::class, 'index'])->name('dashboard'); + + Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); + Route::put('/profile', [ProfileController::class, 'update'])->name('profile.update'); + + Route::middleware('profile.completed')->group(function () { + Route::get('/applications', [PortalApplicationController::class, 'index'])->name('applications.index'); + Route::get('/applications/create', [PortalApplicationController::class, 'create'])->name('applications.create'); + Route::post('/applications', [PortalApplicationController::class, 'store'])->name('applications.store'); + Route::get('/applications/{application}', [PortalApplicationController::class, 'show'])->name('applications.show'); + Route::get('/lookup-property-account', [PortalApplicationController::class, 'lookup'])->name('applications.lookup'); + + Route::get('/applications/{application}/payments/create', [PaymentController::class, 'create'])->name('payments.create'); + Route::post('/applications/{application}/payments', [PaymentController::class, 'store'])->name('payments.store'); + Route::get('/payments/{payment}/receipt', [PaymentController::class, 'receipt'])->name('payments.receipt'); + }); +}); + +Route::middleware(['auth', 'role:staff'])->prefix('staff')->name('staff.')->group(function () { + Route::get('/dashboard', [StaffDashboardController::class, 'index'])->name('dashboard'); + + Route::get('/applications', [StaffApplicationController::class, 'index'])->name('applications.index'); + Route::get('/applications/export', [StaffApplicationController::class, 'export'])->name('applications.export'); + Route::get('/applications/{application}', [StaffApplicationController::class, 'show'])->name('applications.show'); + Route::post('/applications/{application}/review', [StaffApplicationController::class, 'review'])->name('applications.review'); + Route::post('/applications/{application}/payments', [StaffApplicationController::class, 'storeManualPayment'])->name('applications.payments.store'); + Route::get('/applications/{application}/print', [StaffApplicationController::class, 'print'])->name('applications.print'); + + Route::get('/bulk-payments', [BulkPaymentController::class, 'index'])->name('bulk-payments.index'); + Route::post('/bulk-payments', [BulkPaymentController::class, 'store'])->name('bulk-payments.store'); + Route::get('/bulk-payments/template', [BulkPaymentController::class, 'downloadTemplate'])->name('bulk-payments.template'); + + Route::get('/import-excel', [PropertyAccountImportController::class, 'index'])->name('import.index'); + Route::post('/import-excel', [PropertyAccountImportController::class, 'store'])->name('import.store'); +}); + +Route::middleware(['auth', 'role:admin'])->prefix('admin')->name('admin.')->group(function () { + Route::get('/dashboard', [AdminDashboardController::class, 'index'])->name('dashboard'); + + Route::get('/users', [UserController::class, 'index'])->name('users.index'); + Route::get('/users/create', [UserController::class, 'create'])->name('users.create'); + Route::post('/users', [UserController::class, 'store'])->name('users.store'); + Route::get('/users/{user}/edit', [UserController::class, 'edit'])->name('users.edit'); + Route::put('/users/{user}', [UserController::class, 'update'])->name('users.update'); + Route::post('/users/{user}/reset-password', [UserController::class, 'resetPassword'])->name('users.reset-password'); + Route::post('/users/{user}/toggle', [UserController::class, 'toggle'])->name('users.toggle'); + + Route::get('/roles', [AdminModuleController::class, 'roles'])->name('roles.index'); + + Route::get('/applications', [AdminApplicationController::class, 'index'])->name('applications.index'); + Route::get('/applications/export', [AdminApplicationController::class, 'export'])->name('applications.export'); + Route::get('/applications/{application}', [AdminApplicationController::class, 'show'])->name('applications.show'); + Route::get('/applications/{application}/print', [AdminApplicationController::class, 'print'])->name('applications.print'); + + Route::get('/installment-accounts', [AdminModuleController::class, 'installmentAccounts'])->name('installment-accounts.index'); + Route::get('/payments', [AdminModuleController::class, 'payments'])->name('payments.index'); + Route::get('/tasks', [AdminModuleController::class, 'tasks'])->name('tasks.index'); + Route::get('/communications', [AdminModuleController::class, 'communications'])->name('communications.index'); + + Route::resource('/property-accounts', PropertyAccountController::class)->except(['show'])->names('property-accounts'); + Route::get('/import-excel', [PropertyAccountImportController::class, 'index'])->name('import.index'); + Route::post('/import-excel', [PropertyAccountImportController::class, 'store'])->name('import.store'); + + Route::get('/settings', [SettingController::class, 'index'])->name('settings.index'); + Route::put('/settings', [SettingController::class, 'update'])->name('settings.update'); + + Route::get('/reports', [ReportController::class, 'index'])->name('reports.index'); + Route::get('/reports/export-applications', [ReportController::class, 'exportApplications'])->name('reports.export-applications'); + Route::get('/reports/export-payments', [ReportController::class, 'exportPayments'])->name('reports.export-payments'); + Route::get('/reports/print', [ReportController::class, 'print'])->name('reports.print'); + + Route::get('/audit-trail', [AuditTrailController::class, 'index'])->name('audit-trail.index'); +}); + +Route::get('/import-template/property-accounts', [PropertyAccountImportController::class, 'downloadTemplate'])->name('import.template'); diff --git a/src/storage/app/.gitignore b/src/storage/app/.gitignore new file mode 100644 index 0000000..fedb287 --- /dev/null +++ b/src/storage/app/.gitignore @@ -0,0 +1,4 @@ +* +!private/ +!public/ +!.gitignore diff --git a/src/storage/app/private/.gitignore b/src/storage/app/private/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/src/storage/app/private/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/storage/app/public/.gitignore b/src/storage/app/public/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/src/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/storage/framework/.gitignore b/src/storage/framework/.gitignore new file mode 100644 index 0000000..05c4471 --- /dev/null +++ b/src/storage/framework/.gitignore @@ -0,0 +1,9 @@ +compiled.php +config.php +down +events.scanned.php +maintenance.php +routes.php +routes.scanned.php +schedule-* +services.json diff --git a/src/storage/framework/cache/.gitignore b/src/storage/framework/cache/.gitignore new file mode 100644 index 0000000..01e4a6c --- /dev/null +++ b/src/storage/framework/cache/.gitignore @@ -0,0 +1,3 @@ +* +!data/ +!.gitignore diff --git a/src/storage/framework/cache/data/.gitignore b/src/storage/framework/cache/data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/src/storage/framework/cache/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/storage/framework/sessions/.gitignore b/src/storage/framework/sessions/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/src/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/storage/framework/testing/.gitignore b/src/storage/framework/testing/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/src/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/storage/framework/views/.gitignore b/src/storage/framework/views/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/src/storage/framework/views/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/storage/logs/.gitignore b/src/storage/logs/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/src/storage/logs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/src/tests/Feature/ExampleTest.php b/src/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..2920d57 --- /dev/null +++ b/src/tests/Feature/ExampleTest.php @@ -0,0 +1,23 @@ +seed(); + + $response = $this->get('/'); + + $response->assertStatus(200); + } +} diff --git a/src/tests/Feature/MyAnsuranFlowTest.php b/src/tests/Feature/MyAnsuranFlowTest.php new file mode 100644 index 0000000..2f3df49 --- /dev/null +++ b/src/tests/Feature/MyAnsuranFlowTest.php @@ -0,0 +1,796 @@ +seed(); + } + + public function test_demo_roles_can_login_and_open_their_dashboards(): void + { + $this->post(route('login.store'), [ + 'email' => 'admin@myansuran.test', + 'password' => 'password', + ])->assertRedirect(route('admin.dashboard')); + + $this->post(route('logout')); + + $this->post(route('login.store'), [ + 'email' => 'staff@myansuran.test', + 'password' => 'password', + ])->assertRedirect(route('staff.dashboard')); + + $this->post(route('logout')); + + $this->post(route('login.store'), [ + 'email' => 'user@myansuran.test', + 'password' => 'password', + ])->assertRedirect(route('portal.dashboard')); + } + + public function test_public_user_can_submit_a_new_installment_application(): void + { + Storage::disk('local')->delete(ApplicationInformationExcelService::EXPORT_PATH); + + $user = User::where('email', 'user@myansuran.test')->firstOrFail(); + $account = PropertyAccount::where('no_akaun_tunggakan', 'NBE1005')->firstOrFail(); + $formattedAddress = $account->no_bgnn.', '.$account->nama_jalan; + + $response = $this->actingAs($user)->post(route('portal.applications.store'), [ + 'property_account_id' => $account->id, + 'no_akaun_tunggakan' => $account->no_akaun_tunggakan, + 'category' => 'Industri', + 'installment_months' => 5, + 'identification_type' => 'MyKad', + 'identification_number' => '920101-01-2345', + 'no_lot' => 'PTD 12345', + 'no_dhm' => 'DHM Khas', + 'no_syarikat' => '201901234567', + 'alamat_harta' => 'Alamat manual tidak digunakan', + 'alamat_surat_menyurat' => 'No. 88, Jalan Setia 3, Taman Setia Indah, Johor Bahru, Johor', + 'country_code' => '+60', + 'mobile_no' => '123456789', + 'email' => $user->email, + 'alamat_tempat_bekerja' => 'Pejabat Pengurusan BizHub, Iskandar Puteri, Johor', + 'pekerjaan' => 'Eksekutif Operasi', + 'pendapatan_sebulan' => 4200, + 'declaration_name' => 'Nur Balqis Binti Rahman', + 'declaration_identification_type' => 'MyKad', + 'declaration_identification_number' => '920101-01-2345', + 'declaration_date' => now()->format('Y-m-d'), + 'declaration_accepted' => '1', + ]); + + $response->assertRedirect(route('portal.applications.index')); + + $this->assertDatabaseHas('installment_applications', [ + 'no_akaun_tunggakan' => 'NBE1005', + 'status' => 'diproses', + 'installment_months' => 5, + 'no_lot' => $account->no_lot, + 'no_dhm' => 'DHM Khas', + 'no_syarikat' => '201901234567', + 'alamat_harta' => $formattedAddress, + ]); + + Storage::disk('local')->assertExists(ApplicationInformationExcelService::EXPORT_PATH); + } + + public function test_public_application_create_page_shows_step_by_step_flow(): void + { + $user = User::where('email', 'user@myansuran.test')->firstOrFail(); + + $response = $this->actingAs($user)->get(route('portal.applications.create')); + + $response->assertOk(); + $response->assertSee('Semakan No_Akaun_Tunggakan', false); + $response->assertSee('Borang Permohonan Bayaran Cukai Harta Secara Ansuran', false); + $response->assertSee('Teks Perakuan Pemohon', false); + $response->assertSee('Rupacara', false); + $response->assertSee('No_Lot', false); + $response->assertSee('No_DHM', false); + $response->assertSee('Status Akaun Terkini', false); + $response->assertDontSee('Jenis_Lot', false); + $response->assertDontSee('Jenis_DHM', false); + $response->assertSee('Seterusnya', false); + } + + public function test_portal_lookup_only_accepts_no_akaun_tunggakan(): void + { + $user = User::where('email', 'user@myansuran.test')->firstOrFail(); + $account = PropertyAccount::query()->firstOrFail(); + + $this->actingAs($user) + ->getJson(route('portal.applications.lookup', ['no_akaun_tunggakan' => $account->no_akaun])) + ->assertNotFound(); + + $this->actingAs($user) + ->getJson(route('portal.applications.lookup', ['no_akaun_tunggakan' => $account->no_akaun_tunggakan])) + ->assertOk() + ->assertJsonPath('id', $account->id) + ->assertJsonPath('no_akaun', $account->no_akaun) + ->assertJsonPath('no_akaun_tunggakan', $account->no_akaun_tunggakan) + ->assertJsonPath('alamat_harta', $account->no_bgnn.', '.$account->nama_jalan); + } + + public function test_portal_lookup_returns_latest_account_application_status(): void + { + $user = User::where('email', 'user@myansuran.test')->firstOrFail(); + + foreach ([ + 'NBE1001' => 'Akaun Aktif', + 'NBE1002' => 'Akaun Diproses', + 'NBE1004' => 'Akaun Selesai', + ] as $noAkaunTunggakan => $expectedLabel) { + $this->actingAs($user) + ->getJson(route('portal.applications.lookup', ['no_akaun_tunggakan' => $noAkaunTunggakan])) + ->assertOk() + ->assertJsonPath('account_status.label', $expectedLabel) + ->assertJsonPath('can_continue', false); + } + + $this->actingAs($user) + ->getJson(route('portal.applications.lookup', ['no_akaun_tunggakan' => 'NBE1003'])) + ->assertOk() + ->assertJsonPath('account_status.label', 'Akaun Gagal') + ->assertJsonPath('can_continue', true); + } + + public function test_public_user_cannot_submit_new_application_for_processing_active_or_completed_account(): void + { + $user = User::where('email', 'user@myansuran.test')->firstOrFail(); + + foreach (['NBE1001', 'NBE1002', 'NBE1004'] as $noAkaunTunggakan) { + $account = PropertyAccount::where('no_akaun_tunggakan', $noAkaunTunggakan)->firstOrFail(); + $existingCount = InstallmentApplication::where('no_akaun_tunggakan', $noAkaunTunggakan)->count(); + + $response = $this->actingAs($user) + ->from(route('portal.applications.create')) + ->post(route('portal.applications.store'), [ + 'property_account_id' => $account->id, + 'no_akaun_tunggakan' => $account->no_akaun_tunggakan, + 'category' => 'Kediaman', + 'installment_months' => 3, + 'identification_type' => 'MyKad', + 'identification_number' => '920101-01-2345', + 'alamat_harta' => $account->no_bgnn.', '.$account->nama_jalan, + 'alamat_surat_menyurat' => 'No. 88, Jalan Setia 3, Taman Setia Indah, Johor Bahru, Johor', + 'country_code' => '+60', + 'mobile_no' => '123456789', + 'email' => $user->email, + 'declaration_name' => 'Nur Balqis Binti Rahman', + 'declaration_identification_type' => 'MyKad', + 'declaration_identification_number' => '920101-01-2345', + 'declaration_date' => now()->format('Y-m-d'), + 'declaration_accepted' => '1', + ]); + + $response->assertRedirect(route('portal.applications.create')); + $response->assertSessionHasErrors('no_akaun_tunggakan'); + + $this->assertSame($existingCount, InstallmentApplication::where('no_akaun_tunggakan', $noAkaunTunggakan)->count()); + } + } + + public function test_staff_can_mark_processing_application_as_active_with_manual_schedule(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::with('propertyAccount')->where('application_no', 'MYA-202605-0002')->firstOrFail(); + $totalArrears = 5000.00; + $propertyTaxHalfAmount = 777.75; + $targetTotal = $totalArrears + $propertyTaxHalfAmount; + + $response = $this->actingAs($staff)->post(route('staff.applications.review', $application), [ + 'action' => 'active', + 'total_arrears' => $totalArrears, + 'property_tax_half_amount' => $propertyTaxHalfAmount, + 'staff_remarks' => 'Jadual ansuran manual diluluskan untuk pengguna.', + 'schedules' => [ + ['due_date' => now()->addWeek()->format('Y-m-d'), 'amount' => 2500, 'notes' => 'Bayaran pertama'], + ['due_date' => now()->addMonth()->format('Y-m-d'), 'amount' => 1500, 'notes' => 'Bayaran kedua'], + ['due_date' => now()->addMonths(2)->format('Y-m-d'), 'amount' => round($targetTotal - 4000, 2), 'notes' => 'Bayaran ketiga'], + ], + ]); + + $response->assertSessionHas('success'); + + $this->assertDatabaseHas('installment_applications', [ + 'id' => $application->id, + 'status' => 'aktif', + 'total_arrears' => $totalArrears, + 'property_tax_half_amount' => $propertyTaxHalfAmount, + 'schedule_status' => 'disahkan', + 'schedule_total' => $targetTotal, + ]); + + $this->assertDatabaseCount('installment_schedules', 9); + } + + public function test_staff_cannot_mark_account_active_when_manual_schedule_total_is_invalid(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0002')->firstOrFail(); + + $response = $this->actingAs($staff)->from(route('staff.applications.show', $application)) + ->post(route('staff.applications.review', $application), [ + 'action' => 'active', + 'staff_remarks' => 'Cuba sahkan jadual yang tidak lengkap.', + 'schedules' => [ + ['due_date' => now()->addWeek()->format('Y-m-d'), 'amount' => 1000], + ['due_date' => now()->addMonth()->format('Y-m-d'), 'amount' => 1000], + ['due_date' => now()->addMonths(2)->format('Y-m-d'), 'amount' => 1000], + ], + ]); + + $response->assertRedirect(route('staff.applications.show', $application)); + $response->assertSessionHasErrors('schedules'); + + $this->assertDatabaseHas('installment_applications', [ + 'id' => $application->id, + 'status' => 'diproses', + 'schedule_status' => 'draf', + 'schedule_total' => 3000, + ]); + } + + public function test_staff_can_keep_account_as_processing(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0002')->firstOrFail(); + + $response = $this->actingAs($staff)->post(route('staff.applications.review', $application), [ + 'action' => 'processing', + 'staff_remarks' => 'Permohonan masih dalam semakan pegawai.', + 'schedules' => [ + ['due_date' => now()->addWeek()->format('Y-m-d'), 'amount' => 1000], + ['due_date' => now()->addMonth()->format('Y-m-d'), 'amount' => 1000], + ['due_date' => now()->addMonths(2)->format('Y-m-d'), 'amount' => 1000], + ], + ]); + + $response->assertSessionHas('success', 'Akaun berjaya ditetapkan sebagai diproses.'); + + $this->assertDatabaseHas('installment_applications', [ + 'id' => $application->id, + 'status' => 'diproses', + 'schedule_status' => 'draf', + 'schedule_total' => 3000, + 'staff_remarks' => 'Permohonan masih dalam semakan pegawai.', + ]); + + $this->assertDatabaseHas('application_histories', [ + 'installment_application_id' => $application->id, + 'action' => 'akaun_diproses', + 'new_status' => 'diproses', + ]); + } + + public function test_staff_can_cancel_reviewable_account(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0002')->firstOrFail(); + + $response = $this->actingAs($staff)->post(route('staff.applications.review', $application), [ + 'action' => 'cancel', + 'staff_remarks' => 'Pemohon menarik balik permohonan ansuran.', + 'schedules' => [], + ]); + + $response->assertRedirect(route('staff.applications.index')); + $response->assertSessionHas('success', 'Akaun berjaya dibatalkan.'); + + $this->assertDatabaseHas('installment_applications', [ + 'id' => $application->id, + 'status' => 'batal', + 'staff_remarks' => 'Pemohon menarik balik permohonan ansuran.', + ]); + + $this->assertDatabaseHas('application_histories', [ + 'installment_application_id' => $application->id, + 'action' => 'akaun_dibatalkan', + 'new_status' => 'batal', + ]); + } + + public function test_staff_can_mark_reviewable_account_as_failed(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0002')->firstOrFail(); + + $response = $this->actingAs($staff)->post(route('staff.applications.review', $application), [ + 'action' => 'failed', + 'staff_remarks' => 'Permohonan gagal kerana dokumen sokongan tidak lengkap.', + 'schedules' => [], + ]); + + $response->assertRedirect(route('staff.applications.index')); + $response->assertSessionHas('success', 'Akaun berjaya disahkan gagal.'); + + $this->assertDatabaseHas('installment_applications', [ + 'id' => $application->id, + 'status' => 'gagal', + 'staff_remarks' => 'Permohonan gagal kerana dokumen sokongan tidak lengkap.', + ]); + + $this->assertDatabaseHas('application_histories', [ + 'installment_application_id' => $application->id, + 'action' => 'akaun_gagal', + 'new_status' => 'gagal', + ]); + } + + public function test_staff_can_complete_active_account_after_all_installments_are_paid(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0001')->firstOrFail(); + $application->schedules()->update(['payment_status' => 'dibayar', 'paid_at' => now()]); + + $response = $this->actingAs($staff)->post(route('staff.applications.review', $application), [ + 'action' => 'complete', + 'staff_remarks' => 'Semua bayaran ansuran telah disemak dan lengkap.', + 'schedules' => [], + ]); + + $response->assertRedirect(route('staff.applications.index')); + $response->assertSessionHas('success', 'Akaun berjaya disahkan selesai.'); + + $this->assertDatabaseHas('installment_applications', [ + 'id' => $application->id, + 'status' => 'selesai', + 'staff_remarks' => 'Semua bayaran ansuran telah disemak dan lengkap.', + ]); + } + + public function test_staff_cannot_complete_account_before_all_installments_are_paid(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0001')->firstOrFail(); + + $response = $this->actingAs($staff) + ->from(route('staff.applications.show', $application)) + ->post(route('staff.applications.review', $application), [ + 'action' => 'complete', + 'staff_remarks' => 'Cuba selesaikan sebelum semua ansuran dibayar.', + 'schedules' => [], + ]); + + $response->assertRedirect(route('staff.applications.show', $application)); + $response->assertSessionHasErrors('action'); + + $this->assertDatabaseHas('installment_applications', [ + 'id' => $application->id, + 'status' => 'aktif', + ]); + } + + public function test_public_user_can_pay_confirmed_schedule_using_dummy_jompay(): void + { + $user = User::where('email', 'user@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0001')->firstOrFail(); + $schedule = $application->schedules()->where('payment_status', 'belum_bayar')->firstOrFail(); + + $response = $this->actingAs($user)->post(route('portal.payments.store', $application), [ + 'schedule_id' => $schedule->id, + 'biller_code' => '37317', + 'ref_1' => $application->no_akaun, + 'ref_2' => $user->email, + 'amount' => $schedule->amount, + ]); + + $response->assertRedirectContains('/portal/payments/'); + + $this->assertDatabaseHas('payments', [ + 'installment_schedule_id' => $schedule->id, + 'status' => 'success', + ]); + + $this->assertDatabaseHas('installment_schedules', [ + 'id' => $schedule->id, + 'payment_status' => 'dibayar', + ]); + } + + public function test_staff_print_view_contains_applicant_contact_and_staff_remarks(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0001')->firstOrFail(); + + $response = $this->actingAs($staff)->get(route('staff.applications.print', $application)); + + $response->assertOk(); + $response->assertSee('ULASAN STAFF / PEGAWAI PENYEMAK', false); + $response->assertSee('No. Telefon', false); + $response->assertSee('Nur Balqis Binti Rahman', false); + $response->assertSee('No Syarikat', false); + $response->assertSee('Rekod Pembayaran', false); + $response->assertSee('RCPT-DEMO-1001', false); + $response->assertSee('Permohonan lengkap. Bayaran pertama dipandu pada kadar minimum 30%.', false); + } + + public function test_staff_application_show_displays_payment_table(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0001')->firstOrFail(); + + $response = $this->actingAs($staff)->get(route('staff.applications.show', $application)); + + $response->assertOk(); + $response->assertSee('Rekod Pembayaran', false); + $response->assertSee('Cukai Harta', false); + $response->assertSee('Jumlah Ansuran', false); + $response->assertSee('RCPT-DEMO-1001', false); + $response->assertSee('TRX-DEMO-1001', false); + $response->assertSee('Ansuran 1', false); + } + + public function test_staff_can_record_manual_payment_with_receipt(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0001')->firstOrFail(); + $schedule = $application->schedules()->where('payment_status', 'belum_bayar')->orderBy('installment_no')->firstOrFail(); + + $response = $this->actingAs($staff)->post(route('staff.applications.payments.store', $application), [ + 'installment_schedule_id' => $schedule->id, + 'receipt_no' => 'MBIP-REC-0001', + 'amount' => $schedule->amount, + 'paid_at' => now()->format('Y-m-d H:i'), + 'remarks' => 'Bayaran kaunter direkodkan secara manual.', + ]); + + $response->assertRedirect(); + $response->assertSessionHas('success', 'Bayaran manual berjaya direkodkan.'); + + $payment = Payment::where('receipt_no', 'MBIP-REC-0001')->first(); + + $this->assertNotNull($payment); + $this->assertStringStartsWith('MANUAL-', $payment->transaction_no); + + $this->assertDatabaseHas('payments', [ + 'installment_application_id' => $application->id, + 'installment_schedule_id' => $schedule->id, + 'receipt_no' => 'MBIP-REC-0001', + 'status' => 'success', + ]); + + $this->assertDatabaseHas('installment_schedules', [ + 'id' => $schedule->id, + 'payment_status' => 'dibayar', + ]); + } + + public function test_staff_bulk_payment_page_displays_active_unpaid_installments(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + + $response = $this->actingAs($staff)->get(route('staff.bulk-payments.index')); + + $response->assertOk(); + $response->assertSee('Kemaskini Bayaran Pukal', false); + $response->assertSee('Download Template Excel', false); + $response->assertSee('MYA-202605-0001', false); + $response->assertSee('A1001', false); + $response->assertSee('RCPT-DEMO-1001', false); + $response->assertSee('TRX-DEMO-1001', false); + $response->assertDontSee('MYA-202605-0002', false); + } + + public function test_bulk_payment_template_includes_paid_transaction_details(): void + { + $rows = app(BulkPaymentImportService::class)->templateRows(); + $paidRow = collect($rows)->first(fn (array $row) => in_array('RCPT-DEMO-1001', $row, true)); + + $this->assertNotNull($paidRow); + $this->assertSame('dibayar', $paidRow[8]); + $this->assertSame('RCPT-DEMO-1001', $paidRow[9]); + $this->assertSame('TRX-DEMO-1001', $paidRow[10]); + $this->assertSame('360.00', $paidRow[12]); + } + + public function test_staff_can_import_bulk_manual_payments_from_csv(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0001')->firstOrFail(); + $schedule = $application->schedules()->where('payment_status', 'belum_bayar')->orderBy('installment_no')->firstOrFail(); + + $csv = implode("\n", [ + 'Installment_Schedule_ID,No_Akaun,Ansuran_Ke,No_Resit,Tarikh_Bayaran,Amaun_Bayaran,Catatan', + $schedule->id.','.$application->no_akaun.','.$schedule->installment_no.',BULK-REC-0001,'.now()->format('Y-m-d H:i').','.$schedule->amount.',Bayaran pukal test', + ]); + + $path = sys_get_temp_dir().DIRECTORY_SEPARATOR.'myansuran-bulk-payment-'.uniqid().'.csv'; + file_put_contents($path, $csv); + $file = new UploadedFile($path, 'bulk-payments.csv', 'text/csv', null, true); + + $response = $this->actingAs($staff)->post(route('staff.bulk-payments.store'), [ + 'file' => $file, + ]); + + $response->assertRedirect(route('staff.bulk-payments.index')); + $response->assertSessionHas('success'); + + $this->assertDatabaseHas('payments', [ + 'installment_application_id' => $application->id, + 'installment_schedule_id' => $schedule->id, + 'receipt_no' => 'BULK-REC-0001', + 'status' => 'success', + ]); + + $this->assertDatabaseHas('installment_schedules', [ + 'id' => $schedule->id, + 'payment_status' => 'dibayar', + ]); + } + + public function test_staff_can_update_existing_paid_transaction_from_bulk_payment_csv(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $payment = Payment::where('receipt_no', 'RCPT-DEMO-1001')->firstOrFail(); + $schedule = $payment->schedule; + $application = $payment->application; + + $csv = implode("\n", [ + 'Installment_Schedule_ID,No_Akaun,Ansuran_Ke,No_Resit,No_Transaksi,Tarikh_Bayaran,Amaun_Bayaran,Catatan', + $schedule->id.','.$application->no_akaun.','.$schedule->installment_no.',RCPT-BULK-UPDATED-1001,TRX-BULK-UPDATED-1001,'.now()->format('Y-m-d H:i').','.$schedule->amount.',Kemaskini transaksi bayaran sedia ada', + ]); + + $path = sys_get_temp_dir().DIRECTORY_SEPARATOR.'myansuran-bulk-payment-update-'.uniqid().'.csv'; + file_put_contents($path, $csv); + $file = new UploadedFile($path, 'bulk-payments-update.csv', 'text/csv', null, true); + + $response = $this->actingAs($staff)->post(route('staff.bulk-payments.store'), [ + 'file' => $file, + ]); + + $response->assertRedirect(route('staff.bulk-payments.index')); + $response->assertSessionHas('success'); + + $this->assertSame(1, Payment::where('installment_schedule_id', $schedule->id)->count()); + + $payment->refresh(); + + $this->assertSame('RCPT-BULK-UPDATED-1001', $payment->receipt_no); + $this->assertSame('TRX-BULK-UPDATED-1001', $payment->transaction_no); + $this->assertSame('Kemaskini transaksi bayaran sedia ada', $payment->remarks); + } + + public function test_staff_cannot_record_manual_payment_for_non_active_account(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $application = InstallmentApplication::where('application_no', 'MYA-202605-0002')->firstOrFail(); + $schedule = InstallmentApplication::where('application_no', 'MYA-202605-0001')->firstOrFail() + ->schedules() + ->where('payment_status', 'belum_bayar') + ->firstOrFail(); + + $response = $this->actingAs($staff) + ->from(route('staff.applications.show', $application)) + ->post(route('staff.applications.payments.store', $application), [ + 'installment_schedule_id' => $schedule->id, + 'receipt_no' => 'MBIP-REC-0002', + 'amount' => $schedule->amount, + 'paid_at' => now()->format('Y-m-d H:i'), + ]); + + $response->assertRedirect(route('staff.applications.show', $application)); + $response->assertSessionHasErrors('manual_payment'); + } + + public function test_staff_review_module_only_shows_processing_and_active_accounts(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + + $dashboardResponse = $this->actingAs($staff)->get(route('staff.dashboard')); + $dashboardResponse->assertOk(); + $dashboardResponse->assertSee('MYA-202605-0001'); + $dashboardResponse->assertSee('MYA-202605-0002'); + $dashboardResponse->assertDontSee('MYA-202604-0003'); + $dashboardResponse->assertDontSee('MYA-202603-0004'); + + $indexResponse = $this->actingAs($staff)->get(route('staff.applications.index')); + $indexResponse->assertOk(); + $indexResponse->assertSee('MYA-202605-0001'); + $indexResponse->assertSee('MYA-202605-0002'); + $indexResponse->assertDontSee('MYA-202604-0003'); + $indexResponse->assertDontSee('MYA-202603-0004'); + } + + public function test_staff_cannot_open_closed_accounts_for_review(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $completedApplication = InstallmentApplication::where('application_no', 'MYA-202603-0004')->firstOrFail(); + + $response = $this->actingAs($staff)->get(route('staff.applications.show', $completedApplication)); + + $response->assertRedirect(route('staff.applications.index')); + $response->assertSessionHas('error', 'Hanya akaun berstatus diproses dan aktif boleh disemak oleh staff.'); + } + + public function test_property_account_import_service_can_import_property_accounts_from_csv(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $csv = implode("\n", [ + 'No_Akaun,Pemilik,Warganegara,Pelanggan,Status,Bandar,Taman,Rupacara,Kadar,Aktif,Tunggakan,No_Akaun_Tunggakan', + 'A2001,Demo Import,Ya,Aktif,Tunggakan,Johor Bahru,Taman Demo,Rumah,4.2%,Ya,2222.50,NBE2001', + ]); + + $path = sys_get_temp_dir().DIRECTORY_SEPARATOR.'myansuran-import-'.uniqid().'.csv'; + file_put_contents($path, $csv); + $file = new UploadedFile($path, 'property-accounts.csv', 'text/csv', null, true); + + $batch = app(PropertyAccountImportService::class)->import($file, $staff); + + $this->assertDatabaseHas('property_accounts', [ + 'no_akaun' => 'A2001', + 'no_akaun_tunggakan' => 'NBE2001', + 'pemilik' => 'Demo Import', + ]); + + $this->assertSame(1, $batch->total_processed); + $this->assertSame(1, $batch->total_new); + $this->assertSame(0, $batch->total_failed); + $this->assertSame('arrears', $batch->import_type); + + @unlink($path); + } + + public function test_admin_can_import_property_tax_data_from_csv(): void + { + $admin = User::where('email', 'admin@myansuran.test')->firstOrFail(); + $csv = implode("\n", [ + 'No_Akaun,No_Akaun_Tunggakan,No_Bgnn,Nama_Jalan,Pemilik,Bandar,Taman,Rupacara,Kadar,Cukai_Harta', + 'TAX3001,TAX3001,BGN-3001,Jalan Cukai 1,Pemilik Cukai Harta,Iskandar Puteri,Taman Cukai,Rumah,4.4%,1388.75', + ]); + + $path = sys_get_temp_dir().DIRECTORY_SEPARATOR.'myansuran-tax-import-'.uniqid().'.csv'; + file_put_contents($path, $csv); + $file = new UploadedFile($path, 'property-tax.csv', 'text/csv', null, true); + + $batch = app(PropertyAccountImportService::class)->import($file, $admin, 'tax'); + + $this->assertDatabaseHas('property_accounts', [ + 'no_akaun' => 'TAX3001', + 'no_akaun_tunggakan' => 'TAX3001', + 'no_bgnn' => 'BGN-3001', + 'nama_jalan' => 'Jalan Cukai 1', + 'kadar' => '4.4%', + 'cukai_harta' => 1388.75, + 'tunggakan' => 0, + ]); + + $this->assertSame('tax', $batch->import_type); + $this->assertSame(1, $batch->total_new); + $this->assertSame(0, $batch->total_missing); + + @unlink($path); + } + + public function test_tax_import_does_not_overwrite_existing_arrears_account_number(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $admin = User::where('email', 'admin@myansuran.test')->firstOrFail(); + $user = User::where('email', 'user@myansuran.test')->firstOrFail(); + + $arrearsCsv = implode("\n", [ + 'No_Akaun,Pemilik,Warganegara,Pelanggan,Status,Bandar,Taman,Rupacara,Kadar,Aktif,Tunggakan,No_Akaun_Tunggakan', + 'A5001,Pemilik Tunggakan,Ya,Aktif,Tunggakan,Johor Bahru,Taman Demo,Rumah,4.2%,Ya,2222.50,TN5001', + ]); + $arrearsPath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'myansuran-arrears-preserve-'.uniqid().'.csv'; + file_put_contents($arrearsPath, $arrearsCsv); + + app(PropertyAccountImportService::class)->import( + new UploadedFile($arrearsPath, 'arrears-preserve.csv', 'text/csv', null, true), + $staff, + ); + + $taxCsv = implode("\n", [ + 'No_Akaun,No_Bgnn,Nama_Jalan,Bandar,Taman,Rupacara,Kadar,Cukai_Harta', + 'A5001,BGN-5001,Jalan Cukai 5001,Iskandar Puteri,Taman Cukai,Rumah,4.4%,1388.75', + ]); + $taxPath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'myansuran-tax-preserve-'.uniqid().'.csv'; + file_put_contents($taxPath, $taxCsv); + + app(PropertyAccountImportService::class)->import( + new UploadedFile($taxPath, 'tax-preserve.csv', 'text/csv', null, true), + $admin, + 'tax', + ); + + $this->assertDatabaseHas('property_accounts', [ + 'no_akaun' => 'A5001', + 'no_akaun_tunggakan' => 'TN5001', + 'pemilik' => 'Pemilik Tunggakan', + 'no_bgnn' => 'BGN-5001', + 'nama_jalan' => 'Jalan Cukai 5001', + 'cukai_harta' => 1388.75, + ]); + + app(PropertyAccountImportService::class)->import( + new UploadedFile($arrearsPath, 'arrears-preserve.csv', 'text/csv', null, true), + $staff, + ); + + $this->assertDatabaseHas('property_accounts', [ + 'no_akaun' => 'A5001', + 'no_akaun_tunggakan' => 'TN5001', + 'cukai_harta' => 1388.75, + 'tunggakan' => 2222.50, + ]); + + $this->actingAs($user) + ->getJson(route('portal.applications.lookup', ['no_akaun_tunggakan' => 'TN5001'])) + ->assertOk() + ->assertJsonPath('no_akaun', 'A5001') + ->assertJsonPath('alamat_harta', 'BGN-5001, Jalan Cukai 5001'); + + @unlink($arrearsPath); + @unlink($taxPath); + } + + public function test_property_account_import_service_accepts_flexible_csv_headers_and_portal_lookup_works(): void + { + $staff = User::where('email', 'staff@myansuran.test')->firstOrFail(); + $user = User::where('email', 'user@myansuran.test')->firstOrFail(); + $csv = implode("\n", [ + "\xEF\xBB\xBFNo Akaun,Nama Pemilik,Warganegara,Pelanggan,Status,Bandar,Taman,Rupacara,Kadar,Aktif,Tunggakan,No Akaun Tunggakan", + 'A202500179967,Contoh CSV,Ya,Aktif,Tunggakan,Johor Bahru,Taman Demo,Rumah,4.8%,Ya,3150.40,TN202500179967', + ]); + + $path = sys_get_temp_dir().DIRECTORY_SEPARATOR.'myansuran-import-flex-'.uniqid().'.csv'; + file_put_contents($path, $csv); + $file = new UploadedFile($path, 'property-accounts-flex.csv', 'text/csv', null, true); + + app(PropertyAccountImportService::class)->import($file, $staff); + + $this->assertDatabaseHas('property_accounts', [ + 'no_akaun' => 'A202500179967', + 'no_akaun_tunggakan' => 'TN202500179967', + 'pemilik' => 'Contoh CSV', + ]); + + $this->actingAs($user) + ->getJson(route('portal.applications.lookup', ['no_akaun_tunggakan' => 'TN202500179967'])) + ->assertOk() + ->assertJsonPath('no_akaun', 'A202500179967') + ->assertJsonPath('no_akaun_tunggakan', 'TN202500179967'); + + @unlink($path); + } + + public function test_admin_can_open_core_monitoring_pages(): void + { + $admin = User::where('email', 'admin@myansuran.test')->firstOrFail(); + + $this->actingAs($admin)->get(route('admin.dashboard'))->assertOk(); + $this->actingAs($admin)->get(route('admin.users.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.roles.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.applications.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.installment-accounts.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.payments.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.tasks.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.communications.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.property-accounts.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.reports.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.audit-trail.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.import.index'))->assertOk(); + $this->actingAs($admin)->get(route('admin.settings.index'))->assertOk(); + } +} diff --git a/src/tests/TestCase.php b/src/tests/TestCase.php new file mode 100644 index 0000000..fe1ffc2 --- /dev/null +++ b/src/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +} diff --git a/src/vite.config.js b/src/vite.config.js new file mode 100644 index 0000000..1fd66d5 --- /dev/null +++ b/src/vite.config.js @@ -0,0 +1,24 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; +import { bunny } from 'laravel-vite-plugin/fonts'; +import tailwindcss from '@tailwindcss/vite'; + +export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + fonts: [ + bunny('Instrument Sans', { + weights: [400, 500, 600], + }), + ], + }), + tailwindcss(), + ], + server: { + watch: { + ignored: ['**/storage/framework/views/**'], + }, + }, +});