Car Sells in Afghanistan
A modern, responsive car marketplace web application.
Features
- Car Listings: Browse approved cars with filters (Make, Province, Price).
- Sell Your Car: Users can submit cars for sale (requires Admin approval).
- Buying System: Secure "Buy Now" flow with Bank Details capture.
- Receipts: Auto-generated printable receipts for sold cars.
- Admin Dashboard:
- Analytics (Revenue, Sales, Inventory).
- Approve/Reject Car Requests.
- Manage Users and Inventory.
- Responsive Design: Built with Bootstrap 5.
Local Setup Instructions (XAMPP/LAMP)
- Clone/Copy the project files to your web server root (e.g.,
htdocsor/var/www/html). - Database Setup:
- Create a MySQL database named
car_dealership. - Import the database structure. You can run the
setup_project.phpscript if available, or manually importdb/migrations/*.sql. - Quick Setup: Access
http://localhost/setup_project.phpin your browser (if deployed).
- Create a MySQL database named
- Configuration:
- Edit
db/config.phpif your DB credentials differ from the defaults (User:root, Pass: empty).
- Edit
- Run the App:
- Open
http://localhost/in your browser.
- Open
Credentials
- Admin User:
- Username:
admin - Password:
123(or12345678if updated manually)
- Username:
Usage Guide
Selling a Car
- Register/Login.
- Click "Sell Your Car" in the navigation.
- Fill out the form and upload an image.
- Status will be "Pending" until approved by Admin.
Buying a Car
- Login.
- Click on a car (must be "Approved").
- Click "Buy Now".
- Enter Bank Province and Account Number.
- Confirm. You will be redirected to the Receipt.
Admin Panel
- Login as Admin.
- Go to "Admin Panel" (dropdown menu).
- Sales Requests: Approve newly submitted cars here.
- Sales History: View all sold cars and revenue.
Screenshots
(Placeholders)
- [Home Page]
- [Admin Dashboard]
- [Receipt]
Description
Languages
PHP
79.1%
CSS
15%
JavaScript
5.9%