add agent panel

This commit is contained in:
ns77@siliconpin.com
2025-09-01 11:32:55 +00:00
parent 04129226ec
commit 5eb54e6038
4 changed files with 20 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
<?php
if(!isset($_SESSION) && empty($_SESSION['user_id'])){
echo "<script>window.location.href = '/Agent/agent-login'</script>";
exit;
}
function getTotalAmount(array $rows): float {
// array_column diye sudhu AT_AMOUNT gulo niye ashbo
$amounts = array_column($rows, 'AT_AMOUNT');