<div class="content-header">
    <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-sm-6">
                <!-- <h1 class="m-0">Deactive Member </h1> -->
            </div>
            <div class="col-sm-6">
                <ol class="breadcrumb float-sm-right">
                    <li class="breadcrumb-item"><a href="#">Insurance</a></li>
                    <li class="breadcrumb-item active">Particular Insurance </li>
                </ol>
            </div>
        </div>
    </div>
</div>




<section class="content">
    <div class="container-fluid">




        <div class="row">

            <section class="col-lg-12 connectedSortable">

                <div class="card">
                    <div class="card-header " style="background-color:#31708e;color:white">
                        <h3 class="card-title">
                        Particular Insurance Details
                        </h3>
                        <div class="card-tools">
                            <ul class="nav nav-pills ml-auto">
                            </ul>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="tab-content p-0">

                        <!-- File: src/Template/Articles/edit.ctp -->
                        <h3 class="text-center btn btn-lg btn-light  float-left"><a href="<?php echo base_url(); ?>index.php/Member/insurance_details">Back</a></h3>
                        <!-- <h1 class="text-center">Particular Thrift</h1><br><br> -->
                        <div class="row">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-8">
                            <?php foreach ($insu as $data) : ?>
                                <center>
                                        <h1>TOTAL INSURANCE - <?= $data['tot_insurance']; ?></h1>
                                    </center>
                                    <br>
                                <table id="table_id" class="table table-striped table-bordered" style="width:100%">
                                    <thead>
                                        <tr>
                                            <th class="text-center">Member No.</th>
                                            <th class="text-center">Member Name</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                                <td class="text-center">
                                                    <?= $data['me_no']; ?>
                                                </td>
                                                <td class="text-center">
                                                    <?= $data['mem_name']; ?>
                                                </td>
                                                </td> <?php endforeach; ?>

                                    </tbody>
                                </table>
                                <table id="table_id" class="table table-striped table-bordered" style="width:100%">
                                    <thead>
                                        <tr>
                                            <th class="text-center">Date</th>

                                            <th class="text-center">Insurance Amount</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr> <?php foreach ($value as $data) : ?>
                                                </td>
                                                <td class="text-center">
                                                    <?= date('d-m-Y', strtotime($data['paid_on'])); ?>
                                                </td>
                                                <td class="text-center">
                                                    <?= $data['insurance']; ?>
                                                </td>
                                        </tr>
                                        <?php

                                                    $total_thrift += $data['insurance'];;
                                                    $tot_td_amt += $thrift->tot_thrift;

                                        ?>
                                    <?php endforeach; ?>
                                    <tr>
                                        <td class="text-center">
                                            <b>Total</b>
                                        </td>
                                        <td class="text-center">
                                            <b><?= $total_thrift; ?></b>
                                        </td>



                                    </tr>
                                    </tbody>

                                </table>

                            </div>
                        </div>

                   


                        
                        </div>
                    </div>
                </div>
        </div>
</section>
</div>
</div>
</section>