<?php $__env->startSection('CSS'); ?>
<?php echo HTML::style('DataTables/dataTables.bootstrap.min.css'); ?>

<?php echo HTML::style('DataTables/responsive.dataTables.min.css'); ?>

<?php echo HTML::style('Intl-Tel-Input/17.0.3/css/intlTelInput.min.css'); ?>

<?php echo HTML::style('Webui-Popover/jquery.webui-popover.min.css'); ?>

<?php echo HTML::style('Perfect-Scrollbar/css/perfect-scrollbar.css'); ?>

<?php echo HTML::style('bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css'); ?>

<style type="text/css">
	@media (max-width: 450px) { .ModalEliminar .modal-dialog { width: auto; } }
	@media (min-width: 451px) { .ModalEliminar .modal-dialog { width: 450px; } }
	.progress {
		position: relative;
	}
	.progress span {
		position: absolute;
		display: block;
		width: 100%;
		color: black;
	}
	.table > tbody > tr.success > td {
		background-color: #b4ef9d;
	}
	.table > tbody > tr.success:hover > td {
		background-color: #9fec82;
	}
	.table > tbody > tr.info > td {
		background-color: #b1dff6;
	}
	.table > tbody > tr.info:hover > td {
		background-color: #95d6f6;
	}
	.table > tbody > tr.warning > td {
		background-color: #f5e8a5;
	}
	.table-hover > tbody > tr.warning:hover > td {
		background-color: #f5e490;
	}
	.table > tbody > tr.danger > td {
		background-color: #f6b9b9;
	}
	.table > tbody > tr.danger:hover > td {
		background-color: #f89494;
	}
	.table-bordered {
		border: 1px solid #7a7a7a;
	}
	.table-bordered > thead > tr > th {
		border: 1px solid #7a7a7a;
	}
	.table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
		border: 1px solid #7a7a7a;
	}
	.country-list {
		z-index: 10000 !important;
		/* position: fixed !important; */
	}
	.intl-tel-input input[type="text"] {
		padding-left: 52px !important;
	}
	.intl-tel-input, .iti {
		width: 100%;
		display: block !important;
	}
	.intl-tel-input .iti-flag .arrow {
		border: none;
	}
	select.slReadonly {
		background: #eee !important;
		cursor: no-drop;
		pointer-events: none !important;
	}
	select.slReadonly option{
		display: none;
	}
	.mdAvatar .modal-dialog .modal-content .modal-header {
		background-color: #363B3F;
	}
	.seleccionado {
		color: #282323;
		font-weight: normal;
	}
	.tel .selected-flag, .whats .selected-flag{
		top: 17px;
	}
	.tel .input-group, .whats .input-group{
		width: 100%;
	}
	.modal .modal-header .bootstrap-dialog-close-button{
		display: block !important;
	}
	.mdAvatar .intl-tel-input.allow-dropdown .selected-flag{
		top: 17px;
	}
	@media (max-width: 768px){
		[name="txtExtension_Tel"] {
			width: 50px !important;
		}
	}
	@media  only screen and (orientation: landscape) and (max-width: 700px) {
		[name="txtExtension_Tel"] {
			width: 70px !important;
		}
	}
	.dateDesactivado {
		pointer-events: none;
	}
	#tblOportunidades > thead tr th {
		vertical-align: middle;
		line-height: 28px;
		text-align: center;
	}
	#tblOportunidades > thead tr th .label-success {
		font-size: 14px;
	}
	#tblOportunidades > thead tr th .spNOportunidades {
		display: inline-block;
	}
	#tblOportunidadesNA > thead tr th {
		vertical-align: middle;
		line-height: 28px;
		text-align: center;
	}
	#tblOportunidadesNA > thead tr th .label-warning {
		font-size: 14px;
	}
	#tblOportunidadesNA > thead tr th .spNOportunidades {
		display: inline-block;
	}
	#tblOportunidadesR > thead tr th {
		vertical-align: middle;
		line-height: 28px;
		text-align: center;
	}
	#tblOportunidadesR > thead tr th .label-danger {
		font-size: 14px;
	}
	#tblOportunidadesR > thead tr th .spNOportunidades {
		display: inline-block;
	}
	.ps__rail-y {
		z-index: 1 !important;
	}
	.aCliente {
		color: #FFF !important;
		text-decoration: unset !important;
	}
	.aCliente:hover {
		color: #FFF !important;
		text-decoration: unset !important;
	}
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('Contenido'); ?>
<?php
	//if( Auth::user()->tipo == 'EC' ){
		$Empleado = Empleado::find( Empleado::select('id')->where('users_id', '=', Auth::id())->first()->id );
		$CargoEmpleado = Cargo::select('nombre')->where('id', '=', $Empleado->cargos_id)->first()->nombre;
	//}
	//OBTENGO LAS FECHAS PARA LA TABLA DE OPORTUNIDADES VIGENTES --------------
	$ahora = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$ahora = $ahora->format('Y-m-d');
	$ultimoDia = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$ultimoDia->modify('+6 day');
	$ultimoDia = $ultimoDia->format('Y-m-d');
	$uno = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$dos = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$dos->modify('+1 day');
	$tres = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$tres->modify('+2 day');
	$cuatro = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$cuatro->modify('+3 day');
	$cinco = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$cinco->modify('+4 day');
	$seis = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$seis->modify('+5 day');
	$siete = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$siete->modify('+6 day');
	//-------------------------------------------------------------------------
	//OBTENGO LAS FECHAS PARA LA TABLA DE OPORTUNIDADES NO APROVECHADAS Y RECHAZADAS -----------------------------------------------------------
	$dias = array('Domingo', 'Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sábado');
	$meses = array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre');
	$unoM = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$unoM = $meses[(int)$unoM->format('n')-1];
	$dosM = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$dosM->modify('-1 month');
	$dosM = $meses[(int)$dosM->format('n')-1];
	$tresM = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$tresM->modify('-2 month');
	$tresM = $meses[(int)$tresM->format('n')-1];
	$cuatroM = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$cuatroM->modify('-3 month');
	$cuatroM = $meses[(int)$cuatroM->format('n')-1];
	$cincoM = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$cincoM->modify('-4 month');
	$cincoM = $meses[(int)$cincoM->format('n')-1];
	$seisM = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$seisM->modify('-5 month');
	$seisM = $meses[(int)$seisM->format('n')-1];
	$sieteM = new DateTime('now', new DateTimeZone($Cliente->zona_horaria));
	$sieteM->modify('-6 month');
	$sieteM = $meses[(int)$sieteM->format('n')-1];
	//------------------------------------------------------------------------------------------------------------------------------------------
