new commit for general dashboard

This commit is contained in:
meghamalore
2024-05-07 19:13:44 +05:30
parent b853d0e8df
commit 478ef3ef7f

View File

@@ -150,20 +150,20 @@
<div class="m-0">
<div class="d-flex flex-column mb-2">
<span class="fs-2 fw-bold text-gray-800 me-2 lh-1 ls-n2" id="total-gross-commission-sum"> 0.0</span>
<span class="fs-7 text-black-400">Net Received</span>
<span class="fs-7 text-black-400">Gross Received</span>
</div>
</div>
<div class="m-0">
<div class="d-flex flex-column mb-2">
<span class="fs-2 fw-bold text-gray-800 me-2 lh-1 ls-n2" id="total-net-commission-sum" > 0.0</span>
<span class="fs-7 text-black-400">Gross Earn</span>
<span class="fs-7 text-black-400">Net Earn</span>
</div>
</div>
<div class="chart d-flex">
<div class="m-0">
<div class="d-flex flex-column mb-2">
<span class="fs-7 text-black-400">From</span>
<span class=""><input type="date" name="from" id="from-date"></span>
<span class=""><input type="date" name="from" id="from-date" ></span>
</div>
</div>
<div class="m-0">
@@ -262,5 +262,21 @@
},
});
}
</script>
<script>
// Get today's date
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
var mm = String(today.getMonth() + 1).padStart(2, '0'); // January is 0!
var yyyy = today.getFullYear();
today = yyyy + '-' + mm + '-' + dd;
// Set max attribute for both inputs to prevent selecting future dates
document.getElementById("from-date").setAttribute("max", today);
document.getElementById("to-date").setAttribute("max", today);
</script>
@endsection