| 34813 |
aman |
1 |
<section class="px-3">
|
|
|
2 |
<div class="row" style="width: 350px">
|
|
|
3 |
<div class="col-md-12">
|
|
|
4 |
<div class="minimal-table border " style="border-width: 6px !important; border-radius: 5px ">
|
|
|
5 |
<table class="table" id="lmiCreditedIncome">
|
|
|
6 |
<thead>
|
|
|
7 |
<tr class="text-white">
|
|
|
8 |
<th class=" fs-5 bg-danger text-white pe-4" style="padding-right: 30px !important;">Brand</th>
|
|
|
9 |
<th class="fs-5
|
|
|
10 |
text-start bg-danger text-white">Credited Income
|
|
|
11 |
</th>
|
|
|
12 |
<th class="fs-5
|
|
|
13 |
text-start bg-danger text-white">Pending Income
|
|
|
14 |
</th>
|
|
|
15 |
<th class="fs-5
|
|
|
16 |
text-start pe-3 bg-danger text-white">Total Income
|
|
|
17 |
</th>
|
|
|
18 |
</tr>
|
|
|
19 |
</thead>
|
|
|
20 |
<tbody>
|
|
|
21 |
#foreach($brand in $brandSet)
|
|
|
22 |
<tr class="brand-wise-income" data-brand="$brand" data-month="$month" data-status="$status">
|
|
|
23 |
<td class="text-start ps-4 d-flex align-items-center fs-5">
|
|
|
24 |
## <img src="$brandLogos.getOrDefault($brand, 'default-logo.png')"
|
|
|
25 |
## class="brand-logo rounded-circle me-3"
|
|
|
26 |
## style="width:32px; height:32px; object-fit: contain;">
|
|
|
27 |
<span class="gradient-text fw-bold ">$brand</span>
|
|
|
28 |
</td>
|
|
|
29 |
|
|
|
30 |
<!-- Credited Income -->
|
|
|
31 |
<td class="fs-5">
|
|
|
32 |
#set($totalAmount = 0)
|
|
|
33 |
#set($pendingAmount = 0)
|
|
|
34 |
|
|
|
35 |
#if($totalAmountMap.get($brand))
|
|
|
36 |
#set($totalAmount = $totalAmountMap.get($brand))
|
|
|
37 |
#end
|
|
|
38 |
|
|
|
39 |
#if($lastMonthPendingIncomeMap.get($brand) && $lastMonthPendingIncomeMap.get($brand).getAmount())
|
|
|
40 |
#set($pendingAmount = $lastMonthPendingIncomeMap.get($brand).getAmount())
|
|
|
41 |
#end
|
|
|
42 |
|
|
|
43 |
#set($creditedAmount = $totalAmount - $pendingAmount)
|
|
|
44 |
$creditedAmount
|
|
|
45 |
</td>
|
|
|
46 |
|
|
|
47 |
<!-- Pending Income -->
|
|
|
48 |
<td class="fs-5">
|
|
|
49 |
#if($lastMonthPendingIncomeMap.get($brand) && $lastMonthPendingIncomeMap.get($brand).getAmount())
|
|
|
50 |
$lastMonthPendingIncomeMap.get($brand).getAmount()
|
|
|
51 |
#else
|
|
|
52 |
|
|
|
53 |
#end
|
|
|
54 |
</td>
|
|
|
55 |
<!-- Total -->
|
|
|
56 |
<td class="fs-5">
|
|
|
57 |
#if($totalAmountMap.get($brand))
|
|
|
58 |
$totalAmountMap.get($brand)
|
|
|
59 |
#else
|
|
|
60 |
|
|
|
61 |
#end
|
|
|
62 |
</td>
|
|
|
63 |
</tr>
|
|
|
64 |
#end
|
|
|
65 |
</tbody>
|
|
|
66 |
</table>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
</div>
|
|
|
70 |
|
|
|
71 |
</section>
|