{% extends "customer_main.html" %}
{%load static%}

{% block modules_section %}
<!-- This block is intentionally left empty to exclude the modules section -->
{% endblock modules_section %}

{% block content %}



<div class="w-full flex flex-col gap-5 mt-5 font-poppinsLight">
    <div class="w-full h-fit bg-white rounded-md shadow-md">
        <div class="grid grid-cols-1 xxlg1:grid-cols-2">
            <div
                class="w-full pb-9 flex flex-col items-center justify-between rounded-lb-none xxlg1:rounded-l-md h-full rounded-tl-md rounded-tr-md xxlg1:rounded-tr-none gap-10 overflow-hidden relative bg-gradient-to-b from-gray-400 via-gray-500 to-blue-950">
                <div
                    class="absolute top-0 left-32 w-[400px] h-[400px] bg-slate-800 filter blur-xl opacity-70 animate-blob animation-delay-2000">
                </div>
                <div
                    class="absolute top-20 right-0 w-[400px] h-[400px] bg-osiblue filter blur-xl opacity-70 animate-blob animation-delay-2000">
                </div>
                <div
                    class="absolute bottom-0 left-10 w-[400px] h-[400px] bg-blue-900 filter blur-xl opacity-70 animate-blob animation-delay-2000">
                </div>
                <div
                    class="absolute bottom-0 right-36 w-[400px] h-[400px] bg-gray-400 filter blur-xl opacity-70 animate-blob animation-delay-2000">
                </div>

                <div></div>

                <!-- INVOICE DETAILS -->
                <div class="w-[90%] s:w-[85%] xll:w-[75%] h-fit flex flex-col gap-5 justify-center items-center py-9 bg-white rounded-md z-10 shadow-md duration-300">
                    <img src="{% static 'images/ositcom_logos/full-logo.png' %}" class="w-[120px]">

                    <div class="w-full bg-osiblue py-3 px-3 flex justify-between items-center text-white mt-5">
                        <p>Due Date: <span class="font-semibold">{{payment.date_due}}</span></p>
                    </div>

                    <div class="w-full p-5">
                        <p class="font-poppinsBold text-secondosiblue text-[17px]">Bill To:</p>
                        <p class="text-secondosiblue font-light">{{payment.order.customer.user.first_name}} {{payment.order.customer.user.last_name}}</p>
                        <p class="text-secondosiblue font-light">{{payment.order.customer.mobile_number}}</p>
                        <p class="text-secondosiblue font-light">{{payment.order.customer.user.email}}</p>
                    </div>

                    <div class="w-full bg-osiblue py-3 px-3 flex justify-start items-center text-white">
                        <p>Invoice Items</p>
                    </div>


                    <div class="w-full flex flex-col gap-5 p-5">
                        <ul class="text-secondosiblue font-light list-disc px-5">
                            {% for item in payment.order.orderitem_set.all %}
                            <li>{{item.item.title}}</li>
                            {% endfor %}
                        </ul>

                        <div class="w-full flex justify-end items-center text-secondosiblue text-xl">
                            <p>Total: <span class="font-semibold">${{payment.order.get_cart_total}}</span></p>
                        </div>
                    </div>
                </div>
            </div>



            <!-- CASH PAYMENT CONTAINER -->
            <div class="w-full flex flex-col justify-between items-center gap-5">
                
            </div>
        </div>
    </div>
</div>



{% endblock %}