<div class="row">
	<div class="col-md-7">
		<div class="box box-info">
			<div class="box-header with-border">
				<h3 class="box-title"><?= !empty(lang('addons'))?lang('addons'):"Add Ons";?></h3>
				<div class="box-tools pull-right">
					<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
					<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
				</div>
			</div>
			<!-- /.box-header -->
			<div class="box-body">
				<div class="upcoming_events">
					<div class="table-responsive">
						<table class="table table-bordered">
							<thead>
								<tr>
									<th><?= !empty(lang('sl'))?lang('sl'):"Sl";?></th>
									<th><?= !empty(lang('title'))?lang('title'):"Title";?></th>
									<th><?= !empty(lang('status'))?lang('status'):"Status";?></th>
									<th><?= !empty(lang('action'))?lang('action'):"action";?></th>
								</tr>
							</thead>
							<tbody>
								<?php if(file_exists(APPPATH.'controllers/admin/Vcard.php')): ?>
								<?php foreach ($addons as $key => $row): ?>
									<tr>
										<td><?=  $key+1 ;?></td>
										<td><?= $row['title'] ;?></td>
										<td>
											<?php if(file_exists(APPPATH.'controllers/admin/Vcard.php')): ?>
											<a href="javascript:;" data-id="<?= html_escape($row['id']);?>" data-status="<?= html_escape($row['status']);?>" data-table="addons" class="label <?= $row['status']==1?'label-success':'label-danger'?> change_status"> <i class="fa <?= $row['status']==1?'fa-check':'fa-close'?>"></i>&nbsp; <?= $row['status']==1?(!empty(lang('activate'))?lang('activate'):"activate"): (!empty(lang('inactive'))?lang('inactive'):"inactive");?></a> 
										<?php else: ?>
											<label class="label label-danger"><?= !empty(lang('inactive'))?lang('inactive'):"inactive";?></label>
										<?php endif; ?>
										</td>
										<td>
											<?php if(file_exists(APPPATH.'controllers/admin/Vcard.php') && $row['is_install']==1): ?>
												<a href="javascript:;" class="btn btn-success"><i class="fa fa-check" aria-hidden="true"></i> &nbsp;<?= !empty(lang('installed'))?lang('installed'):"Installed" ;?></a>
											<?php else: ?>
												<a href="<?= base_url('admin/vcard/install_addons') ;?>" class="btn btn-primary"><i class="fa fa-wrench" aria-hidden="true"></i> &nbsp;<?= !empty(lang('install'))?lang('install'):"Install" ;?></a>
											<?php endif;?>
											
										</td>
									</tr>
								<?php endforeach ?>
							<?php else: ?>
								<tr>
									<td>1</td>
									<td>Vcard Drag and Drop| Add Ons</td>
									<td>
										<label class="label label-danger"><?= !empty(lang('inactive'))?lang('inactive'):"inactive";?></label>
									</td>
									<td>
										<a href="<?= base_url('') ;?>" class="btn btn-primary"><i class="fa fa-hand-o-right" aria-hidden="true"></i> &nbsp;<?= !empty(lang('buy_now'))?lang('buy_now'):"buy now" ;?></a>
									</td>
								</tr>
							<?php endif; ?>
								
							</tbody>
						</table>
					</div>
				</div>	
			</div><!-- /.box-body -->
		</div>

	</div>
</div>