<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="nUe3p1mQveCc0oNl6UWdbUKg8A4IWynRi1XCuPOP">
    <title>SMARTLAB DEVELOPER - Dashboard</title>
    <meta name="title" content="Bdlon - Home">

    <meta name="description" content="Bdlon - Unlimited Quick Loan Site">
    <meta name="keywords"
    content="Bdlon.com,Instant loan BD, online loan Bangladesh, personal loan BD, business loan BD, quick cash loan BD, low-interest loans BD, loan application Bangladesh, taka loan online, fast loan approval BD, emergency loan BD, home loan Bangladesh, car loan BD, e">
    <link rel="icon" href="/assets/images/logoicon/favicon.png">



    <link rel="apple-touch-icon" href="/assets/images/logoIcon/logo.png">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Bdlon - Home">

    <meta itemprop="name" content="Bdlon - Home">
    <meta itemprop="description" content="Bdlon - Unlimited Quick Loan Site">
    <meta itemprop="image" content="/assets/images/logoIcon/logo.png">

    <meta property="og:type" content="website">
    <meta property="og:title" content="Bdlon - Unlimited Quick Loan Site">
    <meta property="og:description" content="Bdlon - Unlimited Quick Loan Site">
    <meta property="og:image" content="/assets/images/logoIcon/logo.png">
    <meta property="og:image:type" content="png">
    <meta property="og:image:width" content="1180">
    <meta property="og:image:height" content="600">
    <meta property="og:url" content="https://loan365.live/">
    <meta name="twitter:card" content="summary_large_image">


    <!-- Bootstrap CSS -->
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap JS Bundle (includes Popper) -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://loan365.live/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://loan365.live/assets/css/boxicons.css">
    <link rel="stylesheet" href="https://loan365.live/assets/css/custom.css">
    <link href="https://cdn.jsdelivr.net/npm/boxicons/css/boxicons.min.css" rel="stylesheet">

</head>

<body>
    <!-- Your content goes here -->
</body>

</html>
<!-- App Header -->
<div class="appHeader text-light" style="background: #00f5bc;">


    <div class="left">
        <a href="#" class="headerButton" data-bs-toggle="modal" data-bs-target="#sidebarPanel">
            <img src="https://i.postimg.cc/HW8f8V9r/pngtree-casual-man-flat-design-avatar-profile-picture-vector-png-image-15526568.png" alt="avatar" class="img-fluid border rounded-circle"
                style="width: 40px;height: 40px;">

        </a>
    </div>


    <div class="pageTitle left text-dark">{{ $user->firstname }} {{ $user->lastname }}</div>
    <div class="pageTitle left" style="margin-top: 15px;font-size: 12px;">
        <span id="tap" onclick="showBalance()">Tap To Balance</span>
        <span id="bal">{{auth()->user()->balance}}</span>
    </div>

    <!-- External JavaScript file -->
    <script>
    function showBalance() {
        var balanceElement = document.getElementById("bal");
        var tapElement = document.getElementById("tap");

        // Show balance
        balanceElement.style.display = "inline";
        tapElement.textContent = ""; // Change button text

        // After 5 seconds, revert back to "Tap To Balance"
        setTimeout(function() {
            balanceElement.style.display = "none";
            tapElement.textContent = "Tap To Balance"; // Change button text back
        }, 5000);
    }
    </script>
    <div class="center">
        <a href="/user/dashboard" class="headerButton">
            <i class="bx bx-home-circle bx-tada"
                style="font-size: 25px; background: #1c93e3; color: #ffff; padding: 10px; border: 2px solid #ddd; border-radius: 50%; margin-left: 60px;"></i>
        </a>

    </div>
    <div class="right">
        <a href="/user/logout">
            <span class="rounded-full absolute"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
                    fill="currentColor" aria-hidden="true" class="h-7 font-bold cursor-pointer w-7 text-light"
                    style="margin-right: 5px;background: none;color:#fff;padding: 3px;border-radius: 50%;width: 35px;">
                    <path fill-rule="evenodd"
                        d="M7.5 3.75A1.5 1.5 0 006 5.25v13.5a1.5 1.5 0 001.5 1.5h6a1.5 1.5 0 001.5-1.5V15a.75.75 0 011.5 0v3.75a3 3 0 01-3 3h-6a3 3 0 01-3-3V5.25a3 3 0 013-3h6a3 3 0 013 3V9A.75.75 0 0115 9V5.25a1.5 1.5 0 00-1.5-1.5h-6zm10.72 4.72a.75.75 0 011.06 0l3 3a.75.75 0 010 1.06l-3 3a.75.75 0 11-1.06-1.06l1.72-1.72H9a.75.75 0 010-1.5h10.94l-1.72-1.72a.75.75 0 010-1.06z"
                        clip-rule="evenodd"></path>
                </svg></span>
        </a>

    </div>
</div>
<!-- * App Header -->
<br><br><br>

<style>
.loanbox {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    font-size: 1.5rem;
    background-color: #00f5bc;
    border-radius: 5px;
}

.range-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    padding: 6px;
    margin: 0 2px;
    background-color: #00f5bc;
    color: black;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 12px;
}

.range-label i {
    font-size: 18px;
    margin-bottom: 4px;
}

.range-label:hover {
    background-color: #4cc85a;
}

.active-label {
    background-color: #4cc85a;
    font-weight: bold;
    color: black;
}

@media (max-width: 576px) {
    .range-label {
        font-size: 10px;
        width: 49px;
    }

    .range-label i {
        font-size: 16px;
    }
}

.total_loan_detail_pcs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    cursor: pointer;
    outline: none;
    border-radius: 15px;
    height: 10px;
    background: #4cc85a;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 25px;
    width: 15px;
    background-color: #f50;
    border-radius: 30%;
    border: none;
    transition: .2s ease-in-out;
}

input[type="range"]::-moz-range-thumb {
    height: 25px;
    width: 15px;
    background-color: #000;
    border-radius: 30%;
    border: none;
    transition: .2s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0px 0px 0px 13px rgba(19, 9, 5, 0.28)
}

input[type="range"]:active::-webkit-slider-thumb {
    box-shadow: 0px 0px 0px 13px rgba(19, 9, 5, 0.28)
}

input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0px 0px 0px 13px rgba(19, 9, 5, 0.28)
}

input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0px 0px 0px 13px rgba(19, 9, 5, 0.28)
}

input[type="range"]:active::-moz-range-thumb {
    box-shadow: 0px 0px 0px 13px rgba(19, 9, 5, 0.28)
}

input[type="range"]:focus::-moz-range-thumb {
    box-shadow: 0px 0px 0px 13px rgba(19, 9, 5, 0.28)
}

.mx-10 {
    margin: 20px 0px;
}

.amountBtn {
    color: #000;
    background: #ff0000;
}

.submitBtn {
    color: #000;
    background: #4cc85a;
}
</style>




<div class="container">

    <div id="carouselExampleAutoplaying" class="carousel slide mb-1 p-0" data-bs-ride="carousel">
        <div class="carousel-inner">
            <div class="carousel-item active">
                <a href="https://www.daraz.com.bd/" target="_blank">
                    <img src="https://i.postimg.cc/mg5jNV54/Black-and-Yellow-Dark-Modern-Company-Business-Facebook-Cover.png" class="d-block w-100 rounded" alt="SiteDokan">
                </a>
            </div>
            <div class="carousel-item">
                <a href="https://www.daraz.com.bd/" target="_blank">
                    <img src="https://i.postimg.cc/mg5jNV54/Black-and-Yellow-Dark-Modern-Company-Business-Facebook-Cover.png" class="d-block w-100 rounded" alt="SiteDokan">
                </a>
            </div>
            <div class="carousel-item">
                <a href="https://www.daraz.com.bd/" target="_blank">
                    <img src="https://i.postimg.cc/mg5jNV54/Black-and-Yellow-Dark-Modern-Company-Business-Facebook-Cover.png" class="d-block w-100 rounded" alt="SiteDokan">
                </a>
            </div>
        </div>
    </div>


    <div class="px-2 pt-0">

        <div class="row">


            <div align="center" class="col-1 pt-1 mb-0" style="background: #00f5bc;border-radius: 5px 0px 0px 5px;">
                <i class="bx bxs-bell bx-tada" style="color: #000;font-size: 25px;"></i>
            </div>
            <div class="col-11" style="background: #00f5bc;border-radius: 0px 5px 5px 0px;">
                <marquee behavior="scroll" direction="left">
                    <h6 class="align-middle text-light mt-1 mb-0 text-dark">DEVELOPER BY SMARTLAB</h6></h6>
                </marquee>
            </div>
        </div>
        <div class="row my-1" style="background: #f9f9f9; border: 0.5px solid #000;border-radius: 10px;">
            <h4 class="text-[#00f5bc] text-xl font-bold"
                style="color: #00f5bc;border-bottom: 0.5px solid #000;padding:12px;">Loan - services <span class="d-none">Today
                    : 1</span> <span class="d-none">Total : 142</span></h4>

            <div class="col-12 text-center">
                <h6>ঋণের পরিমাণ</h6>
                <div class="loanbox p-1">
                    <span>৳ <label id="loandetail_amount">5000</label></span>
                </div>
                <form method="POST" action="/user/deposit" class="mt-1" onsubmit="updateLoanPrice()">
                    <input type="hidden" name="csrf_token"
                        value="db1e9e82acf60f72a6ff63dad5c733a75bd22c662361df70652a2d7ad03046f5">
                    <input type="hidden" name="loan_id" id="loan_id" value="1">
                    <input type="hidden" name="loan_price" id="loan_price" value="">


                    <div class="d-flex justify-content-center mb-2"><span class="total_loan_detail_pcs"><span
                                class="range-label active-label" data-value="0" onclick="monthSession(1)"><i
                                    class="fas fa-coins"></i> লোনঃ ১</span><span class="range-label " data-value="1"
                                onclick="monthSession(2)"><i class="fas fa-coins"></i> লোনঃ ২</span><span
                                class="range-label " data-value="2" onclick="monthSession(3)"><i
                                    class="fas fa-coins"></i> লোনঃ ৩</span><span class="range-label " data-value="3"
                                onclick="monthSession(4)"><i class="fas fa-coins"></i> লোনঃ ৪</span><span
                                class="range-label " data-value="4" onclick="monthSession(5)"><i
                                    class="fas fa-coins"></i> লোনঃ ৫</span><span class="range-label " data-value="5"
                                onclick="monthSession(6)"><i class="fas fa-coins"></i> লোনঃ ৬</span></span></div>


                    <input type="range" min="0" max="5" value="0" id="range" step="1" class="form-range"
                        onchange="updateAmount()">
                    <p class="d-none">ঋণের পরিমাণ: <span id="selected_amount">1</span></p>

                    <h6>ঋণের মেয়াদ (মাস)</h6>


                    <div id="selectmonth1" class="d-flex justify-content-center gap-2 mb-2 d-none">
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(1)">৩ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(2)">৬ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(3)">৯ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(4)">১২ মাস</span>
                    </div>
                    <div id="selectmonth2" class="d-flex justify-content-center gap-2 mb-2 d-none">
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(5)">৩ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(6)">৬ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(7)">৯ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(8)">১২ মাস</span>
                    </div>
                    <div id="selectmonth3" class="d-flex justify-content-center gap-2 mb-2 d-none">
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(9)">৩ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(10)">৬ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(11)">৯ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(12)">১২ মাস</span>
                    </div>
                    <div id="selectmonth4" class="d-flex justify-content-center gap-2 mb-2 d-none">
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(13)">৩ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(14)">৬ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(15)">৯ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(16)">১২ মাস</span>
                    </div>
                    <div id="selectmonth5" class="d-flex justify-content-center gap-2 mb-2 d-none">
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(17)">৩ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(18)">৬ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(19)">৯ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(20)">১২ মাস</span>
                    </div>
                    <div id="selectmonth6" class="d-flex justify-content-center gap-2 mb-2 d-none">
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(21)">৩ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(22)">৬ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(23)">৯ মাস</span>
                        <span class="amountBtn btn btn-outline-success" onclick="selectSession(24)">১২ মাস</span>
                    </div>


















                    <div id="session1" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যঃ ৩</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ১৭৫০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৫২৫০ টাকা</p>
                    </div>

                    <div id="session2" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৬</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৯১৬ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৫৫০০ টাকা</p>
                    </div>

                    <div id="session3" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৯</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৬৩৮ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৫৭৫০ টাকা</p>
                    </div>

                    <div id="session4" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ২০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ১২</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৬০০০ টাকা</p>
                    </div>





                    <div id="session5" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ১০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যঃ ৩</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৩৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ১০৫০০ টাকা</p>
                    </div>

                    <div id="session6" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ১০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৬</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ১৮৩৩ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ১১০০০ টাকা</p>
                    </div>

                    <div id="session7" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ১০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৯</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ১২৭৭ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ১১৫০০ টাকা</p>
                    </div>

                    <div id="session8" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ১০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ২০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ১২</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ১০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ১২০০০ টাকা</p>
                    </div>






                    <div id="session9" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ১৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যঃ ৩</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৫২৫০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ১৫৭৫০ টাকা</p>
                    </div>

                    <div id="session10" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ১৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৬</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ২৭৫০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ১৬৫০০ টাকা</p>
                    </div>

                    <div id="session11" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ১৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৯</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ১৯১৬ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ১৭২৫০ টাকা</p>
                    </div>

                    <div id="session12" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ১৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ২০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ১২</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ১৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ১৮০০০ টাকা</p>
                    </div>






                    <div id="session13" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ২০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যঃ ৩</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৭০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ২১০০০ টাকা</p>
                    </div>

                    <div id="session14" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ২০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৬</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৩৬৬৬ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৫৫০০ ২২০০০</p>
                    </div>

                    <div id="session15" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ২০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৯</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ২৫৫৫ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ২৩০০০ টাকা</p>
                    </div>

                    <div id="session16" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ২০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ২০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ১২</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ২০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ২৪০০০ টাকা</p>
                    </div>






                    <div id="session17" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ২৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যঃ ৩</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৮৭৫০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ২৬২৫০ টাকা</p>
                    </div>

                    <div id="session18" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ২৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৬</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৪৫৮৩ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ২৭৫০০ টাকা</p>
                    </div>

                    <div id="session19" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ২৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৯</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৩১৯৪ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ২৮৭৫০ টাকা</p>
                    </div>

                    <div id="session20" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ২৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ২০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ১২</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ২৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৩০০০০ টাকা</p>
                    </div>





                    <div id="session21" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ৩০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যঃ ৩</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ১০৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৩১৫০০ টাকা</p>
                    </div>

                    <div id="session22" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ৩০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৬</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৫৫০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৩৩০০০ টাকা</p>
                    </div>

                    <div id="session23" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ৩০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ১৫%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ৯</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৩৮৩৩ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৩৪৫০০ টাকা</p>
                    </div>

                    <div id="session24" class="alert card text-center text-dark"
                        style="display: none;border: 1px solid #000;">
                        <p style="border: 1px solid #ddd;">জামানতঃ ৩০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">সুদের হারঃ ২০%</p>
                        <p style="border: 1px solid #ddd;">মোট কিস্তি সংখ্যাঃ ১২</p>
                        <p style="border: 1px solid #ddd;">কিস্তির পরিমানঃ ৩০০০ টাকা</p>
                        <p style="border: 1px solid #ddd;">মোট পরিশোধকৃতঃ ৩৬০০০ টাকা</p>
                    </div>

                    <input type="submit" value="Apply" class="btn submitBtn my-3 w-100">
                </form>
            </div>

        </div>


        <div class="row mt-1" style="background: #f9f9f9; border: 0.5px solid #000;border-radius: 10px;">
            <h4 class="text-[#00f5bc] text-xl font-bold"
                style="color: #00f5bc;border-bottom: 0.5px solid #000;padding:12px;">Video</h4>

            <div class="video-container">
                <video controls>
                    <source src="/assets/video/loan.mp4" type="video/mp4">
                </video>
            </div>
            <style>
            .video-container {
                position: relative;
                width: 100%;
                padding-bottom: 56.25%;
                /* Aspect ratio for 16:9 */
                height: 0;
                overflow: hidden;
                background: #faec80;
            }

            .video-container video {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
            </style>
        </div>
        <div class="row mt-1" style="background: #f9f9f9; border: 0.5px solid #000;border-radius: 10px;">
            <h4 class="text-[#00f5bc] text-xl font-bold"
                style="color: #00f5bc;border-bottom: 0.5px solid #000;padding:12px;">My Wallet</h4>

            <div class="col-4 text-center">
                <a href="/user/deposit" style="text-decoration: none; color: inherit;">
                    <i class="bx bx-shield-plus bx-tada"
                        style="font-size: 25px; background: #00f5bc; color: #000f; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>

                    <br>
                    <h6 style="font-size: 12px;font-weight: 400;">Deposit</h6>
                </a>
            </div>


            <div class="col-4 text-center">
                <a href="/user/withdraw" style="text-decoration: none; color: inherit;">
                    <i class="bx bx-shield-minus bx-tada"
                        style="font-size: 25px; background: #00f5bc; color: #000f; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>
                    <br>
                    <h6 style="font-size: 12px;font-weight: 400;">Cash Out</h6>
                </a>
            </div>

            <div class="col-4 text-center">
                <a href="/user/profile-setting" style="text-decoration: none; color: inherit;">
                    <i class="bx bx-user-circle bx-tada"
                        style="font-size: 25px; background: #00f5bc; color: #000f; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>
                    <br>
                    <h6 style="font-size: 12px;font-weight: 400;">Profile</h6>
                </a>
            </div>

            <div class="col-4 text-center">
                <a href="/user/deposit/history" style="text-decoration: none; color: inherit;">
                    <i class="bx bx-spreadsheet bx-tada"
                        style="font-size: 25px; background: #00f5bc; color: #000f; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>
                    <br>
                    <h6 style="font-size: 12px;font-weight: 400;">Dp History</h6>
                </a>
            </div>


            <div class="col-4 text-center">
                <a href="/user/transactions" style="text-decoration: none; color: inherit;">
                    <i class="bx bx-spreadsheet bx-tada"
                        style="font-size: 25px; background: #00f5bc; color: #000f; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>
                    <br>
                    <h6 style="font-size: 12px;font-weight: 400;">Wd History</h6>
                </a>
            </div>

            <div class="col-4 text-center">
                <a href="/helpline.php" style="text-decoration: none; color: inherit;">
                    <i class="bx bx-phone-call bx-tada"
                        style="font-size: 25px; background: #00f5bc; color: #000f; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>
                    <br>
                    <h6 style="font-size: 12px;font-weight: 400;">Help</h6>
                </a>
            </div>


        </div>


        <div class="row mt-1" style="background: #f9f9f9; border: 0.5px solid #000;border-radius: 10px;">

            <h4 class="text-[#00f5bc] text-xl font-bold"
                style="color: #00f5bc;border-bottom: 0.5px solid #000;padding:12px;">Contact</h4>

            <!--<div class="col-4 text-center">-->
            <!-- <a href="https://vt.tiktok.com/ZSYED5XUK/" target="_blank" style="text-decoration: none; color: inherit;">-->
            <!-- <i class="bx bxl-tiktok bx-tada" style="font-size: 25px; background: #2d1525; color: #ffff; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>-->
            <!--<br>-->
            <!--<h6 style="font-size: 12px;font-weight: 400;">Tiktok</h6>-->
            <!--</a>-->
            <!--</div> -->


            <div class="col-6 text-center">
                <a href="#" target="_blank" style="text-decoration: none; color: inherit;">
                    <i class="bx bxl-whatsapp bx-tada"
                        style="font-size: 25px; background: #4cc85a; color: #ffff; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>
                    <br>
                    <h6 style="font-size: 11px; font-weight: 400;">Whatsapp</h6>
                </a>
            </div>


            <!--<div class="col-4 text-center">-->
            <!-- <a href="https://youtu.be/f_bAblAVGW0" target="_blank" style="text-decoration: none; color: inherit;">-->
            <!-- <i class="bx bxl-youtube bx-tada" style="font-size: 25px; background: #00f5bc; color: #ffff; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>-->
            <!--<br>-->
            <!--<h6 style="font-size: 12px;font-weight: 400;">Youtube</h6>-->
            <!--</a>-->
            <!--</div>-->


            <div class="col-6 text-center">
                <a href="#" target="_blank" style="text-decoration: none; color: inherit;">
                    <i class="bx bxl-telegram bx-tada"
                        style="font-size: 25px; background: #1c93e3; color: #000f; padding: 10px; border: 2px solid #4cc85a; border-radius: 50%;"></i>
                    <br>
                    <h6 style="font-size: 12px;font-weight: 400;">Telegram</h6>
                </a>
            </div>
        </div>



        <div class="row mt-1" style="background: #f9f9f9; border: 0.5px solid #000;border-radius: 10px;">

            <h4 class="text-[#00f5bc] text-xl font-bold"
                style="color: #00f5bc;border-bottom: 0.5px solid #000;padding:12px;">Our Partner</h4>
            <div style="align-items: center;" class="col-4">
                <a href="https://www.daraz.com.bd/" target="_blank">
                    <div style="height: 100%; border-radius: 3px;" class="row-3 p-1">
                        <center> <img src="https://i.postimg.cc/HW8f8V9r/pngtree-casual-man-flat-design-avatar-profile-picture-vector-png-image-15526568.png" alt="Bdlon" width="50" height="40">
                        </center>
                        <h6 class="text-center" style="font-size: 12px;font-weight: 400;">BRAC</h6>
                    </div>

                </a>
            </div>
            <div style="align-items: center;" class="col-4">
                <a href="https://www.ajkerdeal.com/" target="_blank">
                    <div style="height: 100%; border-radius: 3px;" class="row-3 p-1">
                        <center> <img src="https://i.postimg.cc/HW8f8V9r/pngtree-casual-man-flat-design-avatar-profile-picture-vector-png-image-15526568.png" alt="Bdlon" width="50" height="40">
                        </center>
                        <h6 class="text-center" style="font-size: 12px;font-weight: 400;">ASA</h6>
                    </div>
                </a>
            </div>
            <div style="align-items: center;" class="col-4">
                <a href="https://www.othoba.com/" target="_blank">
                    <div style="height: 100%; border-radius: 3px;" class="row-3 p-1">
                        <center> <img src="https://i.postimg.cc/HW8f8V9r/pngtree-casual-man-flat-design-avatar-profile-picture-vector-png-image-15526568.png" alt="Bdlon" width="50" height="40">
                        </center>
                        <h6 class="text-center" style="font-size: 12px;font-weight: 400;">Grameen</h6>
                    </div>
                </a>
            </div>


        </div>
    </div>

































</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
    const toastEl = document.querySelector('.toast');
    if (toastEl) {
        const toast = new bootstrap.Toast(toastEl);
        toast.show();
        setTimeout(() => {
            window.location.href = 'dashboard.php';
        }, 3000);
    }
});

