<?php 
include('accesscheck2.php');
require_once('Connections/courier.php'); 
require_once 'functions/functions.php';

mysql_select_db($database_courier, $courier);
$searchtxt=$_POST["searchtext"];
$typesearch=$_POST["typesearch"];
$datatable_products_length = $_POST['datatable_products_length'];
if(empty($datatable_products_length)){$datatable_products_length = 50;}

if ($typesearch == 'insurance_companies') {
    $searchtxt = $_POST["searchtext_2"];
}

$claim_area=$_POST["id"];

if( $action=='claimsoffice_list_claims'){
    $query_rsodest = "select DISTINCT a.process_claim_no, a.ins_company,  DATE_FORMAT(a.date_of_consultation, '%e %b %Y') as datenew, b.* from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number where (a.mode_of_payment='$claim_area') ORDER BY a.date_of_consultation DESC ";	
    $query_rsodest_count = "select COUNT( DISTINCT a.process_claim_no) AS total_count from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number where (a.mode_of_payment='$claim_area') ORDER BY a.date_of_consultation DESC ";	
 // $query_rsodest = "SELECT a.*, a.id as claim_id, a.status as claimstatus, DATE_FORMAT(a.date_added, '%e %b %Y') as datenew ,b.* FROM process_claim_no a left join patient_information b on a.patient_no=b.card_number where (a.mode_of_payment='$claim_area') order by a.id desc";	
} else if($action == 'claims_details_of_summary'){
    list($month, $year, $ins_company,$claim_area) = explode("@@@", $_POST["id"]); 
    $query_rsodest = "select DISTINCT a.process_claim_no, a.ins_company,  DATE_FORMAT(a.date_of_consultation, '%e %b %Y') as datenew, b.* from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number where MONTH(a.date_of_consultation)='$month' AND YEAR(a.date_of_consultation)='$year' AND a.ins_company='$ins_company' AND (a.mode_of_payment='$claim_area') ORDER BY a.date_of_consultation DESC ";	
    $query_rsodest_count = "select COUNT(DISTINCT a.process_claim_no) AS total_count from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number where MONTH(a.date_of_consultation)='$month' AND YEAR(a.date_of_consultation)='$year' AND a.ins_company='$ins_company' AND (a.mode_of_payment='$claim_area') ORDER BY a.date_of_consultation DESC ";	
    // $query_rsodest = "SELECT a.*, a.id as claim_id, a.status as claimstatus, DATE_FORMAT(a.date_added, '%e %b %Y') as datenew ,b.* FROM process_claim_no a left join patient_information b on a.patient_no=b.card_number where MONTH(a.date_added)='$month' AND YEAR(a.date_added)='$year' AND a.insurance_company='$ins_company' AND  (a.mode_of_payment='$claim_area') order by a.id desc";	
}
    
    
    if($searchtxt!='' && ($action=='claimsoffice_list_claims_search')){
        
        if($typesearch=='claim_no'){
        $query_rsodest = "select DISTINCT a.process_claim_no, a.ins_company,  DATE_FORMAT(a.date_of_consultation, '%e %b %Y') as datenew, b.* from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where a.process_claim_no='$searchtxt' and (a.mode_of_payment='$claim_area') order by a.date_of_consultation desc";	
        $query_rsodest_count = "select COUNT(DISTINCT a.process_claim_no) AS total_count from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where a.process_claim_no='$searchtxt' and (a.mode_of_payment='$claim_area') order by a.date_of_consultation desc";	
        
        // $query_rsodest_count = "select DISTINCT a.process_claim_no from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where a.process_claim_no='$searchtxt' and (a.mode_of_payment='$claim_area') order by a.date_of_consultation desc";	
        
    }
        
        if($typesearch=='patientid'){
        $query_rsodest = "select DISTINCT a.process_claim_no, a.ins_company,  DATE_FORMAT(a.date_of_consultation, '%e %b %Y') as datenew, b.* from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where b.card_number='$searchtxt' and (a.mode_of_payment='$claim_area') order by a.date_of_consultation desc";	
        $query_rsodest_count = "select COUNT(DISTINCT a.process_claim_no) AS total_count from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where b.card_number='$searchtxt' and (a.mode_of_payment='$claim_area') order by a.date_of_consultation desc";	
        }
        
        if($typesearch=='mem_no'){
        $query_rsodest = "select DISTINCT a.process_claim_no, a.ins_company,  DATE_FORMAT(a.date_of_consultation, '%e %b %Y') as datenew, b.* from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where a.insurance_no='$searchtxt' and (a.mode_of_payment='$claim_area') order by a.date_of_consultation desc";	
        $query_rsodest_count = "select COUNT(DISTINCT a.process_claim_no) AS total_count from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where a.insurance_no='$searchtxt' and (a.mode_of_payment='$claim_area') order by a.date_of_consultation desc";	
        }
        
        if($typesearch=='surname'){
        $query_rsodest = "select DISTINCT a.process_claim_no, a.ins_company,  DATE_FORMAT(a.date_of_consultation, '%e %b %Y') as datenew, b.* from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where b.surname like '$searchtxt%' and (a.mode_of_payment='$claim_area') order by b.surname, b.othernames";	
        $query_rsodest_count = "select COUNT(DISTINCT a.process_claim_no) AS total_count from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where b.surname like '$searchtxt%' and (a.mode_of_payment='$claim_area') order by b.surname, b.othernames";	
        }
        
        if($typesearch=='othernames'){
        $query_rsodest = "select DISTINCT a.process_claim_no, a.ins_company,  DATE_FORMAT(a.date_of_consultation, '%e %b %Y') as datenew, b.* from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where b.othernames like '%$searchtxt%' and (a.mode_of_payment='$claim_area') order by b.surname, b.othernames";	
        $query_rsodest_count = "select COUNT(DISTINCT a.process_claim_no) AS total_count from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number  where b.othernames like '%$searchtxt%' and (a.mode_of_payment='$claim_area') order by b.surname, b.othernames";	
        }
        
        if($typesearch=='insurance_companies'){
        $query_rsodest = "select DISTINCT a.process_claim_no, a.ins_company,  DATE_FORMAT(a.date_of_consultation, '%e %b %Y') as datenew, b.* from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number where (a.mode_of_payment='$claim_area') and a.ins_company='$searchtxt' order by a.id desc";	
        $query_rsodest_count = "select COUNT(DISTINCT a.process_claim_no) AS total_count from claims_details a LEFT JOIN patient_information b on a.patient_no=b.card_number where (a.mode_of_payment='$claim_area') and a.ins_company='$searchtxt' order by a.id desc";	
        }
        
        // if($typesearch=='visit_date'){
        // $query_rsodest = "SELECT a.*, a.id as claim_id, a.status as claimstatus, DATE_FORMAT(a.date_added, '%e %b %Y') as datenew ,b.* FROM process_claim_no a left join patient_information b on a.patient_no=b.card_number  where a.date_added='$searchtxt' and (a.mode_of_payment='$claim_area') order by b.surname, b.othernames";	
        // }
    }


