Skip to content

Add Car Clearance Management System#49

Open
coder-contrib-bot wants to merge 1 commit into
masterfrom
feature/car-clearance-system
Open

Add Car Clearance Management System#49
coder-contrib-bot wants to merge 1 commit into
masterfrom
feature/car-clearance-system

Conversation

@coder-contrib-bot
Copy link
Copy Markdown

Summary

  • Full-stack Car Clearance Management System built with PHP 8+, MySQL, and Bootstrap 5
  • MVC architecture with PDO prepared statements, role-based access control, and dual currency support (USD/SSP)
  • Includes dashboard, CRUD operations, filterable reports with print view, and user management

Features

  • Authentication: Login with password_hash()/password_verify(), PHP sessions, admin/user roles
  • Clearance Records: Date, truck number, consignment, items, truck type, amounts in USD/SSP with currency radio toggle
  • Dashboard: Searchable/sortable/filterable table with summary cards
  • Reports: Date range and truck number filters, print-friendly view with CSS @media print
  • User Management: Admin-only CRUD for users with role assignment
  • Security: PDO prepared statements, XSS prevention, input validation (client + server)

Tech Stack

  • PHP 8+ with PDO/MySQL
  • Bootstrap 5 + Bootstrap Icons
  • Vanilla JavaScript
  • MVC folder structure: /controllers, /models, /views, /public

Setup

See car-clearance-system/README.md for full XAMPP/Laragon setup instructions.

Default login: admin / admin123

Author

Test plan

  • Import database/schema.sql into MySQL
  • Access public/index.php and verify login page renders
  • Login with admin/admin123
  • Create a new clearance record with USD payment
  • Create a new clearance record with SSP payment
  • Verify currency toggle disables the inactive field
  • Filter records by date range and truck number
  • Test print report view opens in new tab
  • Add a new user and verify they can login
  • Verify regular users cannot access user management
  • Test edit/delete operations as admin

🤖 Generated with Claude Code

Full-stack CRUD application for managing car/truck clearance records:
- Authentication with role-based access control (Admin/User)
- Car clearance records with dual currency support (USD/SSP)
- Dashboard with searchable, sortable, filterable table
- Report generation with print-friendly view
- User management for admins
- MVC architecture with PDO, input validation, Bootstrap 5 UI

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants