from django.shortcuts import render
from django.views.decorators.http import require_GET


@require_GET
def appointment_email_preview(request):
    context = {
        "text_color": "#1f2937",
        "button_color": "#2563eb",
        "dealership_name": "Demo Motors",
        "customer_name": "John Doe",
        "customer_number": "+1 555-123-4567",
        "booking_type": "Oil Change, Tire Rotation",
        "make": "Toyota",
        "model": "Camry",
        "year": "2022",
        "appointment_date": "March 15, 2026",
        "appointment_time": "10:30 AM",
        # "company_website": "https://dealerpulse.net",  # optional
    }

    return render(request, "appointment/booking.html", context)
