# Admin Login + Order Downloads

## Admin login
Admin access uses the user's role relationship (`users.role_id` -> `roles.name = admin`), not an `is_admin` column.

Seed credentials:
- Email: admin@example.com
- Password: ChangeMe@123

Run:
php artisan optimize:clear
php artisan db:seed

## Order downloads
- Admin > Orders > Download Order List: CSV containing all orders (or the selected status filter).
- Each order has a Download button for an individual CSV.
- Individual order page also has Print for a print-friendly order sheet.

The order controller uses the actual order table fields from this project: `order_status`, `customer_name`, `customer_email`, `customer_phone`, `subtotal`, `discount_amount`, `shipping_amount`, `tax_amount`, and `total_amount`.
