@extends('Admin.layout')

<style>
    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        margin: 0;
        font-family: "Times New Roman", serif;
        background: #e5e5e5;
    }

    .paper {
        width: 210mm;
        min-height: 297mm;
        margin: auto;
        background: #fff;
        padding: 20mm;
        position: relative;
    }

    /* Outer Border */
    .paper::before {
        content: "";
        position: absolute;
        top: 8mm;
        left: 8mm;
        right: 8mm;
        bottom: 8mm;
        border: 3px double #000;
    }

    /* First page offset (start content after ~70% height when printing) */
    .first-page-offset {
        display: none;
    }


    /* Header */
    .header {
        text-align: center;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .header h1 {
        margin: 0;
        font-size: 20px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .header p {
        margin: 3px 0;
        font-size: 13px;
    }

    .text-center {
        text-align: center !important;
    }

    /* Stamp Box */
    .stamp-box {
        position: absolute;
        top: 20mm;
        right: 20mm;
        width: 120px;
        height: 120px;
        border: 2px dashed #000;
        text-align: center;
        font-size: 12px;
        padding-top: 45px;
    }

    /* Content */
    .content {
        font-size: 14px;
        line-height: 1.9;
        text-align: justify;
    }

    .section-title {
        font-weight: bold;
        margin-top: 15px;
    }

    /* Watermark */
    .watermark {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-30deg);
        font-size: 80px;
        color: rgba(0, 0, 0, 0.04);
    }

    /* Signature Section */
    .signature {
        margin-top: 60px;
        display: flex;
        justify-content: space-between;
    }

    .signature div {
        text-align: center;
        width: 40%;
    }

    .signature span {
        display: block;
        margin-top: 50px;
        border-top: 1px solid #000;
    }

    /* Footer */
    .footer {
        margin-top: 40px;
        font-size: 12px;
        border-top: 1px solid #000;
        padding-top: 5px;
        display: flex;
        justify-content: space-between;
    }

    /* Print Fix */
    @media print {
        body {
            background: none;
        }

        .paper {
            margin: 0;
            box-shadow: none;
            width: auto;
            min-height: auto;
        }

        /* Remove border in print */
        .paper::before {
            display: none;
        }

        /* Push first page content down to ~70% */
        .first-page-offset {
            display: block;
            height: 160mm !important;
            /* ~70% of A4 height */
        }

        .text-nowrap {
            white-space: nowrap !important;
        }
    }

    .paper {
        margin: 0;
        box-shadow: none;
        width: auto;
        min-height: auto;
    }

    /* Remove border in print */
    .paper::before {
        display: none;
    }

    /* Push first page content down to ~70% */
    .first-page-offset {
        height: 200mm;
        /* ~70% of A4 height */
    }


    .paper {
        margin: 0;
        box-shadow: none;
        width: auto;
        min-height: auto;
    }

    .text-wrap {
        text-wrap: nowrap !important;
    }

     .page-break {
    page-break-before: always;
}
.party-block {
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
    color: #000;
}

.party-item {
    page-break-inside: avoid;
    break-inside: avoid;
}

.party-item strong,
.party-item small {
    color: #000 !important;
}

@media print {
    .party-block {
        font-size: 14px;
        line-height: 1.8;
    }

    .party-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
</style>
@section('content')

<div class="d-flex justify-content-between">
    <div>
        <h5><button type="button" class="btn btn-icon bg-white me-2 waves-effect waves-light mb-3"
                style="box-shadow: 0px 9px 12px -2px #66328E1F;">
                <a href="#" onclick="history.back()">
                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
                        stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
                        class="icon icon-tabler">
                        <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                        <path d="M15 6l-6 6l6 6"></path>
                    </svg>
                </a>
            </button>Confirm Details</h5>
    </div>
    <div>
        <button onclick="printBond()" class="btn btn-primary"> Proceed to Print </button>
        <script> function printBond() {
                let iframe = document.createElement('iframe');
                iframe.style.position = 'absolute';
                iframe.style.top = '-10000px';
                iframe.style.left = '-10000px';
                iframe.src = "{{ route('admin.print_bond') }}";
                document.body.appendChild(iframe);
                iframe.onload = function () {
                    iframe.contentWindow.focus();
                    iframe.contentWindow.print();
                };
            }
        </script>
    </div>
</div>
    <div class="paper">

        <!-- Offset only for print -->
        <div class="first-page-offset"></div>

        <!-- <div class="watermark">LEGAL</div>

        <div class="stamp-box">
            Affix
            <br>Stamp
        </div> -->

        <div class="header">
            <h1>MUTUAL CONSENT AGREEMENT</h1>
            <p>Dated : 08.04.2026</p>
            <!-- <p>Non-Judicial Stamp Paper</p> -->
        </div>

        <div class="content">

            <p>This Mutual Consent Agreement is made at Thiruvananthapuram on this 8th day of April, 2026, by and between :</p>

            <!--<p>-->
            <!--    BY AND BETWEEN <b>M/s MADHURA GOLD INTERNATIONAL PVT LTD</b>, having its registered office at-->
            <!--    <b>Ram Tower, TC-28/627(6)/83/1083, Sreekandeswaram, Pettah P.O., Thiruvananthapuram - 695024, Kerala,-->
            <!--        India,</b> hereinafter referred to as the <b>"First Party"</b>,-->
            <!--    AND <b>MR. JOHN KIRAN SALTON SKIDO NIKETHAN,</b>, having its office at-->
            <!--    <b> ST ANDREWS ST XAVIERS COLLEGE P O, TRIVANDRUM, 695586</b> hereinafter referred to as the <b>"Second-->
            <!--        Party"</b>.-->
            <!--</p>-->
              <div class="party-block">

    <div class="party-item">
        <strong>M/s MADHURA GOLD INTERNATIONAL PVT LTD</strong><br>

        <small style="font-size:9px;">CIN : <strong>U32110KL2024PTC085927,</strong></small><br>
        <small style="font-size:9px;">PAN : <strong>AARCM7457K</strong>,</small><br>
        <small style="font-size:9px;">GST : <strong>32AARCM745KIZU</strong></small><br>
        <small style="font-size:9px;">Hallmark : <strong> HM/C-6490615721,</strong></small><br>

        having its registered office at
        <strong>
            Ram Tower, TC-28/627(6)/83/1083,
            Sreekandeswaram, Pettah P.O.,
            Thiruvananthapuram - 695024,
            Kerala, India
        </strong>,
        hereinafter referred to as the
        <strong>"First Party"</strong>
    </div>
            <div class="page-break"></div>
            <div class="text-center">And</div>

    <br>

    <div class="party-item mt-4">
        <strong>.......</strong><br>

        ......, ......<br>


        hereinafter referred to as the
        <strong>"Second Party"</strong>
    </div>

</div>


            <p class="section-title">WHEREAS:</p>
            <p>
                The second party has booked a ............, ...................,
                and ............ from the first party at the current market rate of Rs.
                ........ /- per gram, totaling Rs. ....... /- for the gold value. Including a ......... % labor charge of Rs.
                ......... /-, the subtotal amounts to Rs. ........ /-, with a final total of Rs. ....... /- after the
                application of ....% GST (Rs. ......./-). On this day, the second party has transferred an advance payment
                of Rs. ........... /- to the first party's bank account
            </p>
            <p>
                The Second Party is entitled to collect the product on any day from today by paying the full balance of
                the total booking amount of ............./- from the First Party (who is the jewelry manufacturer and
                wholesale & retail seller), or from franchises operating under the First Party's responsibility, or from
                their manufacturing units, offices, or jewelry outlets.
            </p>
            <p>Under the Billing & Delivery terms, the Second Party may collect the booked ........ , ........... , and ......... at any time within
                a maximum period of 15 Days / 3 Months / 6 Months / 1 Year / 25 Months from today by paying the
                remaining balance after deducting the booking advance of Rs. ........./-from the total sum of
                .........../- (inclusive of making charges and GST).

            </p>
            <p>
                It is hereby mutually agreed that if the Second Party is unable to pay the balance amount and collect
                the .......... , ........... , and ............., the advance amount of Rs. ...... /-shall be refunded
                to the second party along to simple interest calculated from the date of booking (........) until the
                date of refund. Alternatively, gold ornaments equivalent to the value on the date of booking (calculated
                at ....../- per gram) shall be provided to the second party, subject to the making charges and GST
                applicable to the specific design of the chosen ornaments.
            </p>
            <h4 class="text-center">ANNEXURE, TERMS & CONDITIONS</h4>
            <p>The First Party shall use only gold bullion products from authorized Gold Refineries or legal Authorized
                Importers to manufacture the jewelry under this agreement. However, to ensure the availability of
                ornaments under unforeseen circumstances, both parties mutually agree that the First Party may purchase
                products from other leading jewelry manufacturers to provide to the Second Party</p>

            <p>In the case of Diamond jewelry purchases, the actual price of the diamond and its labor charges (Making
                Charges) shall be recorded separately in the bill. If the Second Party wishes to return said diamond
                jewelry to the office or the respective franchise, the refund will be processed after a 25% deduction
                from the value specified in the diamond's certificate.</p>
            <p>Under the buyback provision, the Second Party may return their products and receive an amount equivalent
                to the prevailing market rate of 22K/18K/9K Gold or Gold & Diamond jewelry on the day of sale, subject
                to terms and conditions and after deducting labor charges and wastage charge.</p>
            <p>If previously purchased 22K/18K/9K Gold or 18K / 9K Gold & Diamond jewelry is returned to the company, it
                will be treated as 'Old Gold. The amount shall be payable based on the current market price after
                deducting statutory labor charges and wastage charge</p>
            <p>When returning diamond jewelry, the refund will be calculated based on the price of 1 Cent (2 ML) on the
                date of sale, after a 25% deduction. The price will be calculated in multiples of cents.</p>
            <p class="section-title">Making Charge Details :</p>
            <ul>
                <li>Making charges will vary based on the type and design of the jewelry.</li>

                <li>For ANTIQUE 22K, 18K, 9K Gold, and 18K / 9K Gold & Diamond jewelry, the making charge will be above
                    12.5%.</li>

            </ul>
            <div class="page-break"></div>

            <p class="section-title">Validity & Termination of Contract :</p>
            <ul>
                <li>The tenure of this contract shall be 15 Days / 3 Months / 6 Months / 1 Year / 25 Months starting
                    from the booking date of .......... .</li>

                <li>This purchase agreement shall automatically terminate once the product specified in the bill is
                    collected.</li>
                <li>Both parties mutually agree that regardless of the contract tenure, there shall be no change in the
                    gold weight (grams) equivalent to the amount fixed on the day of booking</li>
                <li>
                    Once the Second Party receives the ordered 22K, 18K, 9K Gold coins or 22K, 18K, 9K Gold/Gold &
                    Diamond ornaments, this agreement shall automatically become null and void.
                </li>
            </ul>
            <div class="signature">
                <div>
                    <span></span>
                    First Party
                </div>

                <div>
                    <span></span>
                    Second Party
                </div>
            </div>
            <div class="page-break"></div>

            <h4 class="text-center">CONSENT LETTER</h4>

            <p>
                I, ........., residing at .........,
                ......., hereby declare that I have paid only an advance amount of ......./- for the purchase of
                products manufactured by the manufacturing unit of Madhura Gold International Company, or products
                sourced from other prominent diamond/gold jewelry manufacturers. I agree to pay the remaining
                ......../- to collect the product. </p>

            <p>
                I am fully satisfied with the purity and quality of the product. I understand that for the .........,
                ........., and ........
                that I have ordered, applicable making charges and wastages will be levied. I agree to collect the
                product within the stipulated time once it has been manufactured. </p>

            <p>
                I fully acknowledge and agree that in any specific circumstance where I have to sell the said product
                back to the manufacturers (the First Party), I will only be entitled to receive the amount equivalent to
                the prevailing gold rate on that day, after the full deduction of the making charges and wastage charge,
            </p>



        </div>

        <div class="signature">
            <div>
                <div class="text-nowrap">Signature of the Second Party
                    <br><small class="text-nowrap">Name : ...........</small><br>
                    <small class="text-nowrap">REG ID : ........</small>
                </div>
            </div>

            <!-- <div>
                <span></span>
                Obligee Signature
            </div> -->
        </div>

        <!-- <div class="footer">
            <div>Witness 1: __________________</div>
            <div>Witness 2: __________________</div>
        </div> -->

    </div>

@endsection
