@if(isset($nombre_producto) && isset($depecon))
	@if(!empty($nombre_producto) || !empty($depecon))
		<h4>{{$nombre_producto}}: Las cifras representan el total acumulado entre las fechas indicadas</h4>
		<table class="table table-condensed table-striped tabladep" width="100%">
		<thead>
		<tr>
			<th class="text-center">Desde</th>
			<th class="text-center">Hasta</th>
			<th class="text-center">Moneda</th>
			<th class="text-center">Monto</th>
			<th class="text-center">Estado</th>
			<th class="text-center"></th>
		</tr>
		</thead>
		<tbody>
		@foreach($depecon as $dep) 
			@if ($dep->producto == $id_producto)
				<tr>
				<td class="text-center">{{$dep->desde_dmy}}</td>
				<td class="text-center">{{$dep->hasta_dmy}}</td>
				<td class="text-center">{{$dep->moneda}}</td>
				<td class="text-center">{{$dep->monto}}</td>
				<td class="text-center">@if ($dep->visible==0) Eliminado @else Activo @endif</td>
				<td class="text-center">
				<button type="button"  data-producto="{{$dep->producto}}" data-cliente="{{$dep->cliente}}" data-contraparte="{{$dep->contraparte}}" data-id="{{$dep->id}}"  class="btn btn-primary btn-fidelitas botdedel">@if ($dep->visible==0) Activar @else Eliminar @endif</button>
				</td>
				</tr>
			@endif
		@endforeach
		</tbody>
		</table>
		<br>
	@else 
		No hay datos cargados 
	@endif
@endif 