{{'since: ' . $since}} @if (isset($since) || isset($until)) Desde @if (isset($since)) {{ \Carbon\Carbon::parse($since)->format('d/m/Y') }} @endif Hasta @if (isset($since)) {{ \Carbon\Carbon::parse($until)->format('d/m/Y') }} @endif @endif @if (isset($since) || isset($until)) @endif @if ($currency == Currency::DOLAR) @else @endif @if ($currency == Currency::DOLAR) @else @endif @if ($currency == Currency::DOLAR) @else @endif Producto Categoría Existencia Unidad Reserva Ventas {{$currency == Currency::DOLAR ? '($)' : '(Bs)'}} Compras {{$currency == Currency::DOLAR ? '($)' : '(Bs)'}} @foreach($products as $item) {{ $item->name }} {{ $item->category ? $item->category->name : '' }} {{-- {{ $item->type == \App\Models\Product::NORMAL ? $item->stock : $item->size_colors->sum(function($item) { return $item->stock; }) }} --}} {{-- {{$item->stock_acumulado > 0 ? $item->stock_acumulado : $item->stock}} --}} @if(isset($item->stock_warehouse) && $item->stock_warehouse != '') {{ $item->stock_warehouse }} @else @if($item->stock_acumulado > 0) {{ $item->stock_acumulado }} @else {{ $item->stock }} @endif @endif {{ $item->unit }} {{-- {{ $item->type == \App\Models\Product::NORMAL ? $item->reservation : $item->reservation_acumulado }} --}} {{ $item->reservation_acumulado > 0 ? $item->reservation_acumulado : $item->reservation }} @if ($currency == Currency::DOLAR) {{ $item->total_orders }} @else {{ $item->total_orders_bs}} @endif @if ($currency == Currency::DOLAR) {{ $item->total_purchases }} @else {{ $item->total_purchases_bs}} @endif @endforeach