from django.shortcuts import render

def index(request):
    mock_odds = [
        {
            "event": "Benfica vs. Porto",
            "market": "Total Goals",
            "outcome": "Over 2.5",
            "sites": [
                {"name": "Solverde", "odds": 1.95},
                {"name": "Betano", "odds": 1.98},
                {"name": "Betclic", "odds": 1.92},
            ]
        },
        {
            "event": "Sporting vs. Braga",
            "market": "Player to Score",
            "outcome": "Viktor Gyökeres",
            "sites": [
                {"name": "Solverde", "odds": 2.10},
                {"name": "Betano", "odds": 2.05},
                {"name": "Betclic", "odds": 2.12},
            ]
        },
        {
            "event": "Rafael Nadal vs. Carlos Alcaraz",
            "market": "Total Sets",
            "outcome": "Over 3.5",
            "sites": [
                {"name": "Solverde", "odds": 1.80},
                {"name": "Betano", "odds": 1.85},
                {"name": "Betclic", "odds": 1.82},
            ]
        }
    ]
    context = {
        "mock_odds": mock_odds
    }
    return render(request, "core/index.html", context)