?>
<div class="row">
	<div class="col-md-12">
		<h2><i class="fa fa-users"></i> Gestión de prospectos </h2>
	</div><!--/col-md-12-->
</div><!--/row-->

<div class="row">
	<div class="col-md-12">
		<?php if(Session::has('message')): ?>
		<div class="alert alert-info"><?php echo Session::get('message'); ?></div>
		<?php endif; ?>
	</div>
</div>

<div class="row altoFijo">
	<div class="col-md-12 altoFijo">
		<div class="block-web altoFijo">
			<div class="header">
				<h3 class="content-header">
					Oportunidades de ventas
					<div data-toggle="buttons" class="button-group pull-right">
						<a class="refresh tooltips" data-toggle="tooltip" data-original-title="Actualizar registros" onclick="Actualizar()" href="javascript:Actualizar()" style="color: rgba(0, 0, 0, 0.3)">
							<i class="fa fa-repeat"> </i>
						</a>
					</div>
				</h3>
			</div>
			<div class="porlets-content altoFijo">
				<form id="frmFiltros" class="form-inline" style="padding-bottom: 15px;">
					<?php if( $Empleado->cargos_id == 3 || $Empleado->cargos_id == 4 ): ?>
					<div class="form-group">
						<label>Filtro por usuarios</label>
						<select name="slVendedores" class="form-control" id="slVendedores">
							<option value="0" selected>Todos los usuarios</option>
							<?php foreach( $Empleados as $Emp ): ?>
							<option value="<?php echo $Emp->id; ?>"> <?php echo $Emp->nombre_completo; ?> </option>
							<?php endforeach; ?>
						</select>
					</div>
					<?php endif; ?>
					<div class="form-group">
						<label>Filtro por tipo</label>
						<select name="slTipo" id="slTipo" class="form-control">
							<option value="Todos"> Todos </option>
							<option value="C"> Caducidad </option>
							<option value="PR"> Relacionados </option>
						</select>
					</div>
					<button type="submit" class="btn btn-primary"> Filtrar </button>
				</form>
				<div class="tab-container">
					<ul class="nav nav-tabs hidden-xs">
						<li class="active" data-tabla="tblOportunidades">
							<a href="#vigentes" data-toggle="tab"> Vigentes </a>
						</li>
						<li class="" data-tabla="tblOportunidadesNA">
							<a href="#noaprovechadas" data-toggle="tab"> No aprovechadas </a>
						</li>
						<li class="" data-tabla="tblOportunidadesR">
							<a href="#rechazadas" data-toggle="tab"> Rechazadas </a>
						</li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane cont active" id="vigentes">
							<table class="table table-striped table-bordered table-hover" id="tblOportunidades" style="margin-bottom: 0px;">
								<thead>
									<tr>
										<th> Hoy </th>
										<th width="14.28%" class="hidden-xs"> Mañana </th>
										<th width="14.28%" class="hidden-xs"> <?php echo $tres->format('d/m/Y'); ?> </th>
										<th width="14.28%" class="hidden-xs"> <?php echo $cuatro->format('d/m/Y'); ?> </th>
										<th width="14.28%" class="hidden-xs"> <?php echo $cinco->format('d/m/Y'); ?> </th>
										<th width="14.28%" class="hidden-xs"> <?php echo $seis->format('d/m/Y'); ?> </th>
										<th width="14.28%" class="hidden-xs"> <?php echo $siete->format('d/m/Y'); ?> </th>
									</tr>
									<tr class="success trInfoTotalOportunidades">
										<th class="thInfoTotalOportunidadesH thInfoTotalOportunidades<?php echo $uno->format('Y-m-d'); ?>">
											<span class="label label-success spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-success spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidadesM thInfoTotalOportunidades<?php echo $dos->format('Y-m-d'); ?> hidden-xs">
											<span class="label label-success spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-success spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades3 thInfoTotalOportunidades<?php echo $tres->format('Y-m-d'); ?> hidden-xs">
											<span class="label label-success spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-success spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades4 thInfoTotalOportunidades<?php echo $cuatro->format('Y-m-d'); ?> hidden-xs">
											<span class="label label-success spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-success spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades5 thInfoTotalOportunidades<?php echo $cinco->format('Y-m-d'); ?> hidden-xs">
											<span class="label label-success spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-success spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades6 thInfoTotalOportunidades<?php echo $seis->format('Y-m-d'); ?> hidden-xs">
											<span class="label label-success spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-success spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades7 thInfoTotalOportunidades<?php echo $siete->format('Y-m-d'); ?> hidden-xs">
											<span class="label label-success spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-success spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
									</tr>
								</thead>
								<tbody class="altoFijoTB">
									<tr>
										<td class="tdOportunidadesH tdOportunidades<?php echo $uno->format('Y-m-d'); ?>">
											<div class="dvOpor dvOportunidadesH" style="height: 600px; position: relative;">
												<?php /*
												<?php for($i = 0; $i < 10; $i++): ?>
												<div class="block block-color info">
													<div class="header" style="margin: 0px;">
														<div class="actions">
															<a class="minimize" href="#">
																<i class="fa fa-chevron-down"></i>
															</a>
														</div>
														<h3 style="font-size: 12px; font-weight: bold;">
															Nombre del cliente
														</h3>
													</div>
													<div class="porlets-content" style="padding: 10px !important;">
														<table class="table" style="font-size: 12px;">
															<thead>
																<tr>
																	<th class="text-center">Productos/Servicios</th>
																	<th class="text-center" style="width: 40%;">Precio</th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td class="text-center">
																		Control de Roedores
																	</td>
																	<td class="text-center">
																		<span class="spPrecio hecho" data-valor="70">USD $70.00</span>
																	</td>
																</tr>
																<tr>
																	<th class="text-center">Total</th>
																	<th class="text-center">
																		<span class="spPrecio hecho" data-valor="70">USD $70.00</span>
																	</th>
																</tr>
															</tbody>
														</table>
														<button type="button" class="btn btn-success btn-sm btn-block">
															Aprovechar
														</button>
													</div>
												</div>
												<?php endfor; ?>
												*/ ?>
											</div>
										</td>
										<td class="tdOportunidadesM tdOportunidades<?php echo $dos->format('Y-m-d'); ?> hidden-xs">
											<div class="dvOpor dvOportunidadesM" style="height: 600px; position: relative;">
											</div>
										</td>
										<td class="tdOportunidades3 tdOportunidades<?php echo $tres->format('Y-m-d'); ?> hidden-xs">
											<div class="dvOpor dvOportunidades3" style="height: 600px; position: relative;">
											</div>
										</td>
										<td class="tdOportunidades4 tdOportunidades<?php echo $cuatro->format('Y-m-d'); ?> hidden-xs">
											<div class="dvOpor dvOportunidades4" style="height: 600px; position: relative;">
											</div>
										</td>
										<td class="tdOportunidades5 tdOportunidades<?php echo $cinco->format('Y-m-d'); ?> hidden-xs">
											<div class="dvOpor dvOportunidades5" style="height: 600px; position: relative;">
											</div>
										</td>
										<td class="tdOportunidades6 tdOportunidades<?php echo $seis->format('Y-m-d'); ?> hidden-xs">
											<div class="dvOpor dvOportunidades6" style="height: 600px; position: relative;">
											</div>
										</td>
										<td class="tdOportunidades7 tdOportunidades<?php echo $siete->format('Y-m-d'); ?> hidden-xs">
											<div class="dvOpor dvOportunidades7" style="height: 600px; position: relative;"></div>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="tab-pane cont" id="noaprovechadas">
							<table class="table table-striped table-bordered table-hover" id="tblOportunidadesNA" style="margin-bottom: 0px;">
								<thead>
									<tr>
										<th> Este mes </th>
										<th width="14.28%"> Mes anterior </th>
										<th width="14.28%"> <?php echo $tresM; ?> </th>
										<th width="14.28%"> <?php echo $cuatroM; ?> </th>
										<th width="14.28%"> <?php echo $cincoM; ?> </th>
										<th width="14.28%"> <?php echo $seisM; ?> </th>
										<th width="14.28%"> <?php echo $sieteM; ?> </th>
									</tr>
									<tr class="warning trInfoTotalOportunidades">
										<th class="thInfoTotalOportunidadesH thInfoTotalOportunidades<?php echo $unoM; ?>">
											<span class="label label-warning spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-warning spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidadesM thInfoTotalOportunidades<?php echo $dosM; ?>">
											<span class="label label-warning spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-warning spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades3 thInfoTotalOportunidades<?php echo $tresM; ?>">
											<span class="label label-warning spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-warning spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades4 thInfoTotalOportunidades<?php echo $cuatroM; ?>">
											<span class="label label-warning spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-warning spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades5 thInfoTotalOportunidades<?php echo $cincoM; ?>">
											<span class="label label-warning spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-warning spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades6 thInfoTotalOportunidades<?php echo $seisM; ?>">
											<span class="label label-warning spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-warning spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades7 thInfoTotalOportunidades<?php echo $sieteM; ?>">
											<span class="label label-warning spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-warning spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
									</tr>
								</thead>
								<tbody class="altoFijoTB">
									<tr>
										<td class="tdOportunidadesH tdOportunidades<?php echo $unoM; ?>">
											<div class="dvOpor dvOportunidadesNAH" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidadesM tdOportunidades<?php echo $dosM; ?>">
											<div class="dvOpor dvOportunidadesNAM" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades3 tdOportunidades<?php echo $tresM; ?>">
											<div class="dvOpor dvOportunidadesNA3" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades4 tdOportunidades<?php echo $cuatroM; ?>">
											<div class="dvOpor dvOportunidadesNA4" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades5 tdOportunidades<?php echo $cincoM; ?>">
											<div class="dvOpor dvOportunidadesNA5" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades6 tdOportunidades<?php echo $seisM; ?>">
											<div class="dvOpor dvOportunidadesNA6" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades7 tdOportunidades<?php echo $sieteM; ?>">
											<div class="dvOpor dvOportunidadesNA7" style="height: 600px; position: relative;"></div>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="tab-pane cont" id="rechazadas">
							<table class="table table-striped table-bordered table-hover" id="tblOportunidadesR" style="margin-bottom: 0px;">
								<thead>
									<tr>
										<th> Este mes </th>
										<th width="14.28%"> Mes anterior </th>
										<th width="14.28%"> <?php echo $tresM; ?> </th>
										<th width="14.28%"> <?php echo $cuatroM; ?> </th>
										<th width="14.28%"> <?php echo $cincoM; ?> </th>
										<th width="14.28%"> <?php echo $seisM; ?> </th>
										<th width="14.28%"> <?php echo $sieteM; ?> </th>
									</tr>
									<tr class="danger trInfoTotalOportunidades">
										<th class="thInfoTotalOportunidadesH thInfoTotalOportunidades<?php echo $unoM; ?>">
											<span class="label label-danger spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-danger spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidadesM thInfoTotalOportunidades<?php echo $dosM; ?>">
											<span class="label label-danger spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-danger spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades3 thInfoTotalOportunidades<?php echo $tresM; ?>">
											<span class="label label-danger spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-danger spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades4 thInfoTotalOportunidades<?php echo $cuatroM; ?>">
											<span class="label label-danger spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-danger spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades5 thInfoTotalOportunidades<?php echo $cincoM; ?>">
											<span class="label label-danger spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-danger spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades6 thInfoTotalOportunidades<?php echo $seisM; ?>">
											<span class="label label-danger spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-danger spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
										<th class="thInfoTotalOportunidades7 thInfoTotalOportunidades<?php echo $sieteM; ?>">
											<span class="label label-danger spNOportunidades">
												0 oportunidades
											</span>
											<br>
											<span class="label label-danger spPrecio spTotalOportunidades" data-valor="0">
												USD $0.00
											</span>
										</th>
									</tr>
								</thead>
								<tbody class="altoFijoTB">
									<tr>
										<td class="tdOportunidadesH tdOportunidades<?php echo $unoM; ?>">
											<div class="dvOpor dvOportunidadesRH" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidadesM tdOportunidades<?php echo $dosM; ?>">
											<div class="dvOpor dvOportunidadesRM" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades3 tdOportunidades<?php echo $tresM; ?>">
											<div class="dvOpor dvOportunidadesR3" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades4 tdOportunidades<?php echo $cuatroM; ?>">
											<div class="dvOpor dvOportunidadesR4" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades5 tdOportunidades<?php echo $cincoM; ?>">
											<div class="dvOpor dvOportunidadesR5" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades6 tdOportunidades<?php echo $seisM; ?>">
											<div class="dvOpor dvOportunidadesR6" style="height: 600px; position: relative;"></div>
										</td>
										<td class="tdOportunidades7 tdOportunidades<?php echo $sieteM; ?>">
											<div class="dvOpor dvOportunidadesR7" style="height: 600px; position: relative;"></div>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div><!--/row end-->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JS'); ?>