// Function to update loan amount and UI when range slider is changed
function updateAmount() {
    const range = document.getElementById('range');
    const selectedAmount = document.getElementById('selected_amount');
    const loandetailAmount = document.getElementById('loandetail_amount');
    const labels = document.querySelectorAll('.range-label');

    // Update displayed amount based on range value
    const amount = (parseInt(range.value) + 1) * 5000;
    selectedAmount.textContent = amount;
    loandetailAmount.textContent = amount;

    // Update label active states
    labels.forEach(label => {
        if (label.dataset.value === range.value) {
            label.classList.add('active-label');
        } else {
            label.classList.remove('active-label');
        }
    });
}

// Add click event listener for range labels
document.querySelectorAll('.range-label').forEach(label => {
    label.addEventListener('click', function() {
        document.getElementById('range').value = this.dataset.value;
        updateAmount();
    });
});

// Initialize the amount on page load
document.addEventListener("DOMContentLoaded", updateAmount);

// Function to select loan duration
function SelectSession(months) {
    alert(`Selected loan period: ${months} months`);
}
</script>
<script>
function selectSession(sessionId) {
    // Hide all sessions
    document.querySelectorAll('.alert.card').forEach(function(el) {
        el.style.display = 'none';
    });

    // Show the selected session
    document.getElementById('session' + sessionId).style.display = 'block';
}
</script>
<script>
window.onload = function() {
    // Make selectmonth1 the default visible option on page load
    monthSession(1);
};

