GWM
This commit is contained in:
parent
8f7f138a80
commit
7a0eda5fce
@ -67,8 +67,8 @@
|
||||
<i class="fa fa-pencil"></i></a>
|
||||
|
||||
<a href="<?php echo base_url()?>Asset/deleteAssetValue/<?php echo md5($value->id)."_".$value->asset_id;?>" style="font-size: 16px;"><i class="fa fa-trash"></i></a>
|
||||
|
||||
<a class="asset_value_history" id="<?php echo md5($value->id); ?>" data-toggle="modal" data-target=".bs-example-modal-sm" style="font-size: 16px;" ><i class="fa fa-eye"></i></a>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@ -37,7 +37,7 @@ public function __construct()
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
//echo date('Y-m-d', strtotime('+60 day', strtotime(date("Y-m-d")))); die();
|
||||
|
||||
if(is_admin())
|
||||
{
|
||||
$asset_count = $this->Dashboard_model->get_assets_count(user()->business_id);
|
||||
@ -58,19 +58,12 @@ public function index()
|
||||
$expired_insurance_count = $this->Dashboard_model->get_expired_insurance_count(user()->business_id);
|
||||
$this->layout->set('expired_insurance_count', $expired_insurance_count);
|
||||
|
||||
|
||||
|
||||
$amc = $this->Dashboard_model->get_amc(user()->business_id);
|
||||
//print_r(json_encode($amc));
|
||||
$this->layout->set('amc', $amc);
|
||||
//echo "</br></br></br>";
|
||||
|
||||
$insurence = $this->Dashboard_model->get_insurence(user()->business_id);
|
||||
//print_r(json_encode($insurence));die();
|
||||
$this->layout->set('insurence', $insurence);
|
||||
}
|
||||
|
||||
|
||||
|
||||
else if(is_superadmin())
|
||||
{
|
||||
$user_count = $this->Dashboard_model->get_users_count(user()->business_id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user