<?php echo HTML::script('DataTables/jquery.dataTables.min.js'); ?>

<?php echo HTML::script('DataTables/dataTables.bootstrap.min.js'); ?>

<?php echo HTML::script('DataTables/dataTables.responsive.min.js'); ?>

<?php echo HTML::script('bootstrap-datetimepicker/js/moment-with-locales.js'); ?>

<?php echo HTML::script('bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'); ?>

<?php echo HTML::script('Intl-Tel-Input/17.0.3/js/intlTelInput-jquery.min.js'); ?>

<?php echo HTML::script('country-region-selector/crs.min.js'); ?>

<?php echo HTML::script('AccountingJS/accounting.min.js'); ?>

<?php echo HTML::script('jquery-browser-plugin/jquery.browser.min.js'); ?>

<?php echo HTML::script('Intl-Tel-Input/17.0.3/js/utils.min.js'); ?>

<?php echo HTML::script('jQueryValidate/jquery.validate.min.js'); ?>

<?php echo HTML::script('jQueryValidate/additional-methods.min.js'); ?>

<?php echo HTML::script('jQueryValidate/jquery.validationEngine-es.js'); ?>

<?php echo HTML::script('jQueryValidate/messages_es.min.js'); ?>

<?php echo HTML::script('Webui-Popover/jquery.webui-popover.min.js'); ?>