function monthSession(loanType) {
    // Hide all selectmonth divs initially
    for (let i = 1; i <= 6; i++) {
        document.getElementById("selectmonth" + i).classList.add("d-none");
    }

    // Show the selected selectmonth div based on loanType
    if (loanType === 1) {
        document.getElementById("selectmonth1").classList.remove("d-none");
    } else if (loanType === 2) {
        document.getElementById("selectmonth2").classList.remove("d-none");
    } else if (loanType === 3) {
        document.getElementById("selectmonth3").classList.remove("d-none");
    } else if (loanType === 4) {
        document.getElementById("selectmonth4").classList.remove("d-none");
    } else if (loanType === 5) {
        document.getElementById("selectmonth5").classList.remove("d-none");
    } else if (loanType === 6) {
        document.getElementById("selectmonth6").classList.remove("d-none");
    }

    // Update the active class on the labels
    const labels = document.querySelectorAll('.range-label');
    labels.forEach(label => {
        label.classList.remove('active-label');
    });
    document.querySelector(`.range-label[data-value="${loanType - 1}"]`).classList.add('active-label');
}
</script>
<script>
function updateLoanPrice() {
    let loanAmount = document.getElementById('loandetail_amount').innerText.trim();
    loanAmount = parseFloat(loanAmount) / 10; // Divide by 10
    document.getElementById('loan_price').value = loanAmount;
}
</script>

</div>
<br><br>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
    integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous">
</script>
<!-- Toastr JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
<script>
$(document).ready(function() {
    // Check for logout parameter in URL
    if (window.location.search.includes('logout=1')) {
        toastr.info('You have been logged out successfully.');
    }

    $('#loginForm').on('submit', function(event) {
        event.preventDefault();

        $.ajax({
            type: 'POST',
            url: 'login.php', // Ensure this is the correct path to your PHP script
            data: $(this).serialize(),
            dataType: 'json',
            success: function(response) {
                if (response.status === 'success') {
                    toastr.success(response.message);
                    setTimeout(function() {
                        window.location.href =
                        'dashboard.php'; // Redirect after 5 seconds
                    }, 3000);
                } else {
                    toastr.error(response.message);
                }
            },
            error: function() {
                toastr.error('An unexpected error occurred!');
            }
        });
    });
});
</script>

</body>

</html>