@extends('tenant.layouts.app') @section('content')

Consulta de inventarios

{{csrf_field()}} {{--
--}}
@if(!empty($reports) && $reports->count())
{{csrf_field()}}
@if(isset($reports))
{{csrf_field()}} {{-- --}}
{{csrf_field()}} {{-- --}}
@endif
{{-- @php $total_global_sale_unit_price = 0; $total_global_purchase_unit_price = 0; @endphp --}} @foreach($reports as $key => $value) @php $global_sale_unit_price = $value->getGlobalSaleUnitPrice(); $global_purchase_unit_price = $value->getGlobalPurchaseUnitPrice(); // $total_global_sale_unit_price += $global_sale_unit_price; // $total_global_purchase_unit_price += $global_purchase_unit_price; @endphp @endforeach {{-- --}}
# Descripción Inventario actual Precio de venta Costo Almacén Precio de venta Global Costo Global
{{$loop->iteration}} {{$value->item->internal_id ?? ''}} {{$value->item->internal_id ? '-':''}} {{$value->item->name ?? ''}} {{$value->stock}} {{$value->item->sale_unit_price}} {{$value->item->purchase_unit_price}} {{$value->warehouse->description}} {{$global_sale_unit_price}} {{$global_purchase_unit_price}}
Total {{ number_format($total_global_sale_unit_price, 6, ".", "") }} {{ number_format($total_global_purchase_unit_price, 6, ".", "") }}
Total {{$reports->total()}}
@else
No se encontraron registros
@endif
@endsection @push('scripts') @endpush