Reporte Nota de Venta

Empresa: {{$company->name}}

Fecha: {{date('Y-m-d')}}

N° Documento: {{$company->number}}

@if(!empty($records))
@foreach($records as $key => $value) @if($value->state_type_id == '11') @else @endif {{-- @php if($value->currency_type_id == 'PEN'){ if($value->state_type_id == '11'){ $acum_total += 0; $acum_total_taxed += 0; $acum_total_igv += 0; }else{ $acum_total += $value->total; $acum_total_taxed += $value->total_taxed; $acum_total_igv += $value->total_igv; } }else if($value->currency_type_id == 'USD'){ if($value->state_type_id == '11'){ $acum_total_usd += 0; $acum_total_taxed_usd += 0; $acum_total_igv_usd += 0; }else{ $acum_total_usd += $value->total; $acum_total_taxed_usd += $value->total_taxed; $acum_total_igv_usd += $value->total_igv; } } @endphp --}} @endforeach {{-- --}}
# Fecha Emisión Cliente Nota de Venta Estado Moneda Comprobantes Total
{{$loop->iteration}} {{$value->date_of_issue->format('Y-m-d')}} {{$value->customer->name}} {{$value->number_full}} {{$value->state_type->description}} {{$value->currency_type_id}} @foreach ($value->documents as $doc) @endforeach 0{{ $value->total}}
Totales PEN {{$acum_total_taxed}} {{$acum_total_igv}} {{$acum_total}}
Totales USD {{$acum_total_taxed_usd}} {{$acum_total_igv_usd}} {{$acum_total_usd}}
@else

No se encontraron registros.

@endif