<?php
$peri=$pe.'-'.$yr;
include('FetchingBudgeted.php');
?>

<div class="divscroll">
    <input type="hidden" value="<?php echo $peri; ?>" id="periodic" />
  <h6> <u class="text-info"> Cash Equivalent report for: <strong class='text-danger'> <?php echo $pe.' '.$yr;  ?> </strong></u></h6>
  
  <table class="table tablesummary" id="tsummary">
      <thead>
          <tr>
            <th>Particular</th>
            <th>July</th>
            <th>August</th>
            <th>September</th>
            <th>Total</th>
            <th>Budgeted</th>
            <th>Variance</th>
            <th>%</th>
            <th class="leavethis">Action</th>
          </tr>
      </thead>
      <tbody>
           <tr class="alert-success">
              <td colspan="9"><strong>Income</strong></td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">School Fees</td>
              <td class="cola2"><?php echo $julfee; ?></td>
              <td class="cola3"><?php echo $aufee; ?></td>
              <td class="cola4"><?php echo $sefee; ?></td>
              <td class="bg-primary cola5"><strong style="padding:5px"><?php echo $totjulyfee; ?></strong></td>
              <td class="cola6"><?php echo $tut;?></td>
              <td class="cola7"><?php echo $tut-$totjulyfee;?></td>
              <td class="cola8"><?php $va=$tut-$totjulyfee;
               if($va=='' || $tut=='')
               {
               
               }else
               {
                       $para=($va/$tut)*100;
                       echo number_format((float)$para, 2, '.', '').'%';
               }
              ?>
              </td>
              <td class="leavethis">
                  <input type="hidden" value="inc1" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Uniform</td>
              <td><?php echo $julun; ?></td>
              <td><?php echo $auuni; ?></td>
              <td><?php echo $seuni; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulyuni; ?></strong>
              </td>
              <td><?php echo $totuni;?></td>
              <td><?php echo $totuni-$totjulyuni;?></td>
              <td></td>
              <td class="leavethis">
                   <input type="hidden" value="uni1" class="textwithid" />
                   <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Tour</td>
              <td><?php echo $jultu; ?></td>
              <td><?php echo $augtu; ?></td>
              <td><?php echo $septu; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulytour; ?></strong>
              </td>
              <td><?php echo $tuwa; ?></td>
              <td><?php echo $tuwa-$totjulytour ?></td>
              <td></td>
              
               <td class="leavethis">
                    <input type="hidden" value="tour" class="textwithid" />
                   <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
               </td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Transport</td>
              <td><?php echo $jultra; ?></td>
              <td><?php echo $augtra; ?></td>
              <td ><?php echo $septra; ?></td>
              <td class="bg-primary">
                 <strong style="padding:5px"><?php echo $totjulytran; ?>
                 </strong>
              </td>
              <td><?php echo $tra;?></td>
              <td>
                  <?php
                  if($tra=='')
                  {
                  }else
                  {echo $tra-$totjulytran;}
                  ?>
              </td>
              <td> <?php
                  if($tra=='')
                  {
                  }else
                  {
                      //$para=($tra-$totjulytran)/$tra*100;
                       //echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
              <td class="leavethis">
                  <input type="hidden" value="tran1" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Motivation</td>
              <td><?php echo $julmot; ?></td>
              <td><?php echo $aumot; ?></td>
              <td><?php echo $semot; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulymot; ?></strong>
              </td>
              <td><?php echo $moti; ?></td>
              <td>
                 <?php
                  if($moti=='')
                  {
                  }else
                  {echo $moti-$totjulymot;}
                  ?>   
                  
              </td>
              <td></td>
              <td class="leavethis">
                  <input type="hidden" value="moti1" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
             </td>
          </tr>
      
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Assessment Books</td>
               <td><?php echo $juldia; ?></td>
              <td><?php echo $augdia; ?></td>
              <td><?php echo $sepdia; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulydiary; ?></strong>
              </td>
              <td><?php echo $ASSES; ?></td>
              <td>
                   <?php
                  if($moti=='')
                  {
                  }else
                  {echo $ASSES-$totjulydiary;}
                  ?>
                  
              </td>
              <td></td>
              <td class="leavethis">
                  <input type="hidden" value="asses1" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button></td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">School Bus Hire</td>
              <td><?php echo $julbs; ?></td>
              <td><?php echo $augbs; ?></td>
              <td><?php echo $sepbs; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulybus; ?></strong>
              </td>
              <td><?php echo $BUS1; ?></td>
              <td>
                  <?php
                  if($BUS1=='')
                  {
                  }else
                  {echo $BUS1-$totjulybus;}
                  ?> 
              </td>
              <td></td>
              <td class="leavethis">
                  <input type="hidden" value="bus1" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i>
                  </button>
             </td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Text Books</td>
              <td><?php echo $julbuk; ?></td>
              <td><?php echo $augbuk; ?></td>
              <td><?php echo $sepbuk; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulybook; ?></strong>
              </td>
              <td><?php echo $TEX1; ?></td>
              <td>
                  <?php
                  if($TEX1=='')
                  {
                  }else
                  {echo $TEX1-$totjulybook;}
                  ?>  
              </td>
              <td></td>
              <td class="leavethis">
                  <input type="hidden" value="text1" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
             </td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Farm Income</td>
               <td><?php echo $julfm; ?></td>
              <td><?php echo $augfm; ?></td>
              <td><?php echo $sepfm; ?></td>
              <td class="bg-primary"><strong  style="padding:5px"><?php echo $totjulyfam; ?></strong>
              </td>
              <td><?php echo $farm1; ?></td>
              <td>
                  <?php
                  if($farm1=='')
                  {
                  }else
                  {echo $farm1-$totjulyfam;}
                  ?> 
              </td>
              <td>
                  <?php
                  if($farm1=='')
                  {
                  }else
                  {
                     echo ($farm1-$totjulyfam)*100/$farm1.'%';}
                  ?> 
              </td>
              <td class="leavethis">
                  <input type="hidden" value="farm1" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i>
                  </button>
             </td>
          </tr>
          <tr class="bg-secondary">
              <td><strong>Total Income</strong></td>
              <td></td>
              <td></td>
              <td></td>
              <td class="bg-green text-white"><strong ><?php echo $subtotalincome; ?></strong></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
          </tr>
           <tr class="">
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td class="leavethis"></td>
          </tr>
          
          <tr class="">
              <td colspan="7"><strong class="text-primary">Nursery School</strong></td> <td class="leavethis"></td>
          </tr>
          
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">School Fees</td>
              <td><?php echo  $BFJ+$P1FJ+$P2FJ; ?></td>
              <td><?php echo  $BFA+$P1FA+$P2FA; ?></td>
              <td><?php echo  $BFS+$P1FS+$P2FS; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulyfeeN; ?></strong></td>
              <td><?php echo $feenur; ?></td>
              <td>
                  <?php
                  $va=$feenur-$totjulyfeeN;
                  echo $va;
                  ?>
              </td>
              <td>
                  <?php
                   $va=$feenur-$totjulyfeeN;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$feenur;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?> 
              </td>
              <td class="leavethis">
                  <input type="hidden" value="feenur" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button></td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Transport</td>
              <td><?php echo $jultrn; ?></td>
              <td><?php echo $augtrn; ?></td>
              <td><?php echo $septrn; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulytransN; ?></strong></td>
              <td><?php echo $tranur; ?></td>
              <td><?php echo $tranur-$totjulytransN ?></td>
              <td>  <?php
                   $va=$tranur-$totjulytransN;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$tranur;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?> </td>
              <td class="leavethis">
                  <input type="hidden" value="tranur" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button></td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Uniforms</td>
              <td><?php echo $juluniN; ?></td>
              <td><?php echo $auguniN; ?></td>
              <td><?php echo $sepuniN; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjulyunifo; ?></strong></td>
              <td><?php echo $uninur; ?></td>
              <td><?php echo $uninur-$totjulyunifo;?></td>
              <td> 
                <?php
                   $va=$uninur-$totjulyunifo;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$uninur;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
              <td class="leavethis">
                  <input type="hidden" value="uninur" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button></td>
          </tr>
          
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Admission Letters</td>
              <td><?php echo $juladmtot; ?></td>
              <td><?php echo $augadmtot; ?></td>
              <td><?php echo $sepadmtot; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $TotJulyAdminssN; ?></strong></td>
              <td><?php echo $admnur; ?></td>
              <td><?php
                   echo $admnur-$TotJulyAdminssN; ?></td>
              <td>
                  <?php
                   $va=$admnur-$TotJulyAdminssN;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$admnur;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
              <td class="leavethis">
                  <input type="hidden" value="admnur" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Assessment Books</td>
              <td><?php echo $totbksjul; ?></td>
              <td><?php echo $totbksaug; ?></td>
              <td><?php echo $totbkssep; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $Totbooksnursery; ?></strong></td>
              <td><?php echo $assnur; ?></td>
              <td><?php echo $assnur-$Totbooksnursery; ?></td>
              <td> 
              <?php
                  $va=$assnur-$Totbooksnursery;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$assnur;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?>
              </td>
              <td class="leavethis">
                  <input type="hidden" value="assnur" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button></td>
          </tr>
          
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Graduation</td>
              <td><?php echo $jgrad; ?></td>
              <td><?php echo $agrad; ?></td>
              <td><?php echo $sgrad; ?></td>
              <td class="bg-primary"><strong style="padding:5px"><?php echo $totjultosepgraduation; ?></strong></td>
              <td><?php echo $graduation; ?></td>
              <td><?php
                  echo $graduation-$totjultosepgraduation; ?>
              </td>
              <td> 
              <?php
                  $va=$graduation-$totjultosepgraduation;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$graduation;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?></td>
              <td class="leavethis"
                  <input type="hidden" value="graduation" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
          <tr class="bg-secondary">
              <td>Total Nursery Income</td>
              <td></td>
              <td></td>
              <td></td>
              <td><strong><?php echo $Totbooksnursery+$TotJulyAdminssN+$totjulyunifo+$totjulytransN+$totjulyfeeN+$totjultosepgraduation; ?></strong></td>
              <td></td>
              <td></td>
              <td></td>
              <td class="leavethis"></td>
          </tr>
          
           <tr class="bg-success">
              <td><strong>Total Gross Incomes</strong></td>
              <td></td>
              <td></td>
              <td></td>
              <td><strong style="font-size:22px"><?php echo $Totbooksnursery+$TotJulyAdminssN+$totjulyunifo+$totjulytransN+$totjulyfeeN+$subtotalincome+$totjultosepgraduation; ?></strong></td>
              <td></td>
              <td></td>
              <td></td>
              <td class="leavethis"></td>
          </tr>
          
          
          <tr>
               <td colspan="9"></td>
          </tr>
          
           <tr class="alert-warning">
              <td colspan="9"><strong>Expenses</strong></td>
          </tr>
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">Audit Fees</td>
              <td><?php echo $julau; ?></td>
              <td><?php echo $augau; ?></td>
              <td><?php echo $sepau; ?></td>
              <td><strong><?php echo $totjulau; ?></strong></td>
              <td><?php echo $audit; ?></td>
              <td><?php
                  echo $audit-$totjulau;
                  ?>
              </td>
              <td> 
              <?php
                  $va=$audit-$totjulau;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$audit;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?></td>
              <td class="leavethis">
                  <input type="hidden" value="audit" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button></td>
          </tr>
          <tr>
              <td class="cola1" style="background-color:#d9f2e6" >Co-Curricular Activities</td>
              <td><?php echo $jcoca+$jucoca; ?></td>
              <td><?php echo $acoca+$agcoca; ?></td>
              <td><?php echo $scoca+$secoca; ?></td>
              <td><strong><?php echo $totjulcoca+$totjulcocali; ?></strong></td>
              <td><?php echo $cocu; ?></td>
              <td><?php
                  $toto=$totjulcoca+$totjulcocali;
                  echo $cocu-$toto;?></td>
              <td>
              <?php
                  $toto=$totjulcoca+$totjulcocali;
                  $va=$cocu-$toto;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$cocu;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?>
              </td>
              <td class="leavethis">
                  <input type="hidden" value="cocu" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Internet</td>
              <td><?php echo $julint; ?></td>
              <td><?php echo $augint; ?></td>
              <td><?php echo $sepint; ?></td>
              <td><strong><?php echo $totjulint; ?></strong></td>
              <td><?php echo $interne; ?></td>
              <td>  
              <?php
                  $toto=$totjulint;
                  $va=$interne-$toto;
                  echo $va;
               ?>
              </td>
              <td>
                <?php
                  $toto=$totjulint;
                  $va=$interne-$toto;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$interne;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
               ?>
              </td>
              <td class="leavethis">
                  <input type="hidden" value="inter" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          <tr>
              <td class="cola1">Liturgical Activities</td>
               <td><?php echo $jla; ?></td>
              <td><?php echo $ala; ?></td>
              <td><?php echo $sla; ?></td>
               <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjultosepLA; ?></strong>
              <td><?php echo $litur; ?></td>
              <td><?php
                  echo $litur-$totjultosepLA; ?></td>
              <td>
                <?php
                  $va=$litur-$totjultosepLA;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$litur;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="litur" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">BOM-Meetings</td>
              <td><?php echo $jbom; ?></td>
              <td><?php echo $abom; ?></td>
              <td><?php echo $sbom; ?></td>
               <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjulsepBOM; ?></strong>
              <td><?php echo $bomm; ?></td>
              <td>
                  <?php
                  echo $bomm-$totjulsepBOM;
                  ?>
              </td>
              <td>
                <?php
                  $va=$bomm-$totjulsepBOM;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$bomm;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="bom" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Diocesan Levy</td>
              <td><?php echo $jvm; ?></td>
              <td><?php echo $avm; ?></td>
              <td><?php echo $svm; ?></td>
              <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjulsepVM; ?></strong>
              <td><?php echo $levy; ?> </td>
              <td>
                  <?php
                  echo $levy-$totjulsepVM;
                  ?>
              </td>
              <td> 
              <?php
                  $va=$levy-$totjulsepVM;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$levy;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?></td>
               <td class="leavethis">
                  <input type="hidden" value="levy" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
          <tr>
             <td style="background-color:#ffe6e6" class="cola1">House Levy (1.5%) </td>
              <td><?php echo $juhlev; ?></td>
              <td><?php echo $auhlev; ?></td>
              <td><?php echo $sehlev; ?></td>
              <td class="bg-warning"><strong  style="padding:5px"><?php echo $tothlevyjuly;?></strong>
              <td><?php echo $hlevy; ?> </td>
              <td> <?php
                  echo $hlevy-$tothlevyjuly; ?></td>
              <td> 
              <?php
                  $va=$hlevy-$tothlevyjuly;
                 if($va=='' || $va==null || $va<0)
                  {
                  }else
                 {
                 $para=($va)*100/$hlevy;
                  echo number_format((float)$para, 2, '.', '').'%';
                 }
              ?></td>
              <td class="leavethis">
                  <input type="hidden" value="hlevy" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          <tr>
              <td style="background-color:#ffe6e6" class="cola1">Electricity</td>
              <td><?php echo $jele; ?></td>
              <td><?php echo $aele; ?></td>
              <td><?php echo $sele; ?></td>
              <td><strong><?php echo $totjulelect; ?></strong></td>
              <td><?php echo $elect; ?> </td>
              <td><?php
                  echo $elect-$totjulelect;
                  ?></td>
              <td>
                <?php
                  $va=$elect-$totjulelect;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$elect;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
               ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="elect" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          <tr>
              <td style="background-color:#d9f2e6" class="cola1">Water & Conservancy</td>
              <td><?php echo $juwater; ?></td>
              <td><?php echo $augwater; ?></td>
              <td><?php echo $sepwater; ?></td>
              <td><strong><?php echo $totalwater; ?></strong></td>
              <td><?php echo $water; ?></td>
              <td><?php
                  echo $water-$totalwater;?></td>
              <td> <?php
                  $va=$water-$totalwater;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$water;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                 ?>
               </td>
               <td class="leavethis">
                  <input type="hidden" value="water" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          <!--tr>
              <td style="background-color:#ffe6e6" class="cola1">Matters Education</td>
              <td><?php echo $julme; ?></td>
              <td><?php echo $augme; ?></td>
              <td><?php echo $sepme; ?></td>
              <td><strong><?php echo $totjulME; ?></strong></td>
              <td><?php echo $educa; ?></td>
              <td></td>
              <td></td>
               <td>
                  <input type="hidden" value="educa" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i>
                  </button>
              </td>
          </tr-->
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">Kitchen & Boarding</td>
              <td><?php echo $julm; ?></td>
              <td><?php echo $augm; ?></td>
              <td><?php echo $sepm; ?></td>
              <td><strong><?php echo $totjulmeal; ?></strong></td>
              <td><?php echo $kitch; ?></td>
              <td>
                <?php
                  echo $kitch-$totjulmeal;
                 ?>
              </td>
              <td> <?php
                  $va=$kitch-$totjulmeal;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$kitch;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                 ?></td>
               <td class="leavethis">
                  <input type="hidden" value="kitch" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td class="cola1">Security</td>
              <td><?php echo $julsecu; ?></td>
              <td><?php echo $augsecu; ?></td>
              <td><?php echo $sepsecu; ?></td>
              <td><strong><?php echo $totsecu; ?></strong></td>
              <td><?php echo $secu; ?></td>
              <td>
              <?php
                  echo $secu-$totsecu; ?></td>
              <td> 
              <?php
                  $va=$secu-$totsecu;
                 if($va=='' || $va==null || $va<0)
                  {
                  }else
                 {
                 $para=($va)*100/$secu;
                  echo number_format((float)$para, 2, '.', '').'%';
                 }
               ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="secu" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td style="background-color:#d9f2e6" class="cola1">NHIF</td>
              <td><?php echo $junhi; ?></td>
              <td><?php echo $aunhi; ?></td>
              <td><?php echo $senhi; ?></td>
              <td><strong><?php echo $totnhif; ?></strong></td>
              <td><?php echo $nhif; ?></td>
              <td>
              <?php 
               echo $nhif-$totnhif;
              ?>
              </td>
              <td>
              <?php
                  $va=$nhif-$totnhif;
                  
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$nhif;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="nhif" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td style="background-color:#d9f2e6" class="cola1">NSSF</td>
              <td><?php echo $junss; ?></td>
              <td><?php echo $aunss; ?></td>
              <td><?php echo $senss; ?></td>
              <td><strong><?php echo $totnssf; ?></strong></td>
              <td><?php echo $nssf; ?></td>
              <td>
                  <?php echo $nssf-$totnssf; ?>
              </td>
              <td>
              <?php
                  $va=$nssf-$totnssf;
                  
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$nssf;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="nssf" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td style="background-color:#d9f2e6" class="cola1">PAYE</td>
             <td><?php echo $jupy; ?></td>
              <td><?php echo $aupy; ?></td>
              <td><?php echo $sepy; ?></td>
              <td><strong><?php echo $totpaye; ?></strong></td>
              <td><?php echo $paye; ?></td>
              <td>
                  <?php
                  echo $paye-$totpaye;
                  ?>
              </td>
              <td>
                <?php
                  $va=$paye-$totpaye;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$paye;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?> 
              </td>
               <td class="leavethis">
                  <input type="hidden" value="paye" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
      
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">Salaries</td>
              <td><?php echo $julsa; ?></td>
              <td><?php echo $augsa; ?></td>
              <td><?php echo $sepsa; ?></td>
               <td class="bg-warning"><strong  style="padding:5px"><?php echo $totsalajuly; ?></strong>
              </td>
              <td><?php echo $sala; ?></td>
              <td>
                  <?php
                   echo $sala-$totsalajuly;
                  ?>
              </td>
              <td>
            <?php
                  $va=$sala-$totsalajuly;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$sala;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
              ?> 
              </td>
               <td class="leavethis">
                  <input type="hidden" value="sala" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">Remedials</td>
              <td><?php echo $jrem; ?></td>
              <td><?php echo $arem; ?></td>
              <td><?php echo $srem; ?></td>
              <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjultosepREM; ?></strong>
              <td><?php echo $reme; ?></td>
              <td><?php echo $reme-$totjultosepREM; ?></td>
              <td>
                <?php
                  $va=$reme-$totjultosepREM;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$reme;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                 ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="reme" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i>
                  </button>
              </td>
          </tr>
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">Casual Wages</td>
              <<td><?php echo $jcp; ?></td>
              <td><?php echo $acp; ?></td>
              <td><?php echo $scp; ?></td>
              <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjulsepCP; ?></strong>
              <td><?php echo $wages; ?></td>
              <td><?php echo $wages-$totjulsepCP; ?></td>
              <td>
                 <?php
                  $va=$wages-$totjulsepCP;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$wages;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                 ?>  
              </td>
              <td class="leavethis">
                  <input type="hidden" value="wages" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">Vehicle Repair & Maintence</td>
              <td><?php echo $jvm; ?></td>
              <td><?php echo $avm; ?></td>
              <td><?php echo $svm; ?></td>
              <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjulsepVM; ?></strong>
              <td><?php echo $repair; ?></td>
              <td><?php echo $repair-$totjulsepVM; ?></td>
              <td>
                  <?php
                  $va=$repair-$totjulsepVM;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$repair;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                 ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="repair" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">Fuel</td>
              <td><?php echo $jfue; ?></td>
              <td><?php echo $afue; ?></td>
              <td><?php echo $sfue; ?></td>
              <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjulsepfuel; ?></strong>
              <td><?php echo $fuel; ?></td>
              <td>
                  <?php
                  echo $fuel-$totjulsepfuel;
                  ?>
              </td>
              <td>
                 <?php
                  $va=$fuel-$totjulsepfuel;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$fuel;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                 ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="fuel" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td class="cola1" style="background-color:#d9f2e6">Insurance</td>
              <td><?php echo $juinsu; ?></td>
              <td><?php echo $auinsu; ?></td>
              <td><?php echo $seinsu; ?></td>
              <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjultosepinsu; ?></strong>
              <td><?php echo $insu-$totjultosepinsu; ?></td>
              <td>
                 <?php
                  $va=$insu-$totjultosepinsu;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$insu;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                 ?>
              </td>
              <td></td>
              
               <td class="leavethis">
                  <input type="hidden" value="insu" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr>
              <td style="background-color:#ffe6e6" class="cola1">Matters Education</td>
              <td><?php echo $jME; ?></td>
              <td><?php echo $aME; ?></td>
              <td><?php echo $sME; ?></td>
              <td class="bg-warning"><strong  style="padding:5px"><?php echo $totjulsepME; ?></strong>
              <td><?php echo $edu; ?></td>
              <td>
                  <?php
                   echo $edu-$totjulsepME;
                  ?>
              </td>
              <td>
                  <?php
                  $va=$edu-$totjulsepME;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$edu;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="edu" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
           <tr >
              <td style="background-color:#ffe6e6" class="cola1">R.M.I</td>
              <td><?php echo $julrmi; ?></td>
              <td><?php echo $augrmi; ?></td>
              <td><?php echo $seprmi; ?></td>
              <td class="bg-warning"><strong><?php echo $totrmiaug; ?></strong></td>
              <td><?php echo $rmi; ?></td>
              <td><?php echo $rmi-$totrmiaug; ?></td>
              <td>
                  <?php
                  $va=$rmi-$totrmiaug;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$rmi;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="rmi" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
            <tr>
              <td style="background-color:#d9f2e6" class="cola1">Text Boooks</td>
              <td><?php echo $jute+$jutx; ?></td>
              <td><?php echo $aute+$autx; ?></td>
              <td><?php echo $sete+$setx; ?></td>
              <td class="bg-warning"><strong><?php echo $totjultextbooks+$totjultexxs; ?></strong></td>
              <td><?php echo $expetxt; ?></td>
              <td>
                <?php
                  if($expetxt=='')
                  {
                  }else
                  {
                    $toexp=$totjultextbooks+$totjultexxs;
                    echo $expetxt-$toexp;
                  }
                  ?>  
              </td>
              <td>
                  <?php
                  $va=$expetxt-($totjultextbooks+$totjultexxs);
        
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$expetxt;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="expetxt" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i>
                  </button>
              </td>
          </tr>
          
            <tr >
              <td style="background-color:#d9f2e6" class="cola1">Administration</td>
              <td><?php echo $juad+$juadm; ?></td>
              <td><?php echo $auad+$auadm; ?></td>
              <td><?php echo $sead+$seadm; ?></td>
              <td class="bg-warning"><strong><?php echo $totjulsepadm+$totjulsepadmini; ?></strong></td>
              <td><?php echo $admi; ?></td>
              <td>
                  <?php
                     echo $toadmi=$totjulsepadm+$totjulsepadmini;
                     $va=$admi-$toadmi;
                  ?>
              </td>
              <td>
                  <?php
                  $toadmi=$totjulsepadm+$totjulsepadmini;
                  $va=$admi-$toadmi;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$admi;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="admi" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
            <tr >
              <td style="background-color:#d9f2e6" class="cola1">Uniforms</td>
              <td><?php echo $junifo+$junifom; ?></td>
              <td><?php echo $aunifo+$aunifom; ?></td>
              <td><?php echo $sunifo+$sunifom; ?></td>
              <td class="bg-warning"><strong><?php echo $totjulsepuniform+$totjulsepuniformm; ?></strong>
              </td>
              <td><?php echo $expeuni; ?></td>
              <td>
                  <?php
                  $toadmi=$totjulsepuniform+$totjulsepuniformm;
                  $va=$expeuni-$toadmi;
                  echo $va;
                  ?>
              </td>
              <td>
                  <?php
                  $toadmi=$totjulsepuniform+$totjulsepuniformm;
                  $va=$expeuni-$toadmi;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$expeuni;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="expeuni" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
            <tr >
              <td style="background-color:#d9f2e6" class="cola1">Charity</td>
              <td><?php echo $jcha+$juch; ?></td>
              <td><?php echo $acha+$auch; ?></td>
              <td><?php echo $scha+$sech; ?></td>
              <td class="bg-warning"><strong><?php echo $totjulsepcha+$totjulsepcharity; ?></strong></td>
              <td><?php echo $chari; ?></td>
              <td>
                  <?php
                  $toadmi=$totjulsepcha+$totjulsepcharity;
                  $va=$chari-$toadmi;
                  echo $va;
                  ?>
              </td>
              <td>
                 <?php
                  $toadmi=$totjulsepcha+$totjulsepcharity;
                  $va=$chari-$toadmi;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$chari;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="chari" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
            <tr>
              <td style="background-color:#d9f2e6" class="cola1">Staff Welfare</td>
              <td><?php echo $jsw+$juusw; ?></td>
              <td><?php echo $asw+$auusw; ?></td>
              <td><?php echo $ssw+$seesw; ?></td>
              <td class="bg-warning"><strong><?php echo $totjulsepSW+$totjulseeeSW; ?></strong></td>
              <td><?php echo $welfa; ?></td>
              <td>
                  <?php
                  $toadmi=$totjulsepSW+$totjulseeeSW;
                  $va=$welfa-$toadmi;
                  echo $va;
                  ?>
              </td>
              <td>
                  <?php
                  $toadmi=$totjulsepSW+$totjulseeeSW;
                  $va=$welfa-$toadmi;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$welfa;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="welfa" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
            </tr>
          
           <tr >
              <td style="background-color:#d9f2e6" class="cola1">Motivation</td>
              <td><?php echo $jemo+$jemoo; ?></td>
              <td><?php echo $aemo+$aemoo; ?></td>
              <td><?php echo $semo+$semoo; ?></td>
              <td class="bg-warning"><strong><?php echo $totjultosepEmotii; ?></strong></td>
              <td><?php echo $motiexpe; ?></td>
              <td>
                  <?php
                   echo $motiexpe-$totjultosepEmotii;
                  ?>
              </td>
              <td>
                 <?php
                  $va=$motiexpe-$totjultosepEmotii;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$motiexpe;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="motiexpe" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
           <tr >
              <td style="background-color:#d9f2e6" class="cola1">Farm</td>
              <td><?php echo $jfa+$juufa; ?></td>
              <td><?php echo $afa+$aafa; ?></td>
              <td><?php echo $sfa+$ssfa; ?></td>
              <td class="bg-warning"><strong><?php echo $totjultosepfam+$totjultosepfamm; ?></strong>
              </td>
              <td><?php echo $farmexpe; ?></td>
              <td>
              <?php
              echo $farmexpe-($totjultosepfam+$totjultosepfamm);
              ?>
              </td>
              <td>
                  <?php
                  $va=$farmexpe-($totjultosepfam+$totjultosepfamm);
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$farmexpe;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="farmexpe" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
           <tr >
              <td style="background-color:#d9f2e6" class="cola1">School Furniture</td>
              <td><?php echo $jfun+$jfurn; ?></td>
              <td><?php echo $afun+$afurn; ?></td>
              <td><?php echo $sfun+$sfurn; ?></td>
              <td class="bg-warning"><strong><?php echo $totjultosepfun+$totjultosepfurn; ?></strong>
              </td>
              <td><?php echo $fanit;?> </td>
              <td>
                  <?php
                   echo $fanit-($totjultosepfun+$totjultosepfurn);
                  ?>
              </td>
              <td>
                   <?php
                  $va=$fanit-($totjultosepfun+$totjultosepfurn);
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$fanit;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="fanit" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
           <tr >
              <td style="background-color:#d9f2e6" class="cola1">Pastoral Care</td>
              <td><?php echo $jlita+$jlitaa; ?></td>
              <td><?php echo $alita+$alitaa; ?></td>
              <td><?php echo $slita+$slitaa; ?></td>
               <td class="bg-warning"><strong><?php echo $totjultoseplitaa+$totjultoseplita; ?>
               </strong>
              </td>
              <td><?php echo $pasto; ?></td>
              <td>
                  <?php
                   echo $pasto-($totjultoseplitaa+$totjultoseplita);
                  ?>
              </td>
              <td>
                  <?php
                  $va=$pasto-($totjultoseplitaa+$totjultoseplita);
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$pasto;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="pasto" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>
          
           <tr >
              <td style="background-color:#d9f2e6" class="cola1">Tour</td>
              <td><?php echo $jutuwa+$jtua; ?></td>
              <td><?php echo $autuwa+$atua; ?></td>
              <td><?php echo $setuwa+$stua; ?></td>
              <td class="bg-warning"><strong><?php echo $totjultoseptuwa+$totjultoseptua; ?>
               </strong></td>
              <td><?php echo $tourrexpe; ?> </td>
              <td>
                  <?php
                  echo $tourrexpe-($totjultoseptuwa+$totjultoseptua);
                  ?>
              </td>
              <td>
                  <?php
                  $va=$tourrexpe-($totjultoseptuwa+$totjultoseptua);
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$tourrexpe;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
              <td class="leavethis">
                  <input type="hidden" value="tourrexpe" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i></button>
              </td>
          </tr>

            <tr>
              <td style="background-color:#d9f2e6" class="cola1">Projects</td>
              <td><?php echo $jproo; ?></td>
              <td><?php echo $aproo; ?></td>
              <td><?php echo $sproo; ?></td>
              <td class="bg-warning"> <strong><?php echo $totjultosepproo; ?>
               </strong>
              </td>
              <td><?php echo $proje; ?></td>
              <td>
                  <?php
                  echo $proje-$totjultosepproo;
                  ?>
              </td>
              <td>
                  <?php
                  $va=$proje-$totjultosepproo;
                  if($va=='' || $va==null || $va<0)
                  {
                  }else
                  {
                   $para=($va)*100/$proje;
                   echo number_format((float)$para, 2, '.', '').'%';
                  }
                  ?>
              </td>
               <td class="leavethis">
                  <input type="hidden" value="proje" class="textwithid" />
                  <button class="btn btn-default budget">Edit Budgeted Amount <i class="fa fa-refresh"></i>
                  </button>
              </td>
            </tr>
          
          
           <tr class="alert-danger">
              <td><STRONG>TOTAL</STRONG></td>
              <td><?php  ?></td>
              <td><?php ?></td>
              <td><?php  ?></td>
              <td><STRONG class=""><?php echo $totjulau+$totjulcoca+$totjulint+$totjultosepLA+$totjulsepBOM+$totjulsepVM+$totjulelect+$totalwater+$totjulME+$totjulmeal+$totsecu+$totnhif+$totnssf+$totpaye+$totsalajuly+$totjultosepREM+$totjulsepCP+$totjulsepVM+$totjulsepfuel+$totjultosepinsu+$totjulsepME+$totrmiaug+$totjultextbooks+$totjultexxs+$totjulsepadm+$totjulsepadmini+$totjulsepuniform+$totjulsepuniformm+$totjulsepcha+$totjulsepcharity+$totjulsepSW+$totjulseeeSW+$totjultosepEmotii+$totjultosepfam+$totjultosepfamm+$totjultosepfun+$totjultosepfurn+$totjultoseplitaa+$totjultoseplita+$totjultoseptuwa+$totjultoseptua+$totjultosepproo+$tothlevyjuly; ?></STRONG></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
          </tr>
      </tbody>
      <tfooter class="leavethis">
          <tr class="leavethis">
              <td colspan="9"><button class="btn btn-default btn-sm pull-right" id="down"> Download Excel File <i class="fa fa-cloud-download"></i></button>
              </td>
          </tr>
      </tfooter>
  </table>
</div>