How katekateline/park-it works
This Laravel application supports role-based parking operations: a gate attendant records vehicle entry, issues a ticket, and later scans it to calculate and complete payment; owners review revenue and transaction summaries. Admins maintain users, vehicles, rates, parking areas, cameras, and activity logs. Camera capture and vehicle analysis are integrated into entry handling. The sampled source confirms entry-analysis, payment, authentication, dashboard, and owner-report behavior; other administration and routing links are represented at subsystem level from the file tree, without assuming their internal call wiring.
Main entry points: TransaksiMasukController.php Vehicle entry · Admin Admin management · web.php Web routes · TransaksiKeluarController.php Vehicle exit and payment
Components 30
Access and dashboards
- Web routes
routes/web.php - Authentication
app/Http/Controllers/AuthController.php - Role access
app/Http/Middleware/RoleMiddleware.php - Role dashboards
app/Http/Controllers/DashboardController.php - Admin overview
app/Http/Controllers/Admin/AdminDashboardController.php - Attendant overview
app/Http/Controllers/Petugas/PetugasDashboardController.php
Parking operations
- Vehicle entry
app/Http/Controllers/Petugas/TransaksiMasukController.php - Camera API
app/Http/Controllers/Petugas/CameraApiController.php - Detection endpoint
app/Http/Controllers/DetectionController.php - Vehicle type mapping
app/Support/VehicleTypeDisplay.php - Vehicle exit and payment
app/Http/Controllers/Petugas/TransaksiKeluarController.php - Entry and receipt views
resources/views/petugas/transaksi/masuk.blade.php - Exit and receipt views
resources/views/petugas/transaksi/keluar-bayar.blade.php - Parking transactions
app/Models/Transaksi.php - Receipt records
app/Models/CetakStruk.php - Attendant screens
resources/views/petugas
Administration
- Camera sources
app/Models/CameraSource.php - Vehicle records
app/Models/Kendaraan.php - Parking rates
app/Models/Tarif.php - Parking areas
app/Models/AreaParkir.php - Activity log
app/Models/LogAktivitas.php - Admin management
app/Http/Controllers/Admin - Admin screens
resources/views/admin
Owner reporting
- Owner overview
app/Http/Controllers/Owner/OwnerDashboardController.php - Transaction reports
app/Http/Controllers/Owner/RekapTransaksiController.php - Report and PDF views
resources/views/owner/rekap - Owner dashboard
resources/views/owner/dashboard.blade.php
Other components
- Staff or owner
- Parking camera
- YOLO analysis service
Connections 34
- Staff or owner → Web routes: requests
- Web routes → Authentication: routes login
- Web routes → Role access: checks role
- Web routes → Role dashboards: routes dashboard
- Role dashboards → Admin overview: dispatches
- Role dashboards → Attendant overview: dispatches
- Role dashboards → Owner overview: dispatches
- Web routes → Vehicle entry: routes entry
- Vehicle entry → Camera sources: selects camera
- Vehicle entry → Parking camera: fetches image
- Vehicle entry → YOLO analysis service: submits image
- YOLO analysis service → Vehicle entry: returns analysis
- Vehicle entry → Vehicle type mapping: maps detection
- Vehicle entry → Entry and receipt views: renders entry form
- Vehicle entry → Parking transactions: creates entry
- Vehicle entry → Vehicle records: records vehicle
- Web routes → Vehicle exit and payment: routes exit
- Vehicle exit and payment → Parking transactions: reads and completes
- Vehicle exit and payment → Parking rates: reads rate
- Vehicle exit and payment → Receipt records: creates receipt record
- Vehicle exit and payment → Activity log: logs payment
- Vehicle exit and payment → Exit and receipt views: renders payment
- Admin overview → Admin screens: renders overview
- Admin overview → Parking transactions: reads activity
- Admin management → Vehicle records: manages vehicles
- Admin management → Parking rates: manages rates
- Admin management → Parking areas: manages areas
- Admin management → Camera sources: manages cameras
- Admin management → Activity log: writes activity
- Admin management → Admin screens: renders screens
- Owner overview → Parking transactions: aggregates completed
- Owner overview → Owner dashboard: renders metrics
- Transaction reports → Parking transactions: queries completed
- Transaction reports → Report and PDF views: renders report