<link rel="stylesheet" href="<?php echo base_url();?>assets/css/cust_paginition.css" type="text/css" />
<script src="<?php echo base_url(); ?>assets/library/jquery/jquery.min.js"></script> 
<div class="layout-app">
				<div class="container"><div class="row row-app">
					<div class="col-md-12">
						<div class="col-separator col-separator-first col-unscrollable bg-none">
							<div class="col-table">
								<div class="row">
									<div class="col-md-12">
										<div class="widget">
											<?php $this->load->view('admin/flashdata_admin'); ?> 
											<div class="widget-head">
												<a href="<?php echo base_url(); ?>index.php/magazine/add_magezine" class="btn btn-inverse pull-right mar"><i class="fa fa-fw fa-plus"></i>Add New</a>
												<h4 class="heading">Magazine</h4>

											</div>
											<div class="widget-body innerAll inner-2x">
												<table class="table table-white table-vertical-center margin-none table-striped footable">
													<thead>
														<tr>

															<th data-class="highlight" class="text-center">Magazine ID</th>
															<th  class="text-center">Magazine Name</th>
															<th data-hide="phone" class="text-center">Category</th>
															<th data-hide="phone" class="text-center">Language</th>
															<th data-hide="phone" class="text-center">Issues per year</th>
															<th data-hide="phone" class="text-center">Currency</th>

															<th class="text-center">Status</th>
															<th class="text-center">Edit</th>
														</tr>
													</thead>
													<tbody>
													<?php if(count($details) > 0) {
														foreach ($details as $arrmagezine){ ?>
															<tr>
																	<td class="text-center" ><a href="<?php echo base_url();?>index.php/magazine/preview?magezine_id=<?php echo base64_encode($arrmagezine['id']);?>" data-toggle="modal"><?php echo $arrmagezine['magezine_id'];?></a></td>
																	<td class="text-center" ><?php echo ucfirst($arrmagezine['name']);?></td>
																	<td class="text-center"><?php echo ucfirst($arrmagezine['category_name']);?></td>
																	<td class="text-center"><?php echo ucfirst($arrmagezine['language_name']);?></td>
																	<td class="text-center"><?php echo $arrmagezine['issues_per_year'];?></td>
																	<td class="text-center"><?php echo ucwords($arrmagezine['currency_name']);?></td>
		
																	<td class="text-center"><?php echo $arrmagezine['status'];?></td>
																	<td class="text-center"><a href="<?php echo base_url();?>index.php/magazine/edit_magezine?magezine_id=<?php echo base64_encode($arrmagezine['id']);?>" data-toggle="modal"><i class="fa fa-pencil"></i></a></td>
															</tr>
													<?php }?>
														</tbody>
													</table>
														<div class="text-center innerAll border-top pagination margin-none" align = "center">
															<?php echo $cust_Pagination; ?>
															</div>
													<?php } else { ?>
														<tr>
															<td class="text-center" colspan = "7" align = "center">Sorry, No Magazine found</td>
														</tr>
														</tbody>
													</table>
													<?php }?>
													
												
											</div>
											<!-- // END TRENDS -->
										</div>


									</div>

								</div>
								<div class="col-separator-h"></div>
							</div>
						</div>
					</div>
					</div>
				</div>
			</div>