<?php echo HTML::script('Perfect-Scrollbar/dist/perfect-scrollbar.js'); ?>

<?php echo HTML::script('jsURL/url.min.js'); ?>

<?php
	if( ConfiguracionTienda::where('clientes_id', '=', $Cliente->id)->count() == 1 ){
		$ConfTienda = ConfiguracionTienda::select('separador_decimal', 'posicion_moneda')->where('clientes_id', '=', $Cliente->id)->first();
	}
	else{
		$ConfTienda = new stdClass();
		$ConfTienda->separador_decimal = '.';
		$ConfTienda->posicion_moneda = 'I';
	}
?>
<script type="text/javascript">
	function Actualizar(){
		var pestanhas = $("ul.nav-tabs");
		if( pestanhas.find("li.active").attr("data-tabla") == "tblOportunidades" ){
			armarOportunidadesVigentes();
		}
		else{
			armarOportunidadesNAyR( pestanhas.find("li.active").attr("data-tabla") );
		}
	}
	function convertirPrecios(){
		var codigoMoneda = "<?php echo $Cliente->codigo_moneda; ?>";
		var simboloMoneda = "<?php echo $Cliente->simbolo_moneda; ?>";
		$(".spPrecio").not(".hecho").each(function(e){
			var el = $(this);
			var precio = el.attr("data-valor");
			var precioF = accounting.formatMoney(precio, {
				symbol: codigoMoneda+" "+simboloMoneda,
				precision: 2,
				decimal : ".",
				thousand: ".",
				format: "%s%v"
			});
			el.html(precioF).addClass("hecho");
		});
	}
	function armarOportunidadesVigentes(){
		var infoOportunidadVigente = '<div class="block block-color info infoOportunidadVigente{%idC%}"> \
			<div class="header" style="margin: 0px;"> \
				<div class="actions"> \
					<a class="minimize" href="#"> \
						<i class="fa fa-chevron-down"></i> \
					</a> \
				</div> \
				<h3 style="font-size: 12px; font-weight: bold;"> \
					{%nombreCliente%} \
				</h3> \
			</div> \
			<div class="porlets-content" style="padding: 10px !important;"> \
				<table class="table" style="font-size: 12px;"> \
					<thead> \
						<tr> \
							<th class="text-center">Productos/Servicios</th> \
							<th class="text-center" style="width: 40%;">Precio</th> \
						</tr> \
					</thead> \
					<tbody class="tBProductos">{%infoProductos%}</tbody> \
				</table> \
				<a href="{%urlProspectosAgregar%}" class="btn btn-success btn-sm btn-block btnAprovechar"> \
					Aprovechar \
				</a> \
				<a href="{%urlAgregarVenta%}" class="btn btn-success btn-sm btn-block btnAprovechar"> \
					Agregar venta \
				</a> \
			</div> \
		</div>';
		var filaProductos = '<tr> \
			<td class="text-center"> \
				{%nombreP%} \
			</td> \
			<td class="text-center"> \
				<span class="spPrecio" data-valor="{%precioP%}"></span> \
			</td> \
		</tr>';
		var urlProspectosAgregar = "<?php echo URL::route('SysWebGClientesProspectosAgregar'); ?>";
		var urlAgregarVenta = "<?php echo URL::route('SysWebGClientesClientesAgregarVenta'); ?>";
		var urlFichaCliente = "<?php echo URL::route('SysWebGClientesClientesFichaCliente', array('idC')); ?>"
		var inputs = {
			tipo: "vigentes",
			fInicio: "<?php echo $ahora; ?>",
			fFin: "<?php echo $ultimoDia; ?>",
			movil: <?php echo (Agent::isDesktop())?0:1; ?>

		};
		if( $("#slVendedores").length == 1 ){
			inputs.usuario = $("#slVendedores").val();
		}
		if( $("#slTipo").length == 1 ){
			inputs.tipoOV = $("#slTipo").val();
		}
		$("#tblOportunidades .dvOpor").html("");
		$.post(
			"<?php echo URL::route('SysWebGClientesOportunidades'); ?>",
			inputs,
			function(data){
				$.each(data.oportunidades, function(iO, oportunidad){
					var fOportunidad = iO;
					if( parseInt(oportunidad.oportunidades) > 0 ){
						$.each(oportunidad.clientes, function(iC, cliente){
							var idsOV = cliente.oportunidades.join();
							var infoProductos = "";
							var idsP = new Array();
							$.each(cliente.productos, function(iP, producto){
								idsP.push(producto.idPS);
								var nombreProd = producto.nombre;
								if( producto.tipoOV == "C" ){
									nombreProd = nombreProd+" <br>(Por caducidad)";
								}
								else{
									nombreProd = nombreProd+" <br>(Por relación)";
								}
								var infoProducto = filaProductos.replace(/{%nombreP%}/g, nombreProd);
								infoProducto = infoProducto.replace(/{%precioP%}/g, producto.precio);
								infoProductos = infoProductos+infoProducto;
							});
							var nombreClienteL = '<a class="aCliente" href="'+urlFichaCliente+'" target="_blank">'+cliente.cliente.nombre+'</a>';
							nombreClienteL = nombreClienteL.replace(/idC/g, iC);
							var infoOportunidad = infoOportunidadVigente.replace(/{%nombreCliente%}/g, nombreClienteL);
							infoOportunidad = infoOportunidad.replace(/{%infoProductos%}/g, infoProductos);
							infoOportunidad = infoOportunidad.replace(/{%idC%}/g, iC);
							var url = new Url(urlProspectosAgregar);
							url.query["idC"] = iC;
							url.query["sc-cer"] = 1;
							url.query["sc-cer-ruta"] = "<?php echo URL::route('SysWebGClientesOportunidades'); ?>";
							url.query["idsOV"] = idsOV;
							url.query["idsP"] = idsP.join();
							infoOportunidad = infoOportunidad.replace(/{%urlProspectosAgregar%}/g, url);
							var urlAV = new Url(urlAgregarVenta);
							urlAV.query["idC"] = iC;
							urlAV.query["sc-cer"] = 1;
							urlAV.query["sc-cer-ruta"] = "<?php echo URL::route('SysWebGClientesOportunidades'); ?>";
							urlAV.query["idsOV"] = idsOV;
							urlAV.query["idsP"] = idsP.join();
							infoOportunidad = infoOportunidad.replace(/{%urlAgregarVenta%}/g, urlAV);
							$("#tblOportunidades td.tdOportunidades"+fOportunidad+" .dvOpor").append(infoOportunidad);
						});
						$("#tblOportunidades th.thInfoTotalOportunidades"+fOportunidad+" .spNOportunidades").html(oportunidad.oportunidades+" oportunidades");
						$("#tblOportunidades th.thInfoTotalOportunidades"+fOportunidad+" .spTotalOportunidades").attr("data-valor", oportunidad.totalOportunidades);
						$("#tblOportunidades .btnAprovechar").each(function(e){
							$(this).off("click").click(function(e){
								e.preventDefault();
								var el = $(this);
								var url = new Url($(this).attr("href"));
								var nuevaVentana = window.open(url);
								nuevaVentana.onbeforeunload = function(){
									armarOportunidadesVigentes();
								}
							});
						});
					}
					else{
						$("#tblOportunidades th.thInfoTotalOportunidades"+fOportunidad+" .spNOportunidades").html("0 oportunidades");
						$("#tblOportunidades th.thInfoTotalOportunidades"+fOportunidad+" .spTotalOportunidades").attr("data-valor", 0);
					}
				});
				$("#tblOportunidades .spPrecio").removeClass("hecho");
				convertirPrecios();
				$("#tblOportunidades .minimize").each(function(e){
					var minimize = $(this);
					minimize.click(function(e){
						var h = $(this).parents(".header");
						var c = h.next(".porlets-content");
						var p = h.parent();
						c.slideToggle();
						p.toggleClass("closed");
						e.preventDefault();
					});
				});
			},
			"json"
		);
	}
	function armarOportunidadesNAyR(tbl){
		var tbl = tbl;
		var txtBtnAprovechar = (tbl=="tblOportunidadesNA")?"Aprovechar":"Reprogramar";
		var infoOportunidadVigente = '<div class="block block-color info infoOportunidadVigente{%idC%}"> \
			<div class="header" style="margin: 0px;"> \
				<div class="actions"> \
					<a class="minimize" href="#"> \
						<i class="fa fa-chevron-down"></i> \
					</a> \
				</div> \
				<h3 style="font-size: 12px; font-weight: bold;"> \
					{%nombreCliente%} \
				</h3> \
			</div> \
			<div class="porlets-content" style="padding: 10px !important;"> \
				<table class="table" style="font-size: 12px;"> \
					<thead> \
						<tr> \
							<th class="text-center">Productos/Servicios</th> \
							<th class="text-center" style="width: 40%;">Precio</th> \
						</tr> \
					</thead> \
					<tbody class="tBProductos">{%infoProductos%}</tbody> \
				</table> \
				{%fechaOportunidad%} \
				<a href="{%urlProspectosAgregar%}" class="btn btn-success btn-sm btn-block btnAprovechar" {%dataParametros%}> \
					'+txtBtnAprovechar+' \
				</a> \
			</div> \
		</div>';
		var filaProductos = '<tr> \
			<td class="text-center"> \
				{%nombreP%} \
			</td> \
			<td class="text-center"> \
				<span class="spPrecio" data-valor="{%precioP%}"></span> \
			</td> \
		</tr>';
		var urlProspectosAgregar = "<?php echo URL::route('SysWebGClientesProspectosAgregar'); ?>";
		var urlFichaCliente = "<?php echo URL::route('SysWebGClientesClientesFichaCliente', array('idC')); ?>"
		var inputs = {
			tipo: (tbl=="tblOportunidadesNA")?"noAprovechadas":"rechazados",
			fInicio: "<?php echo $ahora; ?>",
			fFin: "<?php echo $ultimoDia; ?>",
			movil: <?php echo (Agent::isDesktop())?0:1; ?>

		};
		if( $("#slVendedores").length == 1 ){
			inputs.usuario = $("#slVendedores").val();
		}
		if( $("#slTipo").length == 1 ){
			inputs.tipoOV = $("#slTipo").val();
		}
		$("#"+tbl+" .dvOpor").html("");
		$.post(
			"<?php echo URL::route('SysWebGClientesOportunidades'); ?>",
			inputs,
			function(data){
				$.each(data.oportunidades, function(iM, meses){
					var fOportunidad = iM;
					if( parseInt(meses.oportunidades) > 0 ){
						$.each(meses.fechas, function(iF, fecha){
							var fechaOportunidad = moment(iF, "YYYY-MM-DD").format("DD-MM-YYYY");
							$.each(fecha.clientes, function(iC, cliente){
								var idsOV = cliente.oportunidades.join();
								var infoProductos = "";
								var idsP = new Array();
								$.each(cliente.productos, function(iP, producto){
									idsP.push(producto.idPS);
									var nombreProd = producto.nombre;
									if( producto.tipoOV == "C" ){
										nombreProd = nombreProd+" <br>(Por caducidad)";
									}
									else{
										nombreProd = nombreProd+" <br>(Por relación)";
									}
									var infoProducto = filaProductos.replace(/{%nombreP%}/g, nombreProd);
									infoProducto = infoProducto.replace(/{%precioP%}/g, producto.precio);
									infoProductos = infoProductos+infoProducto;
								});
								var nombreClienteL = '<a class="aCliente" href="'+urlFichaCliente+'" target="_blank">'+cliente.cliente.nombre+'</a>';
								nombreClienteL = nombreClienteL.replace(/idC/g, iC);
								var infoOportunidad = infoOportunidadVigente.replace(/{%nombreCliente%}/g, nombreClienteL);
								infoOportunidad = infoOportunidad.replace(/{%infoProductos%}/g, infoProductos);
								infoOportunidad = infoOportunidad.replace(/{%idC%}/g, iC);
								if( tbl == "tblOportunidadesNA" ){
									var url = new Url(urlProspectosAgregar);
									url.query["idC"] = iC;
									url.query["sc-cer"] = 1;
									url.query["sc-cer-ruta"] = "<?php echo URL::route('SysWebGClientesOportunidades'); ?>";
									url.query["idsOV"] = idsOV;
									url.query["idsP"] = idsP.join();
									infoOportunidad = infoOportunidad.replace(/{%urlProspectosAgregar%}/g, url);
									infoOportunidad = infoOportunidad.replace(/{%dataParametros%}/g, "");
								}
								else{
									infoOportunidad = infoOportunidad.replace(/{%urlProspectosAgregar%}/g, "javascript:void(0);");
									var dataIdC = 'data-idC="'+iC+'"';
									var dataJsonC = "data-json='"+JSON.stringify(cliente)+"'";
									var dataParametros = dataIdC+" "+dataJsonC;
									infoOportunidad = infoOportunidad.replace(/{%dataParametros%}/g, dataParametros);
								}
								infoOportunidad = infoOportunidad.replace(/{%fechaOportunidad%}/g, '<p class="text-center">'+fechaOportunidad+'<p>');
								$("#"+tbl+" td.tdOportunidades"+fOportunidad+" .dvOpor").append(infoOportunidad);
							});
						});
						$("#"+tbl+" th.thInfoTotalOportunidades"+fOportunidad+" .spNOportunidades").html(meses.oportunidades+" oportunidades");
						$("#"+tbl+" th.thInfoTotalOportunidades"+fOportunidad+" .spTotalOportunidades").attr("data-valor", meses.totalOportunidades);
						$("#"+tbl+" .btnAprovechar").each(function(e){
							$(this).off("click").click(function(e){
								e.preventDefault();
								var el = $(this);
								if( tbl == "tblOportunidadesNA" ){
									var url = new Url($(this).attr("href"));
									var nuevaVentana = window.open(url);
									nuevaVentana.onbeforeunload = function(){
										armarOportunidadesNAyR("tblOportunidadesNA");
									}
								}
								else{
									var idC = el.attr("data-idC");
									var jsonOV = JSON.parse(el.attr("data-json"));
									var listaProducto = '<div class="form-group lsProducto"> \
										<label>¿Quieres reprogramar {%nombreProducto%}?</label> \
										<div class="input-group date" id="fechaReprogramacionOV{%idVPS%}" data-idVPS="{%idVPS%}"> \
											<span class="input-group-addon"> \
												Sí <input type="checkbox" class="chSiROV{%idVPS%}" checked> <span class="custom-checkbox"></span> \
											</span> \
											<span class="input-group-addon mCal{%idVPS%}"> \
												<span class="glyphicon glyphicon-calendar"></span> \
											</span> \
											<input readonly type="text" class="form-control fechaROV{%idVPS%} fRepro" placeholder="¿Para cuándo? Ej: DD/MM/AAAA" name="productos[{%idVPS%}][fecha]"> \
										</div> \
										<input type="hidden" name="productos[{%idVPS%}][reprogramar]" class="hdnIdVPS{%idVPS%}" value="1"> \
										<input type="hidden" name="productos[{%idVPS%}][fechaF]" class="hdnFechaF" value=""> \
										<input type="hidden" name="fecha{%idVPS%}" class="hdnFRepro" value=""> \
										<span class="text-danger" id="errfecha{%idVPS%}"></span> \
									</div>';
									var mensaje = '<div class="row"> \
										<div class="col-xs-12"> \
											<form id="frmReprogramarOVR"> \
												{%listaProductos%} \
												<input type="hidden" name="idsOV" value="{%idsOV%}"> \
												<input type="hidden" name="json" value=\''+el.attr("data-json")+'\'> \
												<input type="hidden" name="tipo" value="reprogramar"> \
											</form> \
										</div> \
									</div>';
									var listaProductos = "";
									$.each(jsonOV.productos, function(iVPS, producto){
										var lP = listaProducto;
										lP = lP.replace(/{%nombreProducto%}/g, producto.nombre);
										lP = lP.replace(/{%idVPS%}/g, iVPS);
										listaProductos = listaProductos+lP;
									});
									var idsOV = jsonOV.oportunidades.join();
									mensaje = mensaje.replace(/{%idsOV%}/g, idsOV);
									mensaje = mensaje.replace(/{%listaProductos%}/g, listaProductos);
									BootstrapDialog.show({
										title: "Reprogramación de oportunidades de ventas canceladas",
										type: BootstrapDialog.TYPE_DANGER,
										message: mensaje,
										draggable: true,
										cssClass: "mdAvatar ModalReprogramarOVR",
										onshown:function(dialogRefs){
											var modalBody = dialogRefs.getModalBody();
											var ahora = new Date();
											modalBody.find(".date").each(function(e){
												var elDate = $(this);
												var idDate = elDate.attr("id");
												$("#"+idDate).datetimepicker({
													locale: "es",
													format: "DD/MM/YYYY",
													minDate: moment(ahora).format("MM/DD/YYYY H:mm:ss"),
													ignoreReadonly: true
												}).on("dp.show", function(e){
													if( !modalBody.find(".chSiROV"+idVPS).is(":checked") ){
														modalBody.find(".fechaROV"+idVPS).val("");
														$("#"+idDate).data("DateTimePicker").hide();
													}
												});
												var idVPS = elDate.attr("data-idVPS");
												modalBody.find(".chSiROV"+idVPS).click(function(e){
													modalBody.find(".fechaROV"+idVPS).val("");
													var checkbox = $(this);
													if( checkbox.is(":checked") ){
														//$("#"+idDate).data("DateTimePicker").enable();
														//$("#"+idDate).data("DateTimePicker").disable();
														modalBody.find(".hdnIdVPS"+idVPS).val(1);
														if( modalBody.find(".fechaROV"+idVPS).val() == "" ){
															var ahoraF = moment(ahora).format("DD/MM/YYYY");
															modalBody.find(".hdnFRepro"+idVPS).val(ahoraF);
														}
													}
													else{
														modalBody.find(".hdnIdVPS"+idVPS).val(0);
													}
												});
											});
										},
										buttons: [{
											id: "btnReprogramarOVR",
											label: "Reprogramar oportunidades de venta",
											cssClass: "btn-success btn-lg btn-block",
											action: function(dialogItself){

												$("#frmReprogramarOVR").find(".lsProducto").each(function(e){
													var lsProducto = $(this);
													var fRepro = lsProducto.find(".fRepro").val();
													lsProducto.find(".hdnFRepro").val(fRepro);
													var fechaF = moment(fRepro, "DD/MM/YYYY").format("YYYY-MM-DD");
													lsProducto.find(".hdnFechaF").val(fechaF);
												});

												$.isLoading({ text: "Cargando..." }); NProgress.start();
												$("#btnReprogramarOVR").prop("disabled", true).html('<i class="fa fa-spinner fa-spin"></i> Procesando');
												$.post(
													"<?php echo URL::route('SysWebGClientesOportunidades'); ?>",
													$("#frmReprogramarOVR").serialize(),
													function(data){
														$.isLoading("hide"); NProgress.done();
														$("#btnAgregar").html("Guardar").prop("disabled", false);
														if(data.success){
															dialogItself.close();
															armarOportunidadesNAyR("tblOportunidadesR");
															new PNotify({ title: "Realizado", text: data.mensaje, type: "success" });
														}
														else{
															if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); }
															$.each(data.errMensajes, function(key, value){ if(value != ''){ $("#err"+key).html(value); } else{ $("#err"+key).html(""); } });
														}
													},
													"json"
												);
											}
										}]
									});
								}
							});
						});
					}
					else{
						$("#"+tbl+" th.thInfoTotalOportunidades"+fOportunidad+" .spNOportunidades").html("0 oportunidades");
						$("#"+tbl+" th.thInfoTotalOportunidades"+fOportunidad+" .spTotalOportunidades").attr("data-valor", 0);
					}
				});
				$("#"+tbl+" .spPrecio").removeClass("hecho");
				convertirPrecios();
				$("#"+tbl+" .minimize").each(function(e){
					var minimize = $(this);
					minimize.click(function(e){
						var h = $(this).parents(".header");
						var c = h.next(".porlets-content");
						var p = h.parent();
						c.slideToggle();
						p.toggleClass("closed");
						e.preventDefault();
					});
				});
			},
			"json"
		);
	}
