# Sivakasi Crackers - Final Update

## Final features
- Admin: full access to catalogue, sales, customers, reports, settings, pages, reviews and user management.
- Offline Order Staff: Dashboard, Products, Categories, Orders and New Order only. Admin-only pages and delete-order are server-side protected.
- Company Settings: logo, company details, bank/UPI fallback, popup toggle, product PDF toggle, invoice prefix/starting number, hero animation and website theme.
- Invoice numbering: automatic sequence such as `INV1000`, `INV1001`, `INV1002`. The starting number is used only when the sequence is first initialized.
- Invoice print: maximum 30 product rows per A4 page, company logo/details, bank/UPI details, and UPI QR at the bottom of the final page.
- Products: Colour and Unit, including Nos, Packet, Box, Piece, Set, Carton, Bundle, Kg, Gram, Liter and ML. Excel import/export/template include both fields.
- Product delete: single, selected/bulk and all (admin only); products use the existing trash/soft-delete flow.
- Orders: PDF invoice, print invoice and admin-only delete with stock restoration.
- Frontend: company-settings logo, full-screen hero, optional banner title, slide/fade/zoom/Ken Burns animation, flash-message marquee, bold phone header, responsive 6-column desktop / 3-column mobile product rows, category image + clickable name only, safety Do's/Don'ts, red/yellow footer.
- Shop page also receives the hero and flash-message section.
- Website theme: primary/secondary/accent/text colors, background color and optional background image.
- Custom Pages: Add New Page with Navigation Bar, Footer, both or none placement; custom pages appear dynamically in the frontend.
- Coupons, Offers, Banners and Flash Messages support multiple records.
- Multiple Bank Accounts and UPI QR records are available under Settings.

## Important migration fix
The duplicate `colour` migration was made idempotent. Existing `products.colour` / `products.unit` columns will not be added twice.

## Local installation
After replacing the project with this ZIP:

```bash
php artisan migrate
php artisan optimize:clear
php artisan storage:link
php artisan serve
```

If `storage:link` already exists, it is safe to leave it as-is.

## First admin setup
Login as an administrator and open:
**Settings → Company Settings**

Upload/confirm the company logo, set phone/email/address, choose the website colors/background, set:
- Invoice Prefix: `INV`
- Invoice Starting Number: `1000`

Then add any additional bank accounts/UPI QR codes under:
**Settings → Bank Account & UPI QR**

## Frontend
Open:
`http://127.0.0.1:8000/`

The customer website automatically reads the Company Settings logo/theme and the active banners/flash messages.
