Add counter badge of transaction online trail controller
This commit is contained in:
@@ -18,7 +18,13 @@ class TransactionOnlineTrailController extends Controller
|
||||
|
||||
$transactionsOnline = $this->getTransactionOnlineQuery($request);
|
||||
|
||||
$list_norujukan = array_map(fn($x) => ['norujukan' => $x['norujukan'], 'kodcaw' => $x['kodcaw']], $transactionsOnline);
|
||||
$list_norujukan = [];
|
||||
|
||||
if($request->isGroupedByNorujukan){
|
||||
$list_norujukan = array_map(fn($x) => ['norujukan' => reset($x)['norujukan'], 'kodcaw' => reset($x)['kodcaw']], $transactionsOnline);
|
||||
} else {
|
||||
$list_norujukan = array_map(fn($x) => ['norujukan' => $x['norujukan'], 'kodcaw' => $x['kodcaw']], $transactionsOnline);
|
||||
}
|
||||
|
||||
$transaction = $this->getTransactionQuery($list_norujukan, $request);
|
||||
$transaksiKeuntungan = $this->getTransaksiKeuntunganQuery($list_norujukan, $request);
|
||||
|
||||
Reference in New Issue
Block a user