<div class="page-content-wrapper">
                <div class="page-content">
                    <div class="page-bar">
                        <div class="page-title-breadcrumb">                            
                            <ol class="breadcrumb page-breadcrumb pull-right">
                                <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.php?page=home">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
                                </li>
                                <li><a class="parent-item" href="">Accounts</a>&nbsp;<i class="fa fa-angle-right"></i></li><li class="active">Project Profit & Loss</li>
                            </ol>
                        </div>
                    </div>
<div class="row">
                        <div class="col-md-12 col-sm-12">
                            <div class="card card-box">
                                <div class="card-head">
                                    <header>Profit and Loss of <?php echo(SITE_NAME); ?> Projects</header>       
                                </div>
                                <div class="card-body" id="bar-parent1">
                                	
                                	<?php if(isset($error) && $error!='') { ?> 
                                	<div class="alert alert-danger"><?php echo $error; ?></div>
                                	<?php } ?>                                		
                                		                                      	                          	                                	
                                    <div class="col-12" >
                                    	<h3>Total Incomes: <?php echo $totalIncome; ?></h3>
										<h3>Total Expenses: <?php echo $totalExpenses; ?></h3>
																				
										<?php if($totalBalance>0){ ?>
											<h3 style="color: green;">Profit: <?php echo number_format(($totalBalance), 2, '.', ''); ?></h3>
										<?php } else { ?>
											<h3 style="color: red;">Loss: <?php echo number_format(($totalBalance), 2, '.', ''); ?></h3>
										<?php } ?>
										
                                    </div>
                                    
                                    
                                    
                                </div>
                            </div>
                        </div>
                    </div>
	</div>
</div>
