<link rel="stylesheet" href="{{ IncludeAsset('assets/lib/datatables/css/DT_bootstrap.css') }}">
<link rel="stylesheet" href="{{ IncludeAsset('assets/lib/datatables/css/datatables.responsive.css') }}">

<!--Begin Datatables-->
<div class="row">
	<div class="col-lg-12">
		<div class="box">
			<header>
				<div class="icons">
					<i class="fa fa-table"></i>
				</div>
				<h5>{{ @lang_ads }}</h5>
			</header>
			<div id="collapse4" class="body">
				<table id="dataTable" class="table table-bordered table-condensed table-hover table-striped">
					<thead>
					<tr>
						<th data-class="expand">{{ @lang_ad }}</th>
						<th data-hide="phone">{{ @lang_status }}</th>
						<th data-hide="phone">{{ @lang_approved }}</th>
						<th data-hide="phone,tablet">{{ @lang_last_updated }}</th>
						<th data-hide="phone">{{ @lang_end_date }}</th>
						<th data-hide="phone">{{ @lang_impressions }}</th>
						<th data-hide="phone">{{ @lang_clicks }}</th>
						<th>{{ @lang_commands }}</th>
					</tr>
					</thead>
					<tbody>
					<repeat group="{{ @res_ads }}" value="{{ @res_ad }}">
						<tr data-id="{{ @res_ad.id }}">
							<td>{{ @res_ad.title | raw }} <i class="fa {{ @res_ad.type }}"></i></td>
							<td>
								<span class="label label-{{ @res_ad.status_type }}">{{ @res_ad.status_text }}</span>
							</td>
							<td>
								<check if ="{{ @res_ad.approved == 1 }}">
									<true>
										<span class="label label-success">{{ @lang_yes }}</span>
									</true>
									<false>
										<span class="label label-danger">{{ @lang_no }}</span>
									</false>
								</check>
							</td>
							<td>{{ @res_ad.last_updated }}</td>
							<td>{{ @res_ad.limit_end_date }}</td>
							<td>{{ @res_ad.impressions }}</td>
							<td>{{ @res_ad.clicks }}</td>
							<td><a class="edit" href="index.php?ads&edit&{{ @res_ad.id}}" title="Edit"><i class="fontsize15 fa fa-pencil"></i></a></td>
						</tr>
					</repeat>

					</tbody>
				</table>
			</div>
		</div>
	</div>
</div><!-- /.row -->

<!--End Datatables-->
