
<div class="col-md-12 padding10">
  <h4 class="text-center titulo-fidelitas">@traducir('aportes_previsionales', 'APORTES PREVISIONALES')</h4>
</div>

<div class="col-md-8 col-sm-8 col-xs-8 col-md-offset-2">
@if(sizeof($misaportes) > 0)
    <!-- mis aportes empresa -->
    <p class="text-center">Consulta/s realizada/s a Mis Aportes (AFIP) con fecha y resultado vinculado uno o más CUILes de ejemplo. Puede no representar la situación general y actual de la empresa. Recomendamos ampliar y actualizar la consulta.</p>
    <table class="table table-striped  text-left table-children table-bordered">
      <thead>
        <tr>
          <th class="text-center" style="font-weight:600;width:80px">Período</th>
          <th class="text-center" style="font-weight:600;width: 120px;">Pres. DDJJ</th>
          <th class="text-center" style="font-weight:600;width: 120px;">Aporte Seg. Soc.</th>
          <th class="text-center" style="font-weight:600;width: 120px;">Aporte Obra Soc.</th>
          <th class="text-center" style="font-weight:600;width: 120px;">Contr. Patronal</th>
        </tr>
      </thead>
      <tbody>
        @foreach($misaportes as $nperiodo => $aporte)
        @if ( !(strpos($aporte['ddjj'], 'NO PRES') === 0 && strpos($aporte['aportes_ss'], 'NO PRES') === 0 && strpos($aporte['aportes_os'], 'NO PRES') === 0 && strpos($aporte['contr_patronal'], 'NO PRES') === 0) )
        <tr>
          <td class="text-center">{{$nperiodo}}</td>
          <td class="text-center @if($aporte['ddjj'] == 'SI') ddjj-presentada @else @if($aporte['ddjj'] == 'NO PRESENTADA') ddjj-no-presentada @endif @endif">{{$aporte['ddjj']}}</td>
          <td class="text-center @if($aporte['aportes_ss'] == 'PAGO') aportes-pago @else @if($aporte['aportes_ss'] == 'IMPAGO') aportes-impago @else @if($aporte['aportes_ss'] == 'PAGO PARCIAL') aportes-pago-parcial @endif @endif @endif">{{$aporte['aportes_ss']}}</td>
          <td class="text-center @if($aporte['aportes_os'] == 'PAGO') aportes-pago @else @if($aporte['aportes_os'] == 'IMPAGO') aportes-impago @else @if($aporte['aportes_os'] == 'PAGO PARCIAL') aportes-pago-parcial @endif @endif @endif">{{$aporte['aportes_os']}}</td>
          <td class="text-center @if($aporte['contr_patronal'] == 'PAGO') aportes-pago @else @if($aporte['contr_patronal'] == 'IMPAGO') aportes-impago @else @if($aporte['contr_patronal'] == 'PAGO PARCIAL') aportes-pago-parcial @endif @endif @endif">{{$aporte['contr_patronal']}}</td>
        </tr>
        @endif
        @endforeach
      </tbody>
      <tfoot></tfoot>
    </table>
@else 
    <p class="text-center">No hay información disponible</p>
@endif
</div>
