{% extends "base.html" %} {% from "components/empty_state.html" import empty_state %} {% block title %}Premium ยท CampusCart{% endblock %} {% block content %}
{# ================= PREMIUM MEMBER DASHBOARD ================= #} {% if active_subscription %} {% set s = dashboard.summary %} {% set t = dashboard.trends %} {% set f = dashboard.featured %} {# ---- Renewal reminder (uses existing expiry helpers) ---- #} {% if expiry_soon %}

Premium expires in {{ days_left }} day{{ '' if days_left == 1 else 's' }}.

Renew to avoid losing your Featured Listing, Seller Analytics and Unlimited Messaging.

Renew Premium
{% endif %} {# ---- Hero header: title + status on the left, floating status card right ---- #}

Premium Dashboard

Premium Active

Enjoy all Premium benefits and grow your reach across campus.

{# ---- Featured listing ---- #}

Featured Listing

{% if f %} {% else %} {{ empty_state('bi-stars', 'No listing is currently featured.', 'Feature one of your listings to appear higher in discovery and get more views.', cta_label='Choose Featured Listing', cta_url=url_for('premium.feature_listing'), cta_icon='bi-stars', compact=true) }} {% endif %}
{# ---- Analytics preview (reuses the analytics dashboard service) ---- #}

Analytics Preview

Open Full Analytics
{% if s.total_listings %}
{% for label, value, icon, color in [ ('Views', s.total_views, 'bi-eye-fill', 'info'), ('Favorites', s.total_favorites, 'bi-heart-fill', 'danger'), ('Offers', s.total_offers, 'bi-tag-fill', 'secondary'), ('Conversations', s.total_conversations, 'bi-chat-dots-fill', 'primary'), ('Views this month', t.views_30d, 'bi-calendar-month-fill', 'success'), ('Views this week', t.views_7d, 'bi-graph-up-arrow', 'warning') ] %}
{{ "{:,}".format(value) }}
{{ label }}
{% endfor %}
{% if dashboard.traffic.top_listing %}

Top listing this month

{{ dashboard.traffic.top_listing }}

{% endif %} {% else %} {{ empty_state('bi-bar-chart-line', 'No analytics yet.', 'Publish a listing and your views, favorites and offers will show up here.', cta_label='Sell an item', cta_url=url_for('marketplace.create_listing_view'), cta_icon='bi-plus-lg', compact=true) }} {% endif %}
{# ---- Premium benefits (compact rows) ---- #}

Your Premium Benefits

{% set status_meta = { 'active': ('Active', 'success', 'bi-check-circle-fill'), 'needs_action': ('Needs action', 'warning', 'bi-exclamation-circle-fill'), 'configured': ('Configured', 'info', 'bi-gear-fill'), 'inactive': ('Inactive', 'secondary', 'bi-dash-circle') } %} {% for b in benefits %} {% set m = status_meta.get(b.status) %}
{{ b.title }} {% if b.note %}{{ b.note }} {% if b.status == 'needs_action' %}Choose a listing โ†’{% endif %} {% endif %}
{{ m[0] }}
{% endfor %}
{# ---- What's Next (replaces the old Quick Actions row) ---- #}

What's Next

{# ================= PRICING / PURCHASE (non-members) ================= #} {% else %} {# ---------- Hero ---------- #}
Premium

Get more out of Student Bazaar

Upgrade to Premium for unlimited messaging, an ad-free experience, featured listings, seller analytics and a standout profile across campus.

{% if not pending_request %} Request Premium {% endif %}
{% if pending_request %}

Your request is under review

We received your {{ pending_request.plan_name|title }} plan request on {{ pending_request.requested_at.strftime('%d %b %Y') }}. View status

{% elif latest_request %}

{{ 'We need more information' if latest_request.status.value == 'more_info' else 'Your last request was not approved' }}

{% if latest_request.review_note %}{{ latest_request.review_note }} {% endif %} You can submit a new request below. View details

{% endif %} {# ---------- Pricing ---------- #}

Simple, student-friendly pricing

Choose the plan that suits you. Cancel anytime โ€” no auto-renewal.

Early Access Pricing

Student Bazaar Premium is in its early release. New Premium features will keep rolling out over time โ€” at no additional cost for active subscribers. Lock in today's price and grow with us.

{# Plans are admin-configured (app/premium/config). #} {% set max_days = (plans | map(attribute='duration_days') | max) if plans else 0 %}
{% for plan in plans %} {% set featured = plans | length > 1 and plan.duration_days == max_days %}
{% endfor %}
{# ---------- Benefits ---------- #}

Everything you get with Premium

{# Features are admin-configured (app/premium/config). #}
{% for b in features %}

{{ b.title }}

{% if b.description %}

{{ b.description }}

{% endif %}
{% endfor %}
{# ---------- How Premium works ---------- #}

How Premium works

1

Pay for a plan

Pay by UPI, bank transfer or cash using the details on the request page.

2

Submit a request

Tell us your plan and payment reference so we can verify it.

3

Get activated

An admin verifies your payment and Premium is switched on for your account.

{# ---------- Payment instructions ---------- #}
Student Bazaar doesn't process payments in-app. Pay out-of-app, then submit a request โ€” an admin activates your Premium after verifying the payment. {# Payment methods are admin-configured; only enabled ones are shown. #}
    {% if payment_settings.enable_upi and payment_settings.active_upi_id %}
  • UPI: {{ payment_settings.active_upi_id }}
  • {% endif %} {% if payment_settings.enable_bank %}
  • Bank transfer: A/C {{ payment_settings.account_number or 'โ€”' }} ยท IFSC {{ payment_settings.ifsc or 'โ€”' }}
  • {% endif %} {% if payment_settings.enable_cash %}
  • Cash: {{ payment_settings.cash_instructions or 'Ask a campus coordinator.' }}
  • {% endif %}
{# ---------- FAQ ---------- #}

Frequently asked questions

{% set faqs = [ {'q': 'How do I pay for Premium?', 'a': 'Pay out-of-app by UPI, bank transfer or cash using the details above, then submit a Premium request with your transaction reference. We don\'t process payments inside the app.'}, {'q': 'How long until my Premium is activated?', 'a': 'Requests are usually reviewed within 24 hours. Once an admin verifies your payment, Premium is activated instantly on your account.'}, {'q': 'What happens when my subscription expires?', 'a': 'Your benefits simply switch off at the expiration date. You can renew anytime by submitting a new request.'}, {'q': 'Can I get a refund?', 'a': 'Refunds are not initiated inside CampusCart. If you believe a refund is due, contact support and it will be processed through the original payment provider.'}, {'q': 'Which features are included?', 'a': 'Unlimited messaging, an ad-free experience, the premium seller badge, featured listings, advanced seller analytics and priority support are all included.'}, {'q': 'What does Priority Support cover?', 'a': 'Premium members get front-of-the-queue help from our team: faster responses to account issues, priority handling of bug reports, faster review of reported listings and users, and priority assistance with Premium features like Featured Listings and Analytics. Priority Support applies to CampusCart platform services only โ€” CampusCart does not mediate or guarantee transactions between buyers and sellers.'} ] %} {% for f in faqs %}

{{ f.a }}
{% endfor %}
{# ---------- Roadmap ---------- #}

Premium roadmap

Here's what's live today and what's coming next.

Available now

  • Unlimited Messaging
  • Ad-Free Experience
  • Premium Seller Badge
  • Featured Listings
  • Advanced Seller Analytics
  • Priority Support

Priority Support covers CampusCart platform services only โ€” not transactions between buyers and sellers.

Coming soon

  • More Premium perks in the works

We're always improving Premium โ€” new benefits are on the way.

{# ---------- Final CTA ---------- #} {% if not pending_request %}

Ready to go Premium?

Join students getting more out of the campus marketplace.

Request Premium
{% endif %} {% endif %}
{% endblock %} {% block scripts %} {% if config.PAYMENTS_ENABLED and not active_subscription and not pending_request %} {% endif %} {% endblock %}