Reporte Inventario

Empresa: {{$company->name}}

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

Ruc: {{$company->number}}

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

@if(!empty($reports))
@php $total = 0; @endphp @foreach($reports as $key => $value) @php $total_line = $value->stock * $value->item->purchase_unit_price; $total = $total + $total_line; @endphp @endforeach
# Nombre Descripción Categoria Inventario actual Tallas Costo Costo Total Precio de venta Marca F. vencimiento Almacén
{{$loop->iteration}} {{$value->item->description ?? ''}} {{$value->item->name ?? ''}} {{optional($value->item->category)->name}} {{$value->stock}} @if($value->item->has_sizes)@foreach(\App\Models\Tenant\ItemSizeStock::where('item_id',$value->item_id)->where('warehouse_id',$value->warehouse_id)->get() as $s){{$s->size}}:{{$s->stock}} @endforeach @else - @endif {{$value->item->purchase_unit_price}} {{number_format($total_line, 6)}} {{$value->item->sale_unit_price}} {{$value->item->brand->name}} {{$value->item->date_of_due}} {{$value->warehouse->description}}
Costo Total de Inventario {{number_format($total, 6)}}
@else

No se encontraron registros.

@endif