A professional web-based gold finance management system built with PHP, MySQL, HTML, CSS, and JavaScript. This system is designed to manage jewelry pawn loans, customers, interest calculations, and financial transactions.
- Summary cards showing customer count, active loans, and recoveries
- Detailed jewelry pawn information table
- Search and filter functionality
- Add, edit, and delete customers
- Search customers by name, mobile number, or customer number
- Pagination support
- Create new jewelry pawn loans
- Track loan details including principal amount, interest rate, and pledge items
- Status tracking (active/closed)
- Tamil language support for status indicators
- Groups: Manage jewelry categories
- Products: Manage jewelry products with English and Tamil names
- Interest calculation and tracking
- Loan closing functionality
- Interest payment records
- Balance Sheet
- Day Book
- Advance Report
- Pledge Report
- Credit and debit transaction entries
- Transaction history tracking
- Backend: PHP 7.4+
- Database: MySQL 5.7+
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- UI Framework: Custom CSS with Font Awesome icons
- Authentication: Session-based PHP authentication
- PHP 7.4 or higher
- MySQL 5.7 or higher
- Web server (Apache/Nginx)
- PHP extensions: PDO, PDO_MySQL
-
Clone or Download the Project
# If using git git clone <repository-url> cd lakshmi-finance
-
Configure Database
- Edit
config/database.php - Update database credentials:
define('DB_HOST', 'localhost'); define('DB_NAME', 'lakshmi_finance'); define('DB_USER', 'your_username'); define('DB_PASS', 'your_password');
- Edit
-
Initialize Database
- Open your web browser
- Navigate to:
http://your-domain/init.php - This will create the database and sample data
-
Access the Application
- Navigate to:
http://your-domain/ - Login with default credentials:
- Username: admin
- Password: admin123
- Navigate to:
- users: System users and authentication
- customers: Customer information
- loans: Jewelry pawn loan records
- interest: Interest payment records
- loan_closings: Loan closure records
- transactions: Financial transactions
- groups: Jewelry categories
- products: Jewelry products with bilingual names
lakshmi-finance/
βββ index.php # Login page
βββ dashboard.php # Main dashboard
βββ init.php # Database initialization
βββ config/
β βββ database.php # Database configuration
βββ auth/
β βββ login.php # Login handler
β βββ logout.php # Logout handler
βββ api/
β βββ customers.php # Customer API
β βββ loans.php # Loan API
β βββ groups.php # Group API
β βββ products.php # Product API
βββ pages/
β βββ dashboard.php # Dashboard content
β βββ customers.php # Customer management
β βββ loans.php # Loan management
β βββ groups.php # Group management
β βββ products.php # Product management
βββ assets/
β βββ css/
β β βββ style.css # Main stylesheet
β βββ js/
β βββ login.js # Login page JavaScript
β βββ dashboard.js # Dashboard JavaScript
βββ README.md # This file
- Secure login with password hashing
- Session-based authentication
- Role-based access control
- Mobile-friendly interface
- Clean, professional design
- Consistent color scheme (blue, green, white)
- Real-time search functionality
- Pagination for large datasets
- Advanced filtering options
- CRUD operations for all entities
- Data validation and sanitization
- Foreign key constraints for data integrity
- English interface
- Tamil language support for status indicators
- Bilingual product names
- Password hashing using PHP's
password_hash() - SQL injection prevention with prepared statements
- XSS protection with
htmlspecialchars() - Session security
- Input validation and sanitization
- Change company name from "Lakshmi Finance" in:
index.php(login page)dashboard.php(sidebar)assets/css/style.css(styling)
- Primary blue:
#2196F3 - Success green:
#4CAF50 - Warning orange:
#FF9800 - Update colors in
assets/css/style.css
- Modify
config/database.phpfor different database settings - Add new tables in
init.phpinitialization function
-
Database Connection Error
- Check database credentials in
config/database.php - Ensure MySQL service is running
- Verify database exists
- Check database credentials in
-
Page Not Found Errors
- Check web server configuration
- Ensure PHP is properly configured
- Verify file permissions
-
Login Issues
- Run
init.phpto create default admin user - Check session configuration
- Verify PHP session directory permissions
- Run
- Enable PHP OPcache for better performance
- Configure MySQL query cache
- Use CDN for Font Awesome icons
- Optimize images and assets
For technical support or feature requests, please contact the development team.
This project is proprietary software. All rights reserved.
Lakshmi Finance - Professional Gold Finance Management System