How mmrtonmoybd/newspaper-office-management works
Newspaper Office Management is a Laravel back-office application for staff to record advertising, cash-book transactions, press materials, and circulation, with settings and per-module access controls. Staff enter the backend through web routes; controllers validate and process records, Eloquent models persist them, and screens present lists, forms, printable views, and exports. The README establishes the principal modules; the sampled code supports several controller-to-model and balance-recalculation relationships. Unsampled modules are represented at their exact tree paths, with links omitted where their implementation could not be verified.
Main entry points: web.php Backend routes · CalculationController.php Cash-book operations · MonthlyCirculation.php Circulation records · Ads Ad registers and panel
Components 29
Web entry
- Backend routes
routes/web.php
Advertisement
- Ad registers and panel
app/Http/Controllers/Ads - Ad records
app/Models - Ad screens
resources/views/backend/ads
Cash book
- Cash-book operations
app/Http/Controllers/Cashbook/CalculationController.php - Cash-book categories
app/Http/Controllers/Cashbook/CategoryController.php - Books and entries
app/Models/Calculation.php - Entry categories
app/Models/Category.php - Cash-book screens
resources/views/backend/cashbook - Cash-book navigation
app/Menu/Cashbook.php
Press materials
- Ink tracking
app/Http/Controllers/Press/PressInkController.php - Paper tracking
app/Http/Controllers/Press/PressPaperController.php - Plate tracking
app/Http/Controllers/Press/PressPlateController.php - Press records
app/Models/PressPaper.php - Press screens
resources/views/backend/press - Press navigation
app/Menu/Press.php
Circulation
- Representative records
app/Http/Controllers/Circulation/RepresentativeController.php - Monthly circulation
app/Http/Controllers/Circulation/MonthlyController.php - Daily circulation
app/Http/Controllers/Circulation/DailyController.php - Circulation records
app/Models/MonthlyCirculation.php - Representatives
app/Models/MonthlyCirculationRepen.php - Monthly data table
app/Datatables/MonthlyDatatable.php - Circulation screens
resources/views/backend/circulation - Circulation navigation
app/Menu/Circulation.php
Access and settings
- Record time limits
app/Http/Controllers/Settings/SettingsController.php - Application settings
app/Models/Setting.php - Settings screen
resources/views/backend/settings/edit.blade.php - Users and roles
app/Models/User.php
Other components
- Office staff
Connections 37
- Office staff → Backend routes: opens backend
README.md - Backend routes → Ad registers and panel: routes requests
routes/web.php - Backend routes → Cash-book operations: routes requests
routes/web.php - Backend routes → Cash-book categories: routes requests
routes/web.php - Backend routes → Ink tracking: routes requests
routes/web.php - Backend routes → Paper tracking: routes requests
routes/web.php - Backend routes → Plate tracking: routes requests
routes/web.php - Backend routes → Representative records: routes requests
routes/web.php - Backend routes → Monthly circulation: routes requests
routes/web.php - Backend routes → Daily circulation: routes requests
routes/web.php - Backend routes → Record time limits: routes requests
routes/web.php - Ad registers and panel → Ad records: stores records
app/Http/Controllers/Ads/An/AdsAnController.php - Ad registers and panel → Ad screens: renders screens
app/Http/Controllers/Ads/An/AdsAnController.php - Cash-book operations → Books and entries: reads and writes
app/Http/Controllers/Cashbook/CalculationController.php - Cash-book operations → Entry categories: uses categories
app/Http/Controllers/Cashbook/CalculationController.php - Cash-book categories → Entry categories: manages categories
app/Http/Controllers/Cashbook/CategoryController.php - Cash-book operations → Cash-book screens: renders and exports
app/Http/Controllers/Cashbook/CalculationController.php - Books and entries → Entry categories: links entries
- Ink tracking → Press records: manages ink
app/Http/Controllers/Press/PressInkController.php - Paper tracking → Press records: stores paper
app/Http/Controllers/Press/PressPaperController.php - Plate tracking → Press records: recalculates plate totals
app/Http/Controllers/Press/PressPlateController.php - Paper tracking → Press screens: renders screens
app/Http/Controllers/Press/PressPaperController.php - Plate tracking → Press screens: renders screens
app/Http/Controllers/Press/PressPlateController.php - Monthly circulation → Circulation records: creates and updates
app/Http/Controllers/Circulation/MonthlyController.php - Representative records → Representatives: manages representatives
app/Http/Controllers/Circulation/RepresentativeController.php - Daily circulation → Circulation records: manages daily sales
- Circulation records → Representatives: belongs to
app/Models/MonthlyCirculation.php - Monthly data table → Circulation records: queries records
app/Datatables/MonthlyDatatable.php - Monthly data table → Representatives: uses representatives
app/Datatables/MonthlyDatatable.php - Monthly circulation → Circulation screens: renders screens
app/Http/Controllers/Circulation/MonthlyController.php - Representative records → Circulation screens: renders screens
app/Http/Controllers/Circulation/RepresentativeController.php - Record time limits → Application settings: reads and updates
app/Http/Controllers/Settings/SettingsController.php - Record time limits → Settings screen: renders settings
app/Http/Controllers/Settings/SettingsController.php - Cash-book navigation → Backend routes: links module routes
routes/web.php - Press navigation → Backend routes: links module routes
routes/web.php - Circulation navigation → Backend routes: links module routes
routes/web.php - Users and roles → Backend routes: access control