<table>
    <tr>
        <td rowspan="4" style="width: 260px; "><img width="150px" src="{{ asset('img/danoralMovil900_RIFV2.png')}}"></td>
        <td style="border-width: 0px; ">&nbsp;</td>
        <td style="width: 152px; border-width: 0px; ">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="2" style="height: 20px; font-size: 15px; border-width: 0px 0px 1px 0px; ">
            <span style="font-size: 10px;">{{ $codEE }}</span>
            &nbsp;{{ $nameEE }}</td>
    </tr>
    <tr>
        <td style="height: 15px; font-size: 10px;">{{ $direccionEE }}</td>
        <td rowspan="2" style="font-size: 20px; text-align: center;">{{ $codClienteEP }}</td>
    </tr>
    <tr>
    <td style="height: 15px; font-size: 10px; border-width: 0px;">RIF. {{ $rifEE }}</td>
    </tr>
</table>

<table>
    <tr>
        <td class="ep-encabezado" style="width: 95px; padding-left: 30px;">NRO</td>
        <td class="ep-encabezado" >PROPIETARIO</td>
        <td class="ep-encabezado" style="width: 76px">PERIODO</td>
        <td class="ep-encabezado" style="width: 100px; padding-right: 10px;">MONTO Bs</td>
        <td class="ep-encabezado" style="width: 50px; padding-right: 10px;">&nbsp;</td>
        <td class="ep-encabezado" style="width: 36px;">&nbsp;</td>
    </tr>
    <tr>
        <td class="ep" style="padding-left: 30px;">{{ $codEP }}</td>
        <td class="ep" >{{ $nameEP }}</td>
        <td class="ep" >{{ $periodoR }}</td>
        <td class="ep" style="background: {{ $colorYellow }}; text-align: right; padding-right: 5px; font-size: 12px;">{{ $montoR_VES }}</td>
        <td class="ep" style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $montoR_USD }}</td>
        <td class="ep">&nbsp;</td>
    </tr>
</table>

<table>
<!-- encabezado (RELACIÓN DE GASTOS DEL MES)-->
    <tr>
        <td class="encabezado" style="padding-left: 30px; font-size: 12px;">RELACIÓN DE GASTOS DEL MES</td>
        <td class="encabezado" style="width: 57px;">REF</td>
        <td class="encabezado" style="width: 57px;">PERIODO</td>
        <td class="encabezado" style="width: 20px; padding-right: 10px;">&nbsp;</td>
        <td class="encabezado" style="width: 100px; padding-right: 10px;">G/COMUNES</td>
        <td class="encabezado" style="width: 100px; text-align: right; padding-right: 10px; background: {{ $colorYellow }};">ALICUOTA %<br>{{ $alicuotaEP_str }}</td>
        <td class="encabezado" style="width: 50px; text-align: right; padding-right: 10px; background: {{ $colorYellow }};">&nbsp;</td>
        <td class="encabezado" style="width: 36px;">&nbsp;</td>
    </tr>
    <tr><!-- espacio -->
        <td style="height: 8px" colspan="5">&nbsp;</td>
        <td style="background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>

