# 📊 Admin Dashboard - Complete Management Guide

## 🔑 Access Information

**Admin Dashboard URL:**
```
https://3000-ibnwdfw71auepqpe8f3p3-b9b802c4.sandbox.novita.ai/admin-dashboard.html
```

**Login Credentials:**
- **Email:** admin@ashtransfer.com
- **Password:** Global2026@

---

## 📈 Dashboard Overview

The admin dashboard displays **4 key statistics** at the top:
- ✅ **Total Vehicles:** 6 vehicles
- ✅ **Airports:** 10 UK airports
- ✅ **Pricing Rules:** 80 zone-based pricing rules
- ✅ **Settings:** Global system settings

---

## 🚗 Section 1: Fleet & Airport Management

### 1️⃣ **Vehicle Management** (`/admin-vehicles.html`)
**What you can do:**
- ✅ Add new vehicles to your fleet
- ✅ Edit existing vehicles (name, capacity, features)
- ✅ Upload vehicle images
- ✅ Set vehicle pricing (fixed prices: £45, £65, £95, £120)
- ✅ Set passenger capacity (2-16 passengers)
- ✅ Set luggage capacity (2-20 bags)
- ✅ Toggle vehicle availability (active/inactive)
- ✅ Delete vehicles

**Current Vehicles:**
1. Mercedes E-Class - £45 (4 passengers, 3 luggage)
2. Mercedes S-Class - £65 (4 passengers, 3 luggage)
3. Mercedes V-Class - £95 (7 passengers, 7 luggage)
4. Mercedes Sprinter - £120 (16 passengers, 20 luggage)
5. BMW 5 Series - £50 (4 passengers, 3 luggage)
6. Range Rover - £75 (5 passengers, 5 luggage)

---

### 2️⃣ **Airport Management** (`/admin-airports.html`)
**What you can do:**
- ✅ Manage all UK airports in the system
- ✅ Set meet & greet fees for each airport
- ✅ Set parking fees for each airport
- ✅ Toggle airport availability
- ✅ Edit airport codes and names

**Current Airports (10):**
1. Manchester Airport (MAN)
2. London Heathrow (LHR)
3. London Gatwick (LGW)
4. Birmingham Airport (BHX)
5. Liverpool John Lennon (LPL)
6. East Midlands (EMA)
7. Leeds Bradford (LBA)
8. Newcastle (NCL)
9. Edinburgh (EDI)
10. Glasgow (GLA)

---

### 3️⃣ **Pricing Rules** (`/admin-pricing.html`)
**What you can do:**
- ✅ Configure base pricing rules
- ✅ Set discounts and surcharges
- ✅ Create special offers
- ✅ Manage seasonal pricing

---

### 4️⃣ **Pricing Zones Management** (`/admin-pricing-zones.html`) ⭐ NEW
**What you can do:**
- ✅ View interactive service area map
- ✅ Set prices for **Zone A** (Manchester City Centre: M1-M4, M15)
- ✅ Set prices for **Zone B** (Greater Manchester: M5-M99, BL, OL, SK, WA, WN)
- ✅ Set prices for **Zone C** (Chester: All CH postcodes)
- ✅ Set prices for **Zone D** (Liverpool: All L postcodes)

**Three Journey Types:**
1. **Airport → Address:** Customer arrives at airport, travels to address
2. **Address → Airport:** Customer travels from address to airport
3. **Address → Address:** Customer travels between two addresses

**How to use:**
1. Click on a tab (Airport→Address, Address→Airport, or Address→Address)
2. You'll see cards for each zone and vehicle combination
3. Edit the price directly in the input field
4. Price auto-saves when you change it
5. Example: "Zone A → E-Class: £45" means a trip to/from Zone A costs £45 in E-Class

**Default Pricing Examples:**
- Airport → Zone A (City Center): £45-£120 (depends on vehicle)
- Airport → Zone B (Greater Manchester): £50-£130
- Address → Address (within same zone): £30-£80

---

## 🌐 Section 2: Website Content Management

### 5️⃣ **Website Settings** (`/admin-settings.html`)
**What you can do:**
- ✅ Update company name and information
- ✅ Change contact details (phone, email, address)
- ✅ Set business hours
- ✅ Configure global settings
- ✅ Update social media links

---

### 6️⃣ **Content Management** (`/admin-content.html`)
**What you can do:**
- ✅ Edit homepage content
- ✅ Update hero section text and images
- ✅ Modify "About Us" content
- ✅ Edit service descriptions
- ✅ Update FAQs

---

### 7️⃣ **Image Gallery** (`/admin-images.html`)
**What you can do:**
- ✅ Upload new images for vehicles
- ✅ Upload banner images
- ✅ Manage website media library
- ✅ Delete unused images

---

## 📅 Section 3: Booking & Quote Management

### 8️⃣ **View Bookings** (`/admin-bookings.html`)
**What you can do:**
- ✅ View all customer bookings
- ✅ See booking details (date, time, pickup, dropoff)
- ✅ Check customer information
- ✅ Update booking status
- ✅ Manage reservations

