<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link rel="stylesheet" href="<?php echo asset('bootstrap\css\bootstrap.min.css'); ?>">
</head>
<body>
<div class="container">
	<div class="row">
		<div class="col-xs-12">

				<div class="panel panel-info">
					<div class="panel-heading">
						<h3 class="panel-title">Listado de Campa&ntilde;as Leadhunters</h3>
					</div>
					<div class="panel-body">
						<div class="table-responsive">
							<table class="table table-striped">
								<thead>
									<tr>
										<th>Campaña</th>
										<th></th>
									</tr>
								</thead>
								<tbody class="table-hover">
									<?php foreach(\ORM\Campaign::where('client_id','=', 11)->get() as $c): ?>
										<tr>
											<td>
												<?php echo e($c->name); ?>

											</td>
											<td>
												<a href="<?php echo route('marval-export', ['campaign_id'=>$c->getKey()]); ?>" target="_blank" class="btn btn-success">
													descargar leads
												</a>
											</td>
										</tr>
									<?php endforeach; ?>
								</tbody>
							</table>
						</div>
					</div>
				</div>

				<div class="panel panel-info">
					<div class="panel-heading">
						<h3 class="panel-title">Listado de Landing Pages</h3>
					</div>
					<div class="panel-body">
						<div class="table-responsive">
							<table class="table table-striped">
								<thead>
									<tr>
										<th>Landing</th>
										<th></th>
									</tr>
								</thead>
								<tbody class="table-hover">
									<?php foreach($ciSites as $key => $site): ?>
										<tr>
											<td>
												<?php echo e($site['name']); ?>

											</td>
											<td>
												<a href="<?php echo route('marval-export-ext', ['sitename'=>$key]); ?>" target="_blank" class="btn btn-success">
													descargar leads
												</a>
											</td>
										</tr>
									<?php endforeach; ?>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			
		</div>
	</div>
</div>

	
</body>
</html>