?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/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/drafthr/system/application/views/Report/claimsinscompwiserep.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php if ($search == "") $search = 'search'; if($fromdate == '') $fromdate = 'fromdate'; if($todate=='') $todate = 'todate'; if($cover_id== '0'||$cover_id=='') $cover_id = 'cover_id'; if($branch_id=='') $branch_id = 'branch_id'; $branch=$this->mastermodel->get_data_srow('ourbranch',$branch_id,'id'); $cov=$this->mastermodel->get_data_srow('covers',$cover_id,'id'); $company=$this->mastermodel->get_data_srow('insurance_company',$search,'id'); $branc=$this->customermodel->getSingleFieldValue('ourbranch','branchname','id',$branch_id); ?> <div class="select-bar"> <table width="90%"><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 align="center"> Claims Report </td><td align="right"> <label><?=anchor('report/genrepclaimsinscompwise/claim/claimsinscompwisepdf/'.$fromdate.'/'.$todate.'/'.$search.'/'.$cover_id.'/'.$branch_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/genrepclaimsinscompwise/claim/claimsinscompwisexls/'.$fromdate.'/'.$todate.'/'.$search.'/'.$cover_id.'/'.$branch_id.'/', '<img src="'.base_url().'/assets/images/xls.png" title="XLS" 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>Insurance Company</td><td><?=$company->company_name?></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; $cvrid='unknown'; foreach($viewinfo as $updata) { $claimamount=0; if($updata['cover_id']!=$cvrid) { $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 } $cvrid=$updata['cover_id']; $k++; ?> <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>