---

### 9️⃣ **Quote Requests** (`/admin-quotes.html`)
**What you can do:**
- ✅ View manual quote requests from customers
- ✅ Send custom pricing quotes
- ✅ Respond to special requests
- ✅ Track quote status

---

### 🔟 **Block Time Slots** (`/admin-blocked-dates.html`)
**What you can do:**
- ✅ Block specific dates when service is unavailable
- ✅ Block specific time slots
- ✅ Manage holidays and maintenance periods
- ✅ Prevent bookings during blocked times

---

## 🔗 Section 4: Quick Links

### 1️⃣1️⃣ **View Website**
- Opens customer-facing website in new tab
- Test your changes live

### 1️⃣2️⃣ **Booking System** (`/quotation.html`)
- Test the customer booking flow
- Try the quote calculator

### 1️⃣3️⃣ **Download Project** (`/download-project.html`)
- Download complete project package
- Get all files and documentation

---

## 🎯 Quick Start Guide

### To Add a New Vehicle:
1. Go to **Vehicle Management**
2. Click "Add Vehicle"
3. Fill in details (name, capacity, price)
4. Upload image
5. Click "Save"

### To Change Zone Pricing:
1. Go to **Pricing Zones Management**
2. Select journey type tab
3. Find the zone and vehicle
4. Type new price in the input field
5. It auto-saves!

### To View Bookings:
1. Go to **View Bookings**
2. See all customer reservations
3. Click on a booking to see details

### To Block a Date:
1. Go to **Block Time Slots**
2. Select date range
3. Add reason
4. Save

---

## 🚨 Troubleshooting

### "Dashboard looks different"
**Solution:** Hard refresh your browser
- Windows/Linux: `Ctrl + Shift + R`
- Mac: `Cmd + Shift + R`
- Or open in incognito/private mode

### "Can't see new pricing zones"
**Solution:** 
1. Clear browser cache
2. Hard refresh
3. Try a different browser (Chrome recommended)

### "Options not showing"
**Solution:** The dashboard already shows all 13 management cards across 4 sections!
1. **Fleet & Airport Management** → 4 cards
2. **Website Content Management** → 3 cards
3. **Booking & Quote Management** → 3 cards
4. **Quick Links** → 3 cards

---

## 📊 System Statistics

- ✅ **13 Management Sections** across 4 categories
- ✅ **6 Vehicles** in the fleet
- ✅ **10 UK Airports** configured
- ✅ **80 Pricing Rules** (zone-based)
- ✅ **4 Service Zones** (A, B, C, D)
- ✅ **3 Journey Types** (Airport↔Address, Address↔Address)
- ✅ **16 Admin Pages** total
- ✅ **50+ API Endpoints**
- ✅ **8 Database Tables**

---

## 🎨 Dashboard Layout

```
┌─────────────────────────────────────────────────┐
│         Admin Dashboard Header                  │
│   Stats: Vehicles | Airports | Rules | Settings│
└─────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────┐
│   🚗 Fleet & Airport Management                 │
│   ┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐         │
│   │Vehicle│ │Airport│ │Pricing│ │Zones │         │
│   │ Mgmt  │ │ Mgmt  │ │ Rules │ │ Mgmt │         │
│   └──────┘ └──────┘ └──────┘ └──────┘         │
└─────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────┐
│   🌐 Website Content Management                 │
│   ┌──────┐ ┌──────┐ ┌──────┐                  │
│   │Website│ │Content│ │Image  │                  │
│   │Settings│ │ Mgmt  │ │Gallery│                  │
│   └──────┘ └──────┘ └──────┘                  │
└─────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────┐
│   📅 Booking & Quote Management                 │
│   ┌──────┐ ┌──────┐ ┌──────┐                  │
│   │ View  │ │ Quote │ │ Block │                  │
│   │Booking│ │Request│ │ Times │                  │
│   └──────┘ └──────┘ └──────┘                  │
└─────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────┐
│   🔗 Quick Links                                 │
│   ┌──────┐ ┌──────┐ ┌──────┐                  │
│   │ View  │ │Booking│ │Download│                  │
│   │Website│ │System │ │Project│                  │
│   └──────┘ └──────┘ └──────┘                  │
└─────────────────────────────────────────────────┘
```

---

## ✅ All Features Are Live!

All 13 management sections are **already visible** on the admin dashboard. If you don't see them, please:

1. **Hard refresh** your browser (Ctrl+Shift+R or Cmd+Shift+R)
2. **Clear cache** and reload
3. **Try incognito mode** to see fresh content
4. **Check the URL:** Make sure you're on `/admin-dashboard.html`

The system is fully operational and ready to use! 🎉

---

## 📞 Need Help?

If options are still not visible:
1. Open browser console (F12)
2. Check for JavaScript errors
3. Verify you're logged in
4. Try a different browser
5. Make sure server is running on port 3000

---

**Last Updated:** 2025-02-17  
**Status:** ✅ All Systems Operational  
**Version:** 2.0 with Zone-Based Pricing