<!-- iComunVES -->
    @if (count($iComunVES) > 0)
        @foreach ($iComunVES as $i)
    <tr><!-- item $i de iComunVES -->
        <td style="height: 12px; padding-left: 30px;">
            <span style="font-size: 8px;">{{ $i['cta'] }}</span> &nbsp;&nbsp;
            {{ $i['descripcion'] }}</td>
        <td>{{ $i['ref'] }}</td>
        <td>{{ $i['periodo'] }}</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">{{ $i['monto_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $i['monto_alicuota_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
        @endforeach
    <tr><!-- espacio -->
        <td style="height: 8px" colspan="5">&nbsp;</td>
        <td style="background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- SUB-TOTAL Bs.(VES) -->
        <td style="height: 12px; padding-left: 30px; text-align: right;">SUB-TOTAL Bs. ...</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">{{ $sumComunVES }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">{{ $sumComunVES_alicuota }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- linea -->
        <td style="border-width: 1px 0px 0px 0px; height: 8px" colspan="5">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px; background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px;">&nbsp;</td>
    </tr>
    @endif

<!-- iAptoVES -->
    @if (count($iAptoVES) > 0)
        @foreach ($iAptoVES as $i)
    <tr><!-- item $i de iAptoVES -->
        <td style="height: 12px; padding-left: 30px;">
            <span style="font-size: 8px;">{{ $i['cta'] }}</span> &nbsp;&nbsp;
            {{ $i['descripcion'] }}</td>
        <td>{{ $i['ref'] }}</td>
        <td>{{ $i['periodo'] }}</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $i['monto_alicuota_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
        @endforeach
    <tr><!-- espacio -->
        <td style="height: 8px" colspan="5">&nbsp;</td>
        <td style="background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- (Contibución pendiente propietario Art.11) SUB-TOTAL Bs.(VES) -->
        <td style="height: 12px; padding-left: 30px; text-align: right;">(Contibución pendiente propietario Art.11) SUB-TOTAL Bs. ...</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">{{ $sumAptoVES }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- linea -->
        <td style="border-width: 1px 0px 0px 0px; height: 8px" colspan="5">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px; background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px;">&nbsp;</td>
    </tr>
    <tr><!-- item TOTAL Bs.(VES)  -->
        <td style="height: 12px; padding-left: 30px; text-align: right;">TOTAL Bs. ...</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">{{ $sumaCuota_VES }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- linea -->
        <td style="border-width: 1px 0px 0px 0px; height: 8px" colspan="5">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px; background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px;">&nbsp;</td>
    </tr>

    @endif

<!-- item CuotaPD_comun -->
    @if (isset($iCuotaPD_comun_VES))
    <tr><!-- item CuotaPD_comun_VES -->
        <td style="height: 12px; padding-left: 30px;">
            <span style="font-size: 8px;">{{ $iCuotaPD_comun_VES['cta'] }}</span> &nbsp;&nbsp;
            {{ $iCuotaPD_comun_VES['descripcion'] }}</td>
        <td>{{ $iCuotaPD_comun_VES['ref'] }}</td>
        <td>{{ $iCuotaPD_comun_VES['periodo'] }}</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">{{ $iCuotaPD_comun_VES['monto_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $iCuotaPD_comun_VES['monto_alicuota_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    @endif
    @if (isset($iCuotaPD_comun_USD))
    <tr><!-- item CuotaPD_comun_USD -->
        <td style="height: 12px; padding-left: 30px;">
            <span style="font-size: 8px;">{{ $iCuotaPD_comun_USD['cta'] }}</span> &nbsp;&nbsp;
            {{ $iCuotaPD_comun_USD['descripcion'] }}</td>
        <td>{{ $iCuotaPD_comun_USD['ref'] }}</td>
        <td>{{ $iCuotaPD_comun_USD['periodo'] }}</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">{{ $iCuotaPD_comun_USD['monto_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $iCuotaPD_comun_USD['monto_alicuota_str'] }}</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    @endif

    @if (isset($iCuotaPD_comun_USD) || isset($iCuotaPD_comun_VES))
    <tr><!-- linea -->
        <td style="border-width: 1px 0px 0px 0px; height: 8px" colspan="5">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px; background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px;">&nbsp;</td>
    </tr>
    @endif

<!-- item CuotaPD_apto -->
    @if (isset($iCuotaPD_apto_VES))
    <tr><!-- item CuotaPD_apto_VES -->
        <td style="height: 12px; padding-left: 30px;">
            <span style="font-size: 8px;">{{ $iCuotaPD_apto_VES['cta'] }}</span> &nbsp;&nbsp;
            {{ $iCuotaPD_apto_VES['descripcion'] }}</td>
        <td>{{ $iCuotaPD_apto_VES['ref'] }}</td>
        <td>{{ $iCuotaPD_apto_VES['periodo'] }}</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $iCuotaPD_apto_VES['monto_alicuota_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    @endif
    @if (isset($iCuotaPD_apto_USD))
    <tr><!-- item CuotaPD_apto_USD -->
        <td style="height: 12px; padding-left: 30px;">
            <span style="font-size: 8px;">{{ $iCuotaPD_apto_USD['cta'] }}</span> &nbsp;&nbsp;
            {{ $iCuotaPD_apto_USD['descripcion'] }}</td>
        <td>{{ $iCuotaPD_apto_USD['ref'] }}</td>
        <td>{{ $iCuotaPD_apto_USD['periodo'] }}</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $iCuotaPD_apto_USD['monto_alicuota_str'] }}</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    @endif
    @if (isset($iCuotaPD_apto_VES) || isset($iCuotaPD_apto_USD))
    <tr><!-- linea -->
        <td style="border-width: 1px 0px 0px 0px; height: 8px" colspan="5">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px; background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px;">&nbsp;</td>
    </tr>
    @endif

<!-- iComunUSD -->
    @if (count($iComunUSD) > 0)
        @foreach ($iComunUSD as $i)
    <tr><!-- item $i de iComunUSD -->
        <td style="height: 12px; padding-left: 30px;">
            <span style="font-size: 8px;">{{ $i['cta'] }}</span> &nbsp;&nbsp;
            {{ $i['descripcion'] }}</td>
        <td>{{ $i['ref'] }}</td>
        <td>{{ $i['periodo'] }}</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">{{ $i['monto_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $i['monto_alicuota_str'] }}</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
        @endforeach
    <tr><!-- espacio -->
        <td style="height: 8px" colspan="5">&nbsp;</td>
        <td style="background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- SUB-TOTAL $.(USD) -->
        <td style="height: 12px; padding-left: 30px; text-align: right;">SUB-TOTAL $.(USD) ...</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">{{ $sumComunUSD }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">{{ $sumComunUSD_alicuota }}</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- linea -->
        <td style="border-width: 1px 0px 0px 0px; height: 8px" colspan="5">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px; background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px;">&nbsp;</td>
    </tr>
    @endif

<!-- iAptoUSD -->
    @if (count($iAptoUSD) > 0)
        @foreach ($iAptoUSD as $i)
    <tr><!-- item $i de iAptoUSD -->
        <td style="height: 12px; padding-left: 30px;">
            <span style="font-size: 8px;">{{ $i['cta'] }}</span> &nbsp;&nbsp;
            {{ $i['descripcion'] }}</td>
        <td>{{ $i['ref'] }}</td>
        <td>{{ $i['periodo'] }}</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">{{ $i['monto_str'] }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px;">{{ $i['monto_alicuota_str'] }}</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
        @endforeach
    <tr><!-- espacio -->
        <td style="height: 8px" colspan="5">&nbsp;</td>
        <td style="background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- (Contibución pendiente propietario Art.11) SUB-TOTAL $.(USD) -->
        <td style="height: 12px; padding-left: 30px; text-align: right;">(Contibución pendiente propietario Art.11) SUB-TOTAL $.(USD) ...</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">{{ $sumAptoUSD }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">{{ $sumAptoUSD }}</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- linea -->
        <td style="border-width: 1px 0px 0px 0px; height: 8px" colspan="5">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px; background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px;">&nbsp;</td>
    </tr>
    @endif

<!-- Total Cuota  -->
    <tr><!-- item  -->
        <td style="height: 12px; padding-left: 30px; text-align: right;">TOTAL CUOTA ...</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 5px; font-size: 12px; font-weight: bold;">{{ $totalCuota_VES }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">{{ $totalCuota_USD }}</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    <tr><!-- linea -->
        <td style="border-width: 1px 0px 0px 0px; height: 8px" colspan="5">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px; background: {{ $colorYellow }}" colspan="2">&nbsp;</td>
        <td style="border-width: 1px 0px 0px 0px;">&nbsp;</td>
    </tr>
    @if ($isMensaje_dolarizacion)
    <tr><!-- item dolarizado mixto  -->
        <td colspan="4" style="height: 14px; padding-left: 30px; text-align: right;">TOTAL CUOTA AL {{ $cond_venceTC }} ...</td>
        <td style="text-align: right; padding-right: 10px;">&nbsp;</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 5px; font-size: 16px; font-weight: bold;">Bs {{ $montoTotalVES }}</td>
        <td style="background: {{ $colorYellow }}; text-align: right; padding-right: 10px; font-size: 12px; font-weight: bold;">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
    @endif

    <tr><!-- espacio -->
        <td style="height: 8px" colspan="5">&nbsp;</td>
        <td style="background: {{ $colorYellow }};" colspan="2">&nbsp;</td>
        <td style="border-width: 0px">&nbsp;</td>
    </tr>
</table>

<table>
    <tr>
        <td>
<!-- coletilla mixtos -->
            @if ($isMensaje_dolarizacion)
            <p style="padding-right: 40px; padding-left: 30px; font-size: 11px; line-height : 1rem;">
                <span style="font-size: 12px;">Total, condominio a pagar del mes <span style="font-weight: bold;">{{ $periodoR }}</span> es de <span style="font-weight: bold;">Bs. {{ $montoTotalVES }}</span>, el cual deberá ser cancelado antes del día <span style="font-weight: bold;">{{ $cond_venceTC }}</span></span>.<br>
                Relación de gastos, emitida conforme a la autorización de la comunidad de copropietarios y en función del Art. 12 de la LPH, Art.8 del Convenio cambiario No. - 1 y el art. 128 del Decreto con Rango, Valor y Fuerza de Ley del Banco Central de Venezuela.<br>

                La tasa BCV aplicada para el momento de la emisión del recibo {{ $tc_date }} de los gastos pagados en dólares fue de <span style="font-weight: bold; font-size: 12px;">Bs. {{ $tc_valor }}.</span><br>

                Podrá visualizar el estado de cuenta y monto total a pagar en el portal www.danoral.com

                <br><br>
                TOMAR EN CUENTA QUE LOS MONTOS REFLEJADOS EN DIVISAS DEBEN SER PAGADOS EN BASE A LA TASA DEL BCV DEL DIA DEL PAGO

            </p>

            @elseif ($codEE == '3345')

            <p></p>

            @else

            <p></p>

            <!--
            <p style="padding-right: 40px; padding-left: 30px; font-size: 11px; line-height : 1rem;">
                <span style="font-size: 12px;">El condominio del mes <span style="font-weight: bold;">{{ $periodoR }}</span>, deberá ser cancelado antes del día <span style="font-weight: bold;">{{ $cond_venceTC }}</span></span>.<br>

                La tasa BCV aplicada para el momento de la emisión del recibo {{ $tc_date }} fue de <span style="font-weight: bold; font-size: 12px;">Bs. {{ $tc_valor }}.</span><br>

                Podrá visualizar el estado de cuenta y monto total a pagar en el portal www.danoral.com

            </p>
            -->


            @endif

            @if ($codEE == '3355')
                <p style="padding-right: 40px; padding-left: 30px; font-size: 11px; line-height : 1rem;">
                    FORMA DE PAGO:

                    Banesco - 01340032670321033504 - RESIDENCIAS VISTA AL SOL - J315063727
                </p>
            @endif

        </td>
    </tr>
    <tr>
        <td style="height: 50px;">&nbsp;</td>
    </tr>
</table>


