@php $establishment = $cash->user->establishment @endphp Reporte POS - {{$cash->user->name}} - {{$cash->date_opening}} {{$cash->time_opening}}

Reporte Punto de Venta

@if(!$cash->state) @endif

Empresa: {{$company->name}}

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

Ruc: {{$company->number}}

Establecimiento: {{$establishment->address}} - {{$establishment->department->description}} - {{$establishment->district->description}}

Vendedor: {{$cash->user->name}}

Fecha y hora apertura: {{$cash->date_opening}} {{$cash->time_opening}}

Estado de caja: {{($cash->state) ? 'Aperturada':'Cerrada'}}

Fecha y hora cierre: {{$cash->date_closed}} {{$cash->time_closed}}

Montos de operación:

@if($documents->count()) @php $total = 0; $subTotal = 0 @endphp @php $items_id=[]; foreach ($documents as $item) { $validate=in_array($item['item_id'],$items_id); if (!$validate) { $items_id[]=$item['item_id']; } } $allTotal=0; //dd($items_id); @endphp @if ($is_garage) @include('tenant.cash.partials.data_garage') @endif
@foreach($documents as $item) @php $total+=$item['unit_value']; $subTotal+=$item['sub_total'] @endphp @endforeach
# Producto Cantidad Precio Sub Total Comprobante
{{ $loop->iteration }} {{ $item['description'] }} {{ $item['quantity'] }} {{ App\CoreFacturalo\Helpers\Template\ReportHelper::setNumber($item['unit_value']) }} {{ App\CoreFacturalo\Helpers\Template\ReportHelper::setNumber($item['sub_total']) }} {{ $item['number_full'] }}
Totales {{ App\CoreFacturalo\Helpers\Template\ReportHelper::setNumber($subTotal) }}

{{-- TOTALES --}} @if (!$is_garage) @include('tenant.cash.partials.totals_sold_items') @endif {{-- @foreach ($items_id as $item_id) @php $quantity_item=0; $description=''; $unit_value=0; $total_item=0; $info='TOTAL CON IGV'; @endphp @foreach($documents as $item) @if ($item_id==$item['item_id']) @php $quantity_item+=$item['quantity']; $description=$item['description']; $unit_value=$item['unit_value']; $total_item+=$item['total']; @endphp @endif @php //dd($quantity_item); @endphp @endforeach @php //$total+=$item['unit_value']; $allTotal+=$total_item; @endphp @endforeach
# Producto Cantidad Precio Total
{{ $loop->iteration }} {{ $description }} {{ $quantity_item }} {{ App\CoreFacturalo\Helpers\Template\ReportHelper::setNumber($unit_value) }} {{ App\CoreFacturalo\Helpers\Template\ReportHelper::setNumber($total_item) }} {{$info}}
Totales {{ App\CoreFacturalo\Helpers\Template\ReportHelper::setNumber($allTotal) }}
--}}
@else

No se encontraron registros.

@endif