# Super Admin + Product PDF Update

## Changes

### 1. Manual Product List PDF
- Super Admin can upload a manually designed PDF from **Admin → Products → Product List PDF**.
- Uploaded PDF becomes the file served by the Product List PDF download endpoint.
- Super Admin can remove the manual PDF and return to automatic PDF generation.
- Uploaded PDF is stored on the Laravel `public` disk under `product-pdf/`.

### 2. Product Filters
The Admin Products page now supports:
- Product name / SKU / ID search
- Category
- Active / Inactive status
- In Stock / Out of Stock
- Minimum selling price
- Maximum selling price
- Sort by ID, name, price and stock
- Filters persist through pagination

### 3. Super Admin
A new `super_admin` role is available.

Demo seed account:
- Email: `superadmin@example.com`
- Password: `SuperAdmin@12345`

**Change this password immediately after first login.**

### 4. Admin restrictions
Regular `admin` users can manage normal catalogue/order operations but cannot:
- Change Company Settings
- Change Frontend Section Visibility
- Manage Frontend Media / popup poster settings
- Upload product images through ZIP
- Delete products
- Delete categories / empty category trash
- Delete orders
- Delete pages, banners, announcements, coupons, offers or payment accounts
- Manage admin/staff users
- Upload/remove the manual Product List PDF

These restrictions are enforced in both the UI and server-side controllers/routes.

### Migration
Run:

```bash
php artisan migrate
```

If using the supplied demo seed data:

```bash
php artisan db:seed
```

The `super_admin` role is created by migration. The seeder also creates the demo Super Admin account above.
