@extends('cr_horizontal') @section('content') @php $titulo = $title; @endphp @include('reportes.components.pdf_header') {{--
{{ $title }}
--}}
@if ($color)
@endif
{{ $zona ? $zona->nombre : '-' }}
@if ($color)
@endif
Periodo: {{ $mes }} {{ $gestion }}
{{--
Mes: {{ $mes }}
--}} {{--
Gestión: {{ $gestion }}
--}} @php $total = $data->sum('deuda_total'); @endphp @foreach ($data as $index => $item) @php $esUltima = $index === $total - 1; $sombreado = ($index % 2 === 1) ? 'row-alt' : ''; // $sombreado = (!$esUltima && $index % 2 === 1) ? 'row-alt' : ''; @endphp @endforeach {{-- --}}
N. Código N° de Medidor Nombre del Contribuyente Lect. Ant Lect. Actual Total Consumo (m3) Alcant. Bs {{ $mes }} Serv. Agua Bs {{ $mes }} Deuda Acum. Alcant Deuda Acum. Agua Total Bs
{{ ++$i }} {{ $item['codigo'] }} {{ $item['numero'] }} {{ $item['socio']->nombre_completo }} {{ $item['medida_anterior'] }} {{ $item['medida_actual'] }} {{ $item['consumo'] }} {{ number_format($item['alc_mes'],2) }} {{ number_format($item['consumo_mes'],2) }} {{ number_format($item['deuda_alc'],2) }} {{ number_format($item['deuda_consumo'],2) }} {{ number_format($item['deuda_total'],2) }}
TOTALTOTAL {{ $data->sum('consumo') }} {{ number_format($data->sum('alc_mes'),2) }} {{ number_format($data->sum('consumo_mes'),2) }} {{ number_format($data->sum('deuda_alc'),2) }} {{ number_format($data->sum('deuda_consumo'),2) }} {{ number_format($total,2) }}
@if (count($firmas))
@foreach ($firmas as $item) @endforeach @for ($i = 0; $i < count($firmas); $i++) @endfor
__________________________
{{ $firmas[$i] }}
{{ $cargos[$i] }}
@endif {{--
{{ $txt_total }}
--}} @endsection @section('scripts') @endsection