<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="#">Others</a></li>
                    <li class="breadcrumb-item active">Particular Others  </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 Others  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">



                                        <h3 class="text-center btn btn-lg btn-light  float-left"><a href="<?php echo base_url(); ?>index.php/Member/thrift_details">Back</a></h3>
                                        <div class="row">
                                            <div class="col-sm-2"></div>
                                            <div class="col-sm-8">
                                            <?php foreach ($others as $data) : ?>
                                                <center>
                                                        <h1>TOTAL OTHERS - <?= $data['others_amt']; ?></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>
                                                            <th class="text-center">Updated On</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <tr>
                                                                <td class="text-center">
                                                                    <?= $data['me_no']; ?>
                                                                </td>
                                                                <td class="text-center">
                                                                    <?= $data['mem_name']; ?>
                                                                </td>
                                                                <td class="text-center">
                                                                    <?php if ($data['updated_on'] != "") { ?>
                                                                        <?= date('d-m-Y', strtotime($data['updated_on'])); ?>
                                                                    <?php } else {
                                                                        echo 0;
                                                                    }?>
                                                                </td>

                                                        </tr>
                                                        <?php

                                                                $total_td += $others->others_amt;

                                                        ?>
                                                    </tbody>
                                                <?php endforeach; ?>
                                                </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">Others Amount</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <tr>
                                                            <?php foreach ($demand as $data) : ?>

                                                                <td class="text-center">
                                                                    <?= date('d-m-Y', strtotime($data['paid_on'])); ?>
                                                                </td>
                                                                <td class="text-center">
                                                                    <?= $data['others'] + $data['old_others']; ?>
                                                                </td>

                                                        </tr>
                                                        <?php

                                                                $total_thrift += $data['others'] + $data['old_others'];
                                                                $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>