def METHOD_NAME(request):
    if not settings.PARKING_ENABLED and not request.user.has_admin_permission("parking"):
        return redirect("index")
    if not request.user.can_request_parking:
        messages.error(request, "You can't request a parking space.")
        return redirect("index")
    context = {"user": request.user, "absences": request.user.absence_count(), "max_absences": settings.PARKING_MAX_ABSENCES}
    return render(request, "parking/intro.html", context)