<?php
namespace App\Dashboard\Templates\Order; class Main extends \App\Dashboard\Templates\BaseAbstract { public function configureDashboard() { $orderDetailsWidget = new \App\Dashboard\Widget\OrderDetails(); $orderProfitWidget = new \App\Dashboard\Widget\OrderProfitDetails(); $orderIncomeWidget = new \App\Dashboard\Widget\OrderIncomeDetails(); $orderAcquitisition = new \App\Dashboard\Widget\OrderAcquisitionDetails(); $orderServicesListWidget = new \App\Dashboard\Widget\OrderServices(); $orderInvoicesListWidget = new \App\Dashboard\Widget\OrderInvoicesList(); $orderCashingsListWidget = new \App\Dashboard\Widget\OrderCashingsList(); $orderSupplierInvoicesListWidget = new \App\Dashboard\Widget\OrderSupplierInvoicesList(); $orderPaymentsListWidget = new \App\Dashboard\Widget\OrderSupplierPaymentsList(); $orderBalancesListWidget = new \App\Dashboard\Widget\OrderBalancesList(); $twoColumnsContainer = new \Engine\Dashboard\Containers\Table2Col(); $twoColumnsContainer->insertElement($orderDetailsWidget, 0, 0); $twoColumnsContainer->insertElement($orderProfitWidget, 0, 1); $twoColumnsContainer->insertElement($orderIncomeWidget, 1, 0); $twoColumnsContainer->insertElement($orderAcquitisition, 1, 1); $this->dashboard->addContainer($twoColumnsContainer); $this->dashboard->insertElement($orderServicesListWidget, 1); $this->dashboard->insertElement($orderInvoicesListWidget, 2); $this->dashboard->insertElement($orderCashingsListWidget, 3); $this->dashboard->insertElement($orderSupplierInvoicesListWidget, 4); $this->dashboard->insertElement($orderPaymentsListWidget, 5); $this->dashboard->insertElement($orderBalancesListWidget, 6); } }