{% extends 'core/base.html' %} {% load static %} {% block title %}Vendor Admin{% endblock title %} {% block css %} /* Reset some default styles */ body, h1, p { margin: 0; padding: 0; } /* Dashboard Container Styles */ .dashboard { font-family: Arial, sans-serif; background-color: #f7f7f7; border: 1px solid #e0e0e0; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); max-width: 800px; margin: 0 auto; margin-bottom: 20px; } /* Header Styles */ header { text-align: center; margin-bottom: 20px; } header h1 { font-size: 28px; color: black; margin-bottom: 10px; } .balance, .paid-amount { display: inline-block; margin: 0 10px; } .balance-amount, .amount { font-size: 20px; color: #ca373d; font-weight: bold; } /* My Products Styles */ .products { margin-bottom: 30px; } .products h2 { font-size: 24px; color: #333; margin-bottom: 10px; } .product-table { width: 100%; border-collapse: collapse; margin-top: 20px; } .product-table th, .product-table td { padding: 10px; text-align: left; border-bottom: 1px solid #ddd; } .product-table th { background-color: #ca373d; color: #fff; font-weight: bold; } .product-table tbody tr:nth-child(even) { background-color: #f2f2f2; } .product-table tbody tr:hover { background-color: #ddd; } .add_prod{ text-decoration: none; color: #ddd; } .add-product { margin-top: 10px; background-color: #ca373d; color: #fff; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background-color 0.2s ease-in-out; } /* My Orders Styles */ .orders h2 { font-size: 24px; color: #333; margin-bottom: 10px; } .order-status { display: flex; justify-content: space-between; background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .received-orders, .completed-orders { text-align: center; } .received-count, .completed-count { font-weight: bold; color: #2e4ead; font-size: 18px; } select{ padding: 7px 1em; margin-bottom:10px; } input[type="text"], input[type="number"], input[type="password"] { width: 20%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; } .hide{ visibility: hidden; } {% endblock css %} {% block content %}

Welcome, {{vendor.name}}

Balance:

${{vendor.get_balance}}

My Products

{% for product in products %} {% endfor %}
Serial Number Product Name Price
{{ forloop.counter }} {{ product.title }} ${{ product.price }}

Check Delivery Availability

Tarrif Calculation- For Information Purpose Only

My Orders

{% if orders %} {% for order in orders %}

#{{ order.id }} - {{ order.first_name }} {{ order.last_name }}

Name: {{ order.first_name }} {{ order.last_name }}
Address:{{ order.address }}
Zip and place:{{ order.zipcode }} {{ order.place }}
E-mail: {{ order.email }}
Phone: {{ order.phone }} {% for item in order.items.all %} {% if item.vendor == request.user.vendor %} {% endif %} {% endfor %}
Title Price Quantity Paid Total
{{ item.product.title }} ${{ item.product.price }} {{ item.quantity }} {{ item.vendor_paid|yesno:"Yes,No" }} ${{ item.get_total_price }}
{% endfor %} {% else %}

Oops! Not any Order

{% endif %}
{% endblock content %} {% block scripts %} {% endblock scripts %}