<?php  $this->load->view('master/common/header.php',$data);
$base_name = $data['base_name'];
?>

    <div class="content">
        
        <!-- Start Content-->
        <div class="container-fluid">
            
            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box">
                        <div class="page-title-right">
                            <ol class="breadcrumb m-0">
                                <li class="breadcrumb-item"><a href="javascript: void(0);"><?= $base_name;?></a></li>
                                <li class="breadcrumb-item active text-capitalize"><?= $page;?></li>
                            </ol>
                        </div>
                        <h4 class="page-title text-uppercase"><?= $page;?></h4>
                    </div>
                </div>
            </div>     
            <!-- end page title --> 

            <div class="row">
                <div class="col-md-12 col-xl-12">
                    <div class="card-box">
                        <div class="row">
                            <div class="col-sm-12">
							    <table id="key-table" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
                                    <thead>
                                        <tr>
                                            <th>#</th>
        									<th>Name</th>
        									<th>Status</th>
        									<th>Action</th>
                                        </tr>
                                    </thead>


                                        <tbody>
                                        
								<?php if (!empty($size)) {
								    $i=0;
								    foreach ($size as $row) {
								        $i++;
									?>
								        <tr>
                                            <td><?php echo $i;?></td>
        									<td><?php echo $row['size_name'];?></td>
        									<td>
        										<?php if ($row['status'] == 1) {?>
        											<span class="badge badge-success">Active</span>
        										<?php } else {?>
        											<span class="badge badge-danger">Block</span>
        										<?php }?>
        									</td>
        									<td class="text-center">
        									    <div class="row">
        									        <div class="col-sm-12"><a href="<?php echo base_url().'master/size/edit/'.$row['size_id'];?>" class="btn btn-primary btn-sm" title="Edit"><i class="far fa-edit"></i> Edit</a></div>
        									        <!--<div class="col-sm-6 text-left">
        									            <form class="form-horizontal" onsubmit="return deletesize();" action="<?= base_url('master/action/delete');?>" method="post" enctype="multipart/form-data">
                                                            <input type="hidden" name="table" value="tbl_size" />
                                                            <input type="hidden" name="page" value="size" />
                                                            <input type="hidden" name="id" value="<?=$row['size_id'];?>" />
                                                            <input type="hidden" name="column" value="size_id" />
                                                            
                                                            <button type="submit" class="btn btn-danger btn-sm" title="Delete">Delete</button>
                										</form>
        									        </div>-->
        									    </div>
        									</td>
        								</tr>
								<?php }?>
								<?php } else {?>
								<tr>
									<td colspan="4" class="text-center">Records Not Found</td>
								</tr>
								<?php }?>
							</tbody>
							</table>
							</div>
					    </div>
					</div>
				</div>
				<!-- /.col-md-6 -->
			</div>
			<!-- /.row -->
		</div>
		<!-- /.container-fluid -->
	</div>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php $this->load->view('master/common/footer.php'); ?>

<script type="text/javascript">
	function deletesize() {
		if (confirm("Are You Sure You Want TO Delete size ?")) {
            return true;
		}
		return false;
	}
</script>