@if(isset($nombre_producto) && isset($depecon))
    @if(!empty($nombre_producto) || !empty($depecon))
        <h4>{{$nombre_producto}}:
            @traducir('Las cifras representan el total acumulado entre las fechas indicadas', '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">@traducir('Desde', 'Desde')</th>
                    <th class="text-center">@traducir('Hasta', 'Hasta')</th>
                    <th class="text-center">@traducir('Moneda', 'Moneda')</th>
                    <th class="text-center">@traducir('Monto', 'Monto')</th>
                    <th class="text-center">@traducir('Estado', '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) Inactivo @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-fidelitas botdedel">@if($dep->visible == 0) Activar @else Desactivar @endif</button>
                            </td>
                        </tr>
                    @endif
                @endforeach
            </tbody>
        </table>
        <!-- -->
        <script>
            $(document).ready(function () {
                eventosTablaDE();
            });
        </script>
    @else
        <h5 class="text-center">@traducir('No hay datos cargados', 'No hay datos cargados')</h5>
    @endif
@endif