?>
</td>
                                    <td><?php 
        echo isset($report_lists[$i - 1]) && $report_lists[$i]['wardid'] == $report_lists[$i - 1]['wardid'] ? '' : $report_lists[$i]['wardname'];
        ?>
</td>
                                    <td><?php 
        echo $report_lists[$i]['uisc_name'];
        ?>
</td>
                                    <td>
                                        <?php 
        //echo System_helper::Get_Eng_to_Bng();
        $date = explode('-', $report_lists[$i]['invoice_date']);
        echo System_helper::Get_Eng_to_Bng($date[2]) . ' ';
        echo System_helper::Get_Bangla_Month($date[1]) . ',   ';
        echo System_helper::Get_Eng_to_Bng($date[0]);
        ?>
                                    </td>
                                    <td style="text-align: center;"><?php 
        echo System_helper::Get_Eng_to_Bng($union_total);
        ?>
</td>
                                </tr>
                            <?php 
    }
    ?>
                            <!--                            <tr style="background-color: #cccccc">-->
                            <!--                                <td colspan="2"> &nbsp;</td>-->
                            <!--                                <td >--><?php 
    //echo $this->lang->line('MUNICIPALITY');
                    </div>
                    <div class="col-sm-4 col-xs-8">
                        <select name="month" class="form-control">
                            <?php 
for ($i = 1; $i < 13; $i++) {
    if (strlen($i) == 1) {
        $option = "0" . $i;
    } else {
        $option = $i;
    }
    ?>
                                <option value="<?php 
    echo $option;
    ?>
"><?php 
    echo System_helper::Get_Bangla_Month($option);
    ?>
</option>
                            <?php 
}
?>
                        </select>
                    </div>
                </div>

                <div class="row show-grid ">
                    <div class="col-xs-4">
                        <label class="control-label pull-right"><?php 
echo $CI->lang->line('YEAR');
?>
</label>
?>
</a>
            <div class="clearfix"></div>
            <span class="pull-right"><?php 
echo $this->lang->line('REPORT_CURRENT_DATE_VIEW');
?>
</span>
        </div>
        <div class="col-lg-12">
            <div class="col-lg-12 text-center">
                <h4><?php 
echo $this->lang->line('REPORT_HEADER_TITLE');
?>
</h4>
                <h5><?php 
echo sprintf($this->lang->line('LAST_MONTH_TOP_INCOME_TITLE'), System_helper::Get_Bangla_Month($month));
?>
</h5>
            </div>
            <table class="table table-responsive table-bordered">
                <thead>
                <tr>
                    <th><?php 
echo $this->lang->line('SERIAL');
?>
</th>
                    <th><?php 
echo $this->lang->line('UNION');
?>
</th>
                    <th><?php 
                <h4><?php 
echo $this->lang->line('REPORT_HEADER_TITLE');
?>
</h4>
                <h5><?php 
echo $title;
?>
</h5>
            </div>

            <table class="table table-responsive table-bordered">
                <thead>
                <tr>
                    <th colspan="21" class="text-center">
                        <?php 
echo System_helper::Get_Bangla_Month($month) . " " . $this->lang->line('MONTH');
?>
,
                        <?php 
echo System_helper::Get_Eng_to_Bng($year);
?>
                    </th>
                </tr>
                <tr>
                    <!--                    <th>--><?php 
//echo $this->lang->line('DIVISION_NAME');
?>
<!--</th>-->
                    <!--                    <th>--><?php 
//echo $this->lang->line('ZILLA_NAME');
?>
?>
</a>
            <div class="clearfix"></div>
            <span class="pull-right"><?php 
echo $this->lang->line('REPORT_CURRENT_DATE_VIEW');
?>
</span>
        </div>
        <div class="col-lg-12">
            <div class="col-lg-12 text-center">
                <h4><?php 
echo $this->lang->line('REPORT_HEADER_TITLE');
?>
</h4>
                <h5><?php 
echo sprintf($this->lang->line('LAST_MONTH_TOP_SERVICE_PROVIDER_TITLE'), System_helper::Get_Bangla_Month($month));
?>
</h5>
            </div>
            <table class="table table-responsive table-bordered">
                <thead>
                <tr>
                    <th><?php 
echo $this->lang->line('SERIAL');
?>
</th>
                    <th><?php 
echo $this->lang->line('DIVISION');
?>
</th>
                    <th><?php 
?>
</span>
        </div>
        <div class="col-lg-12">
            <div class="col-lg-12 text-center">
                <h4><?php 
echo $this->lang->line('REPORT_HEADER_TITLE');
?>
</h4>
                <h5><?php 
echo $title;
?>
</h5>
            </div>
            <?php 
$month_name = System_helper::Get_Bangla_Month($month);
$s_date = $year . '-' . $month . '-' . date('d');
$date = date($s_date);
// current date
$date_one = strtotime(date("Y-m-d", strtotime($date)) . " -1 day");
$date_two = strtotime(date("Y-m-d", strtotime($date)) . " -2 days");
$date_three = strtotime(date("Y-m-d", strtotime($date)) . " -3 days");
$date_four = strtotime(date("Y-m-d", strtotime($date)) . " -4 days");
$date_five = strtotime(date("Y-m-d", strtotime($date)) . " -5 days");
$date_six = strtotime(date("Y-m-d", strtotime($date)) . " -6 days");
$date_seven = strtotime(date("Y-m-d", strtotime($date)) . " -7 days");
?>
            <table class="table table-responsive table-bordered">
                <thead>
                <tr>
                    <th colspan="21" class="text-center">