<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Devotee Registration View</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box box-danger">
                    <div class="box-body">
                        <div class="col-xs-12">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <span class="first-coln">Ref. No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($devotee->bd_ref_no);?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Name</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($devotee->bd_name);?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Star</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($devotee->star_name . ' / ' . $devotee->tamil_name);?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Contact No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($devotee->bd_contact_no);?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Address</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text(nl2br($devotee->address));?></span>
                                </div>
                            </div>
                            <div class="col-md-6"> 
                                <div class="form-group">
                                    <span class="first-coln">NRIC No</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($devotee->bd_nric_no);?></span>
                                </div>                            
                                <div class="form-group">
                                    <span class="first-coln">Name (T)</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo (!empty($devotee->bd_tamil_name)) ? '<span class="lang-tamil">' . $devotee->bd_tamil_name . '</span>' : 'N/A';?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">SMS Type</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($sms->sms_name);?></span>
                                </div>
                                <div class="form-group">
                                    <span class="first-coln">Email</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo text($devotee->bd_email);?></span>
                                </div>                                
                                <div class="form-group">
                                    <span class="first-coln">Status</span>
                                    <span class="seperator">:</span>
                                    <span class="second-coln"><?php echo ($devotee->status_str);?>
                                    </span>
                                </div>
                                
                            </div>
                        </div>
                        
                        <div class="col-xs-12">
                            <h4 class="major_txt_color">Members Details</h4>
                        </div><!-- /.box-header -->
                        
                        <div class="col-xs-12">
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-bordered">
                                    <tr>
                                        <th style="text-align: center;">S.No.</th>
                                        <th style="text-align: center;">Name</th>
                                        <th style="text-align: center;">Tamil Name</th>
                                        <th style="text-align: center;">Star</th>
                                    </tr>
                                    <?php if(count($members) > 0) {
                                        foreach($members as $key => $mems) {?>
                                        <tr>
                                            <td align="center"><?php echo ++ $key;?></td>
                                            <td><?php echo $mems->bdi_name?></td>
                                            <td><?php echo (!empty($mems->bdi_tamil_name)) ? '<span class="lang-tamil">' . $mems->bdi_tamil_name . '</span>' : 'N/A';?></td>
                                            <td><?php echo text($mems->star_name . ' / ' . $mems->tamil_name);?></td>
                                        </tr>
                                    <?php } } else { ?> 
                                        <tr>
                                            <td colspan="4" align="center" style="color: #0B45B3;">No Records Found!</td>
                                        </tr>
                                    <?php } ?>
                                </table>
                            </div><!-- /.box-body -->
                        </div>
                        <div class="box-footer form-actions float-clear"></div>
                    </div><!-- /.box-body -->
                </div><!-- /.box -->
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>