$pagerows = $datatable_products_length;
$rsodest = mysql_fetch_assoc(mysql_query($query_rsodest_count, $courier));
$totalRows_rsodest = $rsodest['total_count'];

$total_pages = ceil($totalRows_rsodest / $pagerows);
$pagenum = $_POST['page_num'];
if (!(isset($pagenum))) {
    $pagenum = 1;
}
if ($pagenum < 1) {
    $pagenum = 1;
} elseif ($pagenum > $total_pages) {
    $pagenum = $total_pages;
}
$start_row = (($pagenum - 1) * $pagerows) + 1;
$end_row = $start_row + $pagerows;

if ($end_row > $totalRows_rsodest) {
    $end_row = $totalRows_rsodest;
}
$rsodest = mysql_query($query_rsodest . ' limit ' . (($pagenum - 1) * $pagerows) . ',' . $pagerows);
if ($totalRows_rsodest > 0) {
    $row_rsodest = mysql_fetch_assoc($rsodest);
} else {
    $start_row = 0;
}

?>


<div class="page-bar">
                        <ul class="page-breadcrumb">
                            <li>
                                <i class="icon-home"></i>
                                <a href="index.html">Home</a>
                                <i class="fa fa-angle-right"></i>
                            </li>
                            <li>
                                <span>Dashboard</span>
                            </li>
                        </ul>
                        <div class="page-toolbar">
                            <div class="btn-group pull-right">
                                <button type="button" class="btn btn-fit-height grey-salt dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"> Actions
                                    <i class="fa fa-angle-down"></i>
                                </button>
                                <ul class="dropdown-menu pull-right" role="menu">
                                    <li onclick="getstep('<?php echo $action; ?>', '<?php echo $claim_area; ?>');">
                                        <a href="#">
                                            <i class="icon-refresh"></i> Refresh</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
</div>