</script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JSOr'); ?>
armarOportunidadesVigentes();
armarOportunidadesNAyR("tblOportunidadesNA");
armarOportunidadesNAyR("tblOportunidadesR");
<?php if( Agent::isDesktop() ): ?>
$(".sidebar-toggle-box").trigger("click");
var altoFijo = $(window).innerHeight();
$(".altoFijo").height(altoFijo-175+"px");
//$(".altoFijoTB").height(altoFijo-317+"px");
//$(".altoFijoTB").height(altoFijo-435+"px");
//$(".dvOpor").height(altoFijo-337+"px");
$(".dvOpor").height(altoFijo-410+"px");
const psH = new PerfectScrollbar(".dvOportunidadesH");
const psM = new PerfectScrollbar(".dvOportunidadesM");
const ps3 = new PerfectScrollbar(".dvOportunidades3");
const ps4 = new PerfectScrollbar(".dvOportunidades4");
const ps5 = new PerfectScrollbar(".dvOportunidades5");
const ps6 = new PerfectScrollbar(".dvOportunidades6");
const ps7 = new PerfectScrollbar(".dvOportunidades7");
const psNAH = new PerfectScrollbar(".dvOportunidadesNAH");
const psNAM = new PerfectScrollbar(".dvOportunidadesNAM");
const psNA3 = new PerfectScrollbar(".dvOportunidadesNA3");
const psNA4 = new PerfectScrollbar(".dvOportunidadesNA4");
const psNA5 = new PerfectScrollbar(".dvOportunidadesNA5");
const psNA6 = new PerfectScrollbar(".dvOportunidadesNA6");
const psNA7 = new PerfectScrollbar(".dvOportunidadesNA7");
const psRH = new PerfectScrollbar(".dvOportunidadesRH");
const psRM = new PerfectScrollbar(".dvOportunidadesRM");
const psR3 = new PerfectScrollbar(".dvOportunidadesR3");
const psR4 = new PerfectScrollbar(".dvOportunidadesR4");
const psR5 = new PerfectScrollbar(".dvOportunidadesR5");
const psR6 = new PerfectScrollbar(".dvOportunidadesR6");
const psR7 = new PerfectScrollbar(".dvOportunidadesR7");
<?php endif; ?>
$("a[data-toggle=\"tab\"]").on("shown.bs.tab", function (e) { $.fn.dataTable.tables( {visible: true, api: true} ).columns.adjust(); });
$("#frmFiltros").submit(function(e){
	e.preventDefault();
	Actualizar();
});
<?php if(Session::has('EliminarMensajeS')): ?>
new PNotify({ title: "Realizado", text: "<?php echo Session::get('EliminarMensajeS'); ?>", type: "success" });
<?php endif; ?>
<?php if(Session::has('EliminarMensajeE')): ?>
new PNotify({ title: "Realizado", text: "<?php echo Session::get('EliminarMensajeE'); ?>", type: "error" });
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('BaseSistemaWeb', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>