ManagementSystem/BACKEND
nguyentrungthat baa3216c69 Add electricity bills module (API, model, PDF)
Introduce an Electricity Bills feature: adds ElectricityBill model, controller with CRUD + PDF export, Blade PDF template, and a migration to create the electricity_bills table. Registers routes (with admin permission middleware) and persists generated PDFs to public storage. Adds ResultSuccess/ResultError helpers to base Controller and updates composer to include dompdf and DBAL dependencies. Also includes frontend updates (Admin API, DataTable, Navbar, new OfficeSupport page and styles, route and CRUD helper adjustments) to support the new functionality.
2026-04-29 13:44:34 +07:00
..
.doc sdfsd 2024-05-14 07:11:04 +00:00
.docker sdfsd 2024-05-14 07:11:04 +00:00
Modules Add electricity bills module (API, model, PDF) 2026-04-29 13:44:34 +07:00
app Add electricity bills module (API, model, PDF) 2026-04-29 13:44:34 +07:00
bootstrap sdfsd 2024-05-14 07:11:04 +00:00
config add confirm/refuse in ticket mail 2025-06-11 16:44:11 +07:00
database Add electricity bills module (API, model, PDF) 2026-04-29 13:44:34 +07:00
public update qrcode 2024-09-07 09:06:02 +07:00
redis sdfsd 2024-05-14 07:11:04 +00:00
resources fix refactor function check leave day, update handle ticket send mail 2025-06-20 14:29:47 +07:00
routes sdfsd 2024-05-14 07:11:04 +00:00
storage sdfsd 2024-05-14 07:11:04 +00:00
stubs/nwidart-stubs sdfsd 2024-05-14 07:11:04 +00:00
tests update UI leave management, add func update old data 2025-06-27 09:45:21 +07:00
.editorconfig sdfsd 2024-05-14 07:11:04 +00:00
.env.dev update env 2024-09-19 08:58:52 +07:00
.env.docker sdfsd 2024-05-14 07:11:04 +00:00
.env.example sdfsd 2024-05-14 07:11:04 +00:00
.gitattributes sdfsd 2024-05-14 07:11:04 +00:00
.gitignore sdfsd 2024-05-14 07:11:04 +00:00
Dockerfile sdfsd 2024-05-14 07:11:04 +00:00
README.md sdfsd 2024-05-14 07:11:04 +00:00
artisan sdfsd 2024-05-14 07:11:04 +00:00
composer.json Add electricity bills module (API, model, PDF) 2026-04-29 13:44:34 +07:00
composer.lock Add electricity bills module (API, model, PDF) 2026-04-29 13:44:34 +07:00
docker-compose.yml sdfsd 2024-05-14 07:11:04 +00:00
docker-entrypoint.sh sdfsd 2024-05-14 07:11:04 +00:00
logo.svg sdfsd 2024-05-14 07:11:04 +00:00
modules_statuses.json sdfsd 2024-05-14 07:11:04 +00:00
package.json sdfsd 2024-05-14 07:11:04 +00:00
phpunit.xml sdfsd 2024-05-14 07:11:04 +00:00
pnpm-lock.yaml sdfsd 2024-05-14 07:11:04 +00:00
postcss.config.js sdfsd 2024-05-14 07:11:04 +00:00
tailwind.config.js sdfsd 2024-05-14 07:11:04 +00:00
vite.config.js sdfsd 2024-05-14 07:11:04 +00:00

README.md

Docker

Build

  1. Run Docker
cp .env.docker .env
docker compose up
  1. Open Backend

http://localhost:{APP_PORT}

eg: http://localhost:8000

{APP_PORT}: is varible in environment .env

Exec

docker exec -it payment ...

Module

  1. Create a new module
docker exec -it payment php artisan module:make {MODULE_NAME}
  1. Some scripts often used
docker exec -it payment php artisan module:make-model {model} {MODULE_NAME}
docker exec -it payment php artisan module:make-controller {controller} {MODULE_NAME}
docker exec -it payment php artisan module:make-request {request} {MODULE_NAME}
docker exec -it payment php artisan module:make-middleware {middleware} {MODULE_NAME}
docker exec -it payment php artisan module:make-listener {listener} {MODULE_NAME}
docker exec -it payment php artisan module:make-rule {rule} {MODULE_NAME}
docker exec -it payment php artisan module:make-resource {resource} {MODULE_NAME}
  1. Status {PROJECT_DIR}/modules_statuses.json
{
    "Auth": true,
    "Hostbill": true,
    "HomePage": true
}

[!NOTE] Please take note of this