<div class="row">
    <div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
        <div class="portlet light ">
            <div class="portlet-title">
                <div class="caption">
                    <span class="caption-subject bold uppercase font-dark">LIST OF <?php echo strtoupper($claim_area); ?> BILLS </span>
                </div>
            </div>
            <div class="portlet-body form">
                    <div class="table-container">
                        <div id="datatable_products_wrapper" class="dataTables_wrapper dataTables_extended_wrapper no-footer">
                            <div class="row">
                                <div class="col-md-7 col-sm-12">
                                    <div class="dataTables_paginate paging_bootstrap_extended" id="datatable_products_paginate">
                                        <div class="pagination-panel"> Page 
                                            <a onClick="getpage('<?php echo $action?>','1','<?php echo $totalRows_rsodest; ?>','<?php echo $id; ?>','<?php echo $typesearch; ?>','<?php echo $searchtxt; ?>')" href="#" class="btn btn-sm default prev" title="First"><i class="fa fa-angle-double-left"></i></a>
                                            <a onClick="getpage('<?php echo $action?>','<?php echo ($pagenum-1); ?>','<?php echo $totalRows_rsodest; ?>','<?php echo $id; ?>','<?php echo $typesearch; ?>','<?php echo $searchtxt; ?>')" href="#" class="btn btn-sm default prev" title="Prev"><i class="fa fa-angle-left"></i></a>
                                            <input readonly="" value="<?php echo $pagenum; ?>" type="text" class="pagination-panel-input form-control input-mini input-inline input-sm" maxlenght="5" style="text-align:center; margin: 0 5px;">
                                            <a onClick="getpage('<?php echo $action?>','<?php echo ($pagenum+1); ?>','<?php echo $totalRows_rsodest; ?>','<?php echo $id; ?>','<?php echo $typesearch; ?>','<?php echo $searchtxt; ?>')" href="#" class="btn btn-sm default next" title="Next"><i class="fa fa-angle-right"></i></a> 
                                            <a onClick="getpage('<?php echo $action?>','<?php echo $total_pages; ?>','<?php echo $totalRows_rsodest; ?>','<?php echo $id; ?>','<?php echo $typesearch; ?>','<?php echo $searchtxt; ?>')" href="#" class="btn btn-sm default next" title="Next"><i class="fa fa-angle-double-right"></i></a> 
                                            of <span class="pagination-panel-total"><?php echo $total_pages;?></span>
                                        </div>
                                    </div>
                                    <div class="dataTables_length" id="datatable_products_length">
                                     <form name="form" id="form" method="post">
                                        <label> 
                                            <span class="seperator">|</span>View By 
                                            <select onchange="getstep('<?php echo $action; ?>');" name="datatable_products_length" id="datatable_products_length" aria-controls="datatable_products" class="form-control input-xsmall input-sm input-inline">
                                                <option <?php if($pagerows == 10){echo 'selected=""';} ?> value="10">10</option>
                                                <option <?php if($pagerows == 20){echo 'selected=""';} ?> value="20">20</option>
                                                <option <?php if($pagerows == 50){echo 'selected=""';} ?> value="50">50</option>
                                                <option <?php if($pagerows == 100){echo 'selected=""';} ?> value="100">100</option>
                                                <option <?php if($pagerows == 150){echo 'selected=""';} ?> value="150">150</option>
                                            </select> 
                                            records</label>
                                        <span class="seperator">|</span> Found : <b><?php echo $totalRows_rsodest; ?> records </b> 
                                    </form>
                                    </div>
                                </div>
                                <div class="col-md-5 col-sm-12">
                                    <div class="table-group-actions pull-right">
                                        <form name="form" id="form" method="post" action="" onsubmit="getstep('claimsoffice_list_claims_search','<?php echo $claim_area; ?>'); return false;">
                                        <input type="text" name="searchtext" id="searchtext" class="table-group-action-input form-control input-inline input-small input-sm hide_all" style="display: <?php if($typesearch!="insurance_companies"){echo "";}else{ ?> none <?php } ?>;">
                                        <select class="table-group-action-input form-control input-inline input-small input-sm hide_all" name="searchtext_2" id="searchtext_2" style="display: <?php if($typesearch=="insurance_companies"){echo "";}else{ ?> none <?php } ?>;">
                                             <option value="">Select <?php echo ucfirst($claim_area);?></option>
                                             <?php $qry = mysql_query("SELECT * FROM insurance_company where status='Active' and type='$claim_area' order by type, company_name");
                                             while ($row = mysql_fetch_assoc($qry)){ ?>
                                             <option value="<?php echo $row['company_code']; ?>" <?php if($row['company_code']==$searchtxt){?>selected<?php }?>> <?php echo strtoupper($row['company_name']);?> </option>
                                            <?php }?>
                                        </select>
                                        <select onchange="$('.hide_all').hide();if(this.value=='insurance_companies'){$('#searchtext_2').show()}else{$('#searchtext').show()}" class="table-group-action-input form-control input-inline input-small input-sm" name="typesearch" id="typesearch">
                                            <option value="">Select...</option>
                                              <?php if($action!='list_guest_patients'){ ?>
                                                     <option value="patientid" <?php if($typesearch=="patientid" ||($typesearch=='')){echo "selected='selected'";}?>>Patient ID/Old Card No.</option>
                                                     <option value="member_no"  <?php if(($typesearch=="member_no")){echo "selected='selected'";}?>>Insurance/Staff No.</option> <?php } ?>
                                                     <?php if($claim_area == 'insurance' || $claim_area == 'company'){?>
                                                     <option value="insurance_companies"  <?php if($typesearch=="insurance_companies"){echo "selected='selected'";}?>>Insurance/Companies</option>
                                                     <option value="claim_no"  <?php if($typesearch=="claim_no"){echo "selected='selected'";}?>>Claim Number</option>
                                                     <?php } ?>
                                                     <option value="surname"  <?php if($typesearch=="surname"){echo "selected='selected'";}?>>Surname</option>
                                                     <option value="othernames" <?php if($typesearch=="othernames"){echo "selected='selected'";}?>>Othernames</option>
                                        </select>
                                        <button class="btn btn-sm green table-group-action-submit"><i class="fa fa-search"></i> Search </button>
                                        </form>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="table-scrollable">
                                <table class="table table-striped table-bordered table-hover dataTable no-footer" id="datatable_products" aria-describedby="datatable_products_info" role="grid">
                                    <thead>
                                        <tr>
                                            <th>ID</th>
                                            <th>DATE TIME</th>
                                            <th>VISIT NO.</th>
                                            <?php if($claim_area == 'insurance' || $claim_area == 'company'){?>
                                            <th>INSURANCE COMPANY</th>
                                            <?php } ?>
                                            <th>PATIENT NAME</th>
                                            <th>PATIENT NO.</th>
                                            <?php if($claim_area == 'insurance' || $claim_area == 'company'){?>
                                            <th>MEMBERSHIP NO.</th>
                                            <?php } ?>
                                            <th>STATUS</th>
                                            <th style="text-align: center;">ACTION</th>
                                            <th style="text-align: center;">PRINT</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                       
                                         <?php if($totalRows_rsodest>0){ 
                                                    do { $start_row=$start_row+1;?>
            <tr>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" height="23" valign="top" class="count"><span><?php echo $start_row-1; ?></span></td>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" valign="top" style="cursor: pointer;"><?php echo strtoupper($row_rsodest['datenew']); ?></td>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" valign="top" style="cursor: pointer;"><?php echo strtoupper($row_rsodest['process_claim_no']); ?></td>
                  <?php if($claim_area == 'insurance' || $claim_area == 'company'){?>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" valign="top" style="cursor: pointer;"><?php echo strtoupper(getinsurance($row_rsodest['ins_company'])); ?></td>
                  <?php } ?>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" valign="top" style="cursor: pointer;"><?php if(!empty($row_rsodest['card_number'])){ echo strtoupper($row_rsodest['surname']." ".$row_rsodest['othernames']);}else{ echo strtoupper($row_rsodest['surname1']." ".$row_rsodest['othernames1']);} ?></td>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" valign="top" style="cursor: pointer;"><?php if(!empty($row_rsodest['card_number'])){ echo strtoupper($row_rsodest['card_number']);}else{ echo strtoupper($row_rsodest['card_number1']);} ?></td>
                  <?php if($claim_area == 'insurance' || $claim_area == 'company'){?>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" valign="top" style="cursor: pointer;"><?php echo $row_rsodest['insurance_no1'];?></td>
                  <?php } ?>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" valign="top" style="cursor: pointer;">
                    <?php if($row_rsodest['patient_status']=='In Use'){$statuscolor='green';}
				  if($row_rsodest['patient_status']=='Done'){$statuscolor='red';}
				  echo "<span style='color:$statuscolor; font-weight:bold;'>".strtoupper($row_rsodest['patient_status'])."</span>";?>
                    </td>
                  <td data-toggle="modal" href="#full_width_page" onclick="getData('fetch_patient_claims_details', '<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>', '#div_wrapper_claims_details');" valign="top" style="cursor: pointer;text-align: center;"><span style="font-weight:bold;"> <a style="color:blue" href="#"> <i class="icon-info"></i></a> </span></td>
                  <td valign="top" style="cursor: pointer;text-align: center;">
                       <span class="label label-sm label-danger" onclick="printReport2('billing_office/print_billing_claims.php','<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>');"> Print <i class="fa fa-print"></i> </span> 
                  </td>

                <td valign="top" style="cursor: pointer;text-align: center;">
                    <span class="label label-sm label-danger" onclick="printReport2('billing_office/GraReceipt.php','<?php echo $row_rsodest['process_claim_no'].'@@@'.$claim_area; ?>');"> GRA Receipt <i class=""></i></span>
                </td>
            </tr>

                                         <?php } while ($row_rsodest = mysql_fetch_assoc($rsodest)); } else { echo '<tr><td colspan="10" style="color:red;text-align:center;">No Records Found.</td></tr>';} ?>
                                    </tbody>
                                </table>
                            </div>
                            
                            <div class="row">
                                <div class="col-md-7 col-sm-12">
                                    <div class="dataTables_paginate paging_bootstrap_extended" id="datatable_products_paginate">
                                        <div class="pagination-panel"> Page 
                                            <a onClick="getpage('<?php echo $action?>','1','<?php echo $totalRows_rsodest; ?>','','<?php echo $typesearch; ?>','<?php echo $searchtxt; ?>')" href="#" class="btn btn-sm default prev" title="First"><i class="fa fa-angle-double-left"></i></a>
                                            <a onClick="getpage('<?php echo $action?>','<?php echo ($pagenum-1); ?>','<?php echo $totalRows_rsodest; ?>','','<?php echo $typesearch; ?>','<?php echo $searchtxt; ?>')" href="#" class="btn btn-sm default prev" title="Prev"><i class="fa fa-angle-left"></i></a>
                                            <input readonly="" value="<?php echo $pagenum; ?>" type="text" class="pagination-panel-input form-control input-mini input-inline input-sm" maxlenght="5" style="text-align:center; margin: 0 5px;">
                                            <a onClick="getpage('<?php echo $action?>','<?php echo ($pagenum+1); ?>','<?php echo $totalRows_rsodest; ?>','','<?php echo $typesearch; ?>','<?php echo $searchtxt; ?>')" href="#" class="btn btn-sm default next" title="Next"><i class="fa fa-angle-right"></i></a> 
                                            <a onClick="getpage('<?php echo $action?>','<?php echo $total_pages; ?>','<?php echo $totalRows_rsodest; ?>','','<?php echo $typesearch; ?>','<?php echo $searchtxt; ?>')" href="#" class="btn btn-sm default next" title="Next"><i class="fa fa-angle-double-right"></i></a> 
                                            of <span class="pagination-panel-total"><?php echo $total_pages;?></span>
                                        </div>
                                    </div>
                                    <div class="dataTables_length" id="datatable_products_length">
                                        <label> 
                                            <span class="seperator">|</span>View By 
                                            <select onchange="getstep('<?php echo $action; ?>');" name="datatable_products_length_2" id="datatable_products_length_2" aria-controls="datatable_products" class="form-control input-xsmall input-sm input-inline">
                                                <option <?php if($pagerows == 10){echo 'selected=""';} ?> value="10">10</option>
                                                <option <?php if($pagerows == 20){echo 'selected=""';} ?> value="20">20</option>
                                                <option <?php if($pagerows == 50){echo 'selected=""';} ?> value="50">50</option>
                                                <option <?php if($pagerows == 100){echo 'selected=""';} ?> value="100">100</option>
                                                <option <?php if($pagerows == 150){echo 'selected=""';} ?> value="150">150</option>
                                            </select> 
                                            records</label>
                                        <span class="seperator">|</span> Found : <b><?php echo $totalRows_rsodest; ?> records </b> </div>
                                </div>
                                <div class="col-md-5 col-sm-12"></div>
                            </div>
                        </div>
                    </div>
            </div>
        </div>
    </div>
</div>


<!-- /.modal -->
<div class="modal fade" id="full_width_page" tabindex="-1" role="dialog" aria-hidden="true">
                                            <div class="modal-dialog modal-full">
                                                <div class="modal-content">
                                                    <div class="modal-body"> 
                                                       <div class="row">
                                                          <div class="col-md-12" id="div_wrapper_claims_details"> 
                                                               
                                                          </div>
                                                     </div>
                                                    <div class="modal-footer">
                                                        <button type="button" class="btn red" data-dismiss="modal">Close</button>
                                                    </div>
                                                </div>
                                                <!-- /.modal-content -->
                                            </div>
    <!-- /.modal-dialog -->
</div>
                                        <!-- /.modal -->


