?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Report/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Report/claimbranchwiserep.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php if($selectsearch == '') $selectsearch = 'selectsearch'; if($fromdate == '') $fromdate = 'fromdate'; if($todate=='') $todate = 'todate'; if($branch=='') $branch = 'branch'; $branc=$this->mastermodel->get_data_srow('ourbranch',$branch,'id'); ?> <div class="select-bar"> <table width="100%"><tr><td><label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadclaims()" alt="Back" align = "center" width="25" height="25" /></label> </td><td> Branch Claims Report </td><td align="right"><label><?=anchor('report/genrepclaimbra/claim/claimbranchwisepdf/'.$selectsearch.'/'.$fromdate.'/'.$todate.'/'.$branch.'/'.$cover_id.'/', '<img src="'.base_url().'/assets/images/pdf.png" title="PDF" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to download')"))?></label> <label><?=anchor('report/genrepclaimbra/claim/claimbranchwiselxs/'.$selectsearch.'/'.$fromdate.'/'.$todate.'/'.$branch.'/'.$cover_id.'/', '<img src="'.base_url().'/assets/images/xls.png" title="Excel" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to download')"))?></label> </td> </tr></table></div> <table class="reportheader"> <tr><td>Branch</td><td><?=$branc->branchname?></td></tr> <?if ($todate != 'todate'){ ?> <tr><td>Period</td><td> <?=$fromdate?> to <?=$todate?> </td></tr><? } ?> </table> <table class="sort"> <?php $k=0; $cctot=0; $actot=0; $nettot=0; $gptot=0; $brcctot=0; $bractot=0; $brnettot=0; $brgptot=0; $covrid='unknown'; if($viewinfo != "") { foreach($viewinfo as $updata) { if($covrid!=$updata['cover_id']) { $i=1; if($k!=0) { ?> <tr><td colspan="7" align="center">Total (<?=$updata['currencycode']?>)</td><td><?=number_format($gptot, 2, '.', ',')?></td><td><?=number_format($cctot, 2, '.', ',')?></td><td><?=number_format($actot, 2, '.', ',')?></td><td><?=number_format($nettot, 2, '.', ',')?></td></tr> <?php $cctot=0; $actot=0; $nettot=0; $gptot=0; } ?> </table><?='Cover : '. $updata['cover']?><table class="sort"><thead><tr> <th>Sl No</th> <th>Insured</th> <th>Cover/Policy No.</th> <th>Insurer</th> <th>Effective Date</th> <th>Expiry Date</th> <th>Account Holder</th> <th>Gross Premium</th> <th>Premium Received</th> <th>Payments</th> <th>Loss Ratio</th> </tr> <?php $covrid=$updata['cover_id']; } $k++; // $cov=$this->mastermodel->get_data_srow('covers',$updata['cover_id'],'id'); // // $type=$this->customermodel->getSingleFieldValue('customers','type','id',$updata['customer_id']); // if($type=="Individual") // { // $cus=$this->mastermodel->get_data_srow('customer_personal_ind',$updata['customer_id'],'customer_id'); // } // else { // $cus=$this->mastermodel->get_data_srow('customer_corp_info',$updata['customer_id'],'customer_id'); // } // //$pol=$this->reportmodel->get_claimdetails('policynote',$updata['policyid']); ?> <tr> <td><?=$i++;?></td> <td><?=$updata['insured'];?></td> <td><?=$updata['cover'].'/'.$updata['policyno'];?></td> <td><?=$updata['company_name']?></td> <td><?php echo $this->mastermodel->convdatformat($updata['fromdate']);?></td> <td><?php echo $this->mastermodel->convdatformat($updata['todate']);?></td> <td><?=$updata['name']?></td> <td><?=number_format($updata['premium'], 2, '.', ',')?></td> <td><?php echo number_format($updata['amount'], 2, '.', ',');?></td> <td><?=number_format($updata['settlement'], 2, '.', ',');?></td> <td><?php if($updata['premium']==0) $loss_ratio=0; else $loss_ratio=(($updata['settlement']/$updata['premium'])*100); $gp=$updata['premium']; $gptot+=$gp; $cc=$updata['amount']; $cctot+=$cc; $ac=$updata['settlement']; $actot+=$ac; $net=round($loss_ratio, 2); $nettot+=$net; $brcctot+=$cc; $bractot+=$ac; $brnettot+=$net; $brgptot+=$gp; echo number_format($loss_ratio, 2, '.', ',');?></td> </tr> <?php } if($viewinfo) { ?> <tr><td colspan="7" align="center">Total (<?=$updata['currencycode']?>)</td><td><?=number_format($gptot, 2, '.', ',')?></td><td><?=number_format($cctot, 2, '.', ',')?></td><td><?=number_format($actot, 2, '.', ',')?></td><td><?=number_format($nettot, 2, '.', ',')?></td></tr> <tr><td colspan="7" align="center"><strong>Gross Total (<?=$updata['currencycode']?>)</strong></td><td><strong><?=number_format($brgptot, 2, '.', ',')?></strong></td><td><strong><?=number_format($brcctot, 2, '.', ',')?></strong></td><td><strong><?=number_format($bractot, 2, '.', ',')?></strong></td><td><strong><?=number_format($brnettot, 2, '.', ',')?></strong></td></tr> <?php } } ?> </table>