# Mobile Shop ERP V2 Update Notes

This update improves the system with:

- Blue lightweight MDBootstrap-inspired offline interface
- Animated cards, buttons, forms, filters and report panels
- Dynamic invoice logo upload
- Dynamic invoice header, footer and terms text
- Dynamic invoice colors and invoice format options: modern, classic, thermal
- QR Code and Barcode rendered as image sources
- Multi-currency module with exchange rate
- Countries module for import and customer/supplier information
- Customer optional Tazkira/document scan upload
- Better sales, purchases, stock, profit and ledger report filters
- Improved search by invoice, customer, phone, Tazkira and IMEI
- Local offline CSS/JS only; no CDN required

## Required commands after copying update

```bash
composer dump-autoload
php artisan migrate --seed
php artisan storage:link
php artisan optimize:clear
php artisan serve
```

## If you use MySQL

Keep your existing `.env` MySQL settings, for example:

```env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=mobile_shop_erp
DB_USERNAME=root
DB_PASSWORD=
```

## Important

For logo and Tazkira scan preview, `php artisan storage:link` must be run.

If Artisan shows `Class "DOMDocument" not found`, enable PHP XML/DOM extension in `php.ini`:

```ini
extension=dom
extension=fileinfo
extension=gd
```

On XAMPP, restart Apache after changing `php.ini`.
