42 lines
1005 B
PHP
42 lines
1005 B
PHP
<?php
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/*
|
|
* InvoicePlane
|
|
*
|
|
* @author InvoicePlane Developers & Contributors
|
|
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
|
|
* @license https://invoiceplane.com/license.txt
|
|
* @link https://invoiceplane.com
|
|
*/
|
|
|
|
/**
|
|
* Class Dashboard
|
|
*/
|
|
class Dashboard extends Admin_Controller
|
|
{
|
|
public function index()
|
|
{
|
|
|
|
$this->load->model('invoices/mdl_items'); // added code for item vaues
|
|
$this->load->model('reports/mdl_reports');
|
|
|
|
$this->layout->set(
|
|
array(
|
|
'results' => $this->mdl_reports->sales_dashboard(),
|
|
'items' => $this->mdl_items->get()->result(), // added for geting value of item
|
|
'resu' => $this->mdl_items->today(),
|
|
'result' => $this->mdl_items->month(),
|
|
'res' => $this->mdl_items->year(),
|
|
|
|
)
|
|
);
|
|
|
|
$this->layout->buffer('content', 'dashboard/index');
|
|
$this->layout->render();
|
|
}
|
|
|
|
|
|
|
|
}
|