<?php /* Smarty version Smarty-3.1.11, created on 2017-08-31 17:18:39
         compiled from "application\views\templates\event.tpl" */ ?>
<?php /*%%SmartyHeaderCode:254559a7e27fb84fb5-49557766%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1560c29f8c8da54bb298d9fe9ef3f42a665c420f' => 
    array (
      0 => 'application\\views\\templates\\event.tpl',
      1 => 1504071121,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '254559a7e27fb84fb5-49557766',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_59a7e27fc119d1_53267421',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59a7e27fc119d1_53267421')) {function content_59a7e27fc119d1_53267421($_smarty_tpl) {?><link id="site-color" rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['base_assets'];?>
layouts/layout-icon-menu/css/color/light/color-default.min.css"/>
 
<style type="text/css">
	.form-group {
 	   margin-bottom: 2px !important;
	}
	.form-control{
		padding: 0rem 0rem !important;
	}
	}

</style>
<section id="main" class="container-fluid" style="padding-top: 3px;">
	<div class="row">
		<section id="content-wrapper" class="form-elements">
			
		</section>
	 	<div class="content" >
	 		<div class="row">
		 		<?php if ($_smarty_tpl->tpl_vars['data']->value['message']!=''){?>
		 		<div class="col-sm-12">
		            <div class="alert alert-info alert-dismissible fade in" role="alert">
						<button type="button" class="close" data-dismiss="alert" aria-label="Close">
							<span aria-hidden="true">×</span>
						</button>
						<strong><?php echo $_smarty_tpl->tpl_vars['data']->value['message'];?>
.</strong>
					</div>
				</div>
	            <?php }?>
	           	<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-xs-12">
	           		<div class="panel panel-default">
	           		  	<div class="panel-heading">                                
							<h3 class="panel-title">
								<h2>
									<span class="fa fa-user"></span>
									EVENT LIST
								</h2>
							</h3>
	                        <ul class="panel-controls  pull-right">
	                            <a href="<?php echo $_smarty_tpl->tpl_vars['data']->value['base_url'];?>
event/create">
	                            	<button class="btn btn-small btn-success">ADD NEW EVENT</button>
	                            </a>
	                        </ul>
	                    </div>
	                    <div class="panel-body">
	                    	<table class="table datatable" id="customers2">
	                        	<thead>
									<tr>
										<th>Name</th>
										<!-- <th>Start Date</th>
										<th>End Date</th> -->
										<th>Action</th>
									</tr>
								</thead>
								<tbody>
									<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['data']->value['event']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
	                                    <tr>
	                                        <td><?php echo mb_strtoupper($_smarty_tpl->tpl_vars['data']->value['event'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['name'], 'UTF-8');?>
</td>
	                                       <!--  <td><?php echo mb_strtoupper($_smarty_tpl->tpl_vars['data']->value['event'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['start_date'], 'UTF-8');?>
</td>
	                                        <td><?php echo mb_strtoupper($_smarty_tpl->tpl_vars['data']->value['event'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['end_date'], 'UTF-8');?>
</td> -->
	                                       	<td>
	                                       		<a href="<?php echo $_smarty_tpl->tpl_vars['data']->value['base_url'];?>
event/update/<?php echo $_smarty_tpl->tpl_vars['data']->value['event'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id'];?>
">
	                                        		 <span class="btn btn-primary"><i class="fa fa-pencil"></i></span>
	                                        	</a>
	                                        	<a href="<?php echo $_smarty_tpl->tpl_vars['data']->value['base_url'];?>
event/delete/<?php echo $_smarty_tpl->tpl_vars['data']->value['event'][$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id'];?>
">
	                                        		 <span class="btn btn-danger"><i class="fa fa-trash-o"></i></span> 
	                                        	</a>
	                                        </td>
	                                        
	                                       
	                                    </tr>   
	                                <?php endfor; endif; ?>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
 
 

 <?php }} ?>