data['nav']->render(); echo $this->data['nav-sub']->render(); ?>
getHtml('SalesRep', 'Sales', 'Backend'); ?>
data['mtdAClientRep'], function (array $a, array $b) { return ($b['net_sales'] ?? 0) <=> ($a['net_sales'] ?? 0); }); $total = ['py' => 0, 'a' => 0]; foreach ($this->data['mtdAClientRep'] as $type => $values) : $total['py'] += $this->data['mtdPYClientRep'][$type]['net_sales'] ?? 0; $total['a'] += $this->data['mtdAClientRep'][$type]['net_sales'] ?? 0; ?>
getHtml('SalesRep', 'Sales', 'Backend'); ?> getHtml('SalesPY'); ?> (getHtml('MTD'); ?>) getHtml('SalesA'); ?> (getHtml('MTD'); ?>) getHtml('DiffPY'); ?> (getHtml('MTD'); ?>)
printHtml($this->data['salesRep'][$type]->code); ?> - printHtml($this->data['salesRep'][$type]->main->name1); ?> printHtml($this->data['salesRep'][$type]->main->name2); ?> getCurrency((int) ($this->data['mtdPYClientRep'][$type]['net_sales'] ?? 0), symbol: ''); ?> getCurrency((int) ($this->data['mtdAClientRep'][$type]['net_sales'] ?? 0), symbol: ''); ?> getCurrency( ((int) ($this->data['mtdAClientRep'][$type]['net_sales'] ?? 0)) - ((int) ($this->data['mtdPYClientRep'][$type]['net_sales'] ?? 0)), symbol: '' ); ?>
getHtml('Total', '0', '0'); ?> getCurrency((int) $total['py'], symbol: ''); ?> getCurrency((int) $total['a'], symbol: ''); ?> getCurrency( $total['a'] - $total['py'], symbol: '' ); ?>
getHtml('SalesRep', 'Sales', 'Backend'); ?>
data['mtdAClientRep'], function (array $a, array $b) { return ($b['net_profit'] ?? 0) <=> ($a['net_profit'] ?? 0); }); $total = ['py' => 0, 'a' => 0]; foreach ($this->data['mtdAClientRep'] as $type => $values) : $total['py'] += $this->data['mtdPYClientRep'][$type]['net_profit'] ?? 0; $total['a'] += $this->data['mtdAClientRep'][$type]['net_profit'] ?? 0; ?>
getHtml('SalesRep', 'Sales', 'Backend'); ?> getHtml('ProfitPY'); ?> (getHtml('MTD'); ?>) getHtml('ProfitA'); ?> (getHtml('MTD'); ?>) getHtml('DiffPY'); ?> (getHtml('MTD'); ?>)
printHtml($this->data['salesRep'][$type]->code); ?> - printHtml($this->data['salesRep'][$type]->main->name1); ?> printHtml($this->data['salesRep'][$type]->main->name2); ?> getCurrency((int) ($this->data['mtdPYClientRep'][$type]['net_profit'] ?? 0), symbol: ''); ?> getCurrency((int) ($this->data['mtdAClientRep'][$type]['net_profit'] ?? 0), symbol: ''); ?> getCurrency( ((int) ($this->data['mtdAClientRep'][$type]['net_profit'] ?? 0)) - ((int) ($this->data['mtdPYClientRep'][$type]['net_profit'] ?? 0)), symbol: '' ); ?>
getHtml('Total', '0', '0'); ?> getCurrency((int) $total['py'], symbol: ''); ?> getCurrency((int) $total['a'], symbol: ''); ?> getCurrency( $total['a'] - $total['py'], symbol: '' ); ?>