@if ($reportType == CommonConstants::TELEGRAM_PREFERENCE['DEPOSIT_WITHDRAWAL']['REPORT_TYPE']) @endif @php $fractionDigit = \App\Constants\CommonConstants::PL_SUMMARY['MAX_FRACTION_DIGIT']; $lastGroup = null; $totalprofit = 0; // For Deposit withdrawal with lotus if ($reportType == CommonConstants::TELEGRAM_PREFERENCE['DEPOSIT_WITHDRAWAL']['REPORT_TYPE']) { $totalLotusValue = 0; } @endphp @foreach ($depositWithdrawalData as $index => $depositWithdrawal) @php $rowColor = ($index % 2 === 0) ? 'background-color: #F0F0F0;' : ''; @endphp {{-- Group Header --}} @if ($lastGroup !== $depositWithdrawal['managerLogin']) {{-- For Deposit withdrawal with lotus --}} @if ($reportType == CommonConstants::TELEGRAM_PREFERENCE['DEPOSIT_WITHDRAWAL']['REPORT_TYPE']) @php $lastGroup = $depositWithdrawal['managerLogin']; @endphp @endif {{-- Data Row --}} {{-- For Deposit withdrawal with lotus --}} @if ($reportType == CommonConstants::TELEGRAM_PREFERENCE['DEPOSIT_WITHDRAWAL']['REPORT_TYPE']) {{-- lotusShare with % --}} {{-- lotusValue --}} @endif @php $totalprofit += $depositWithdrawal['profit']; // For Deposit withdrawal with lotus if ($reportType == CommonConstants::TELEGRAM_PREFERENCE['DEPOSIT_WITHDRAWAL']['REPORT_TYPE']) { $totalLotusValue += $depositWithdrawal['lotusValue']; } @endphp @endforeach {{-- Totals row --}} {{-- For Deposit withdrawal with lotus --}} @if ($reportType == CommonConstants::TELEGRAM_PREFERENCE['DEPOSIT_WITHDRAWAL']['REPORT_TYPE']) @endif
Login Date Type AmountLotus Share Lotus Value
@else @endif {{ $depositWithdrawal['managerLogin'] }} : {{ $depositWithdrawal['managerName'] }}
{{ $depositWithdrawal['loginId'] }} {{ $depositWithdrawal['date'] }} {{ $depositWithdrawal['comment'] }} {{ number_format($depositWithdrawal['profit'], $fractionDigit, '.', '') }} @if (!is_null($depositWithdrawal['lotusShare'])) {{ number_format($depositWithdrawal['lotusShare'], 2) }} % @else - @endif @if (!is_null($depositWithdrawal['lotusValue'])) {{ number_format($depositWithdrawal['lotusValue'], $fractionDigit, '.', '') }} @else - @endif
Total Amount {{ number_format($totalprofit, $fractionDigit, '.', '') }} {{ number_format($totalLotusValue, $fractionDigit, '.', '') }}