@extends('cr_blank') @section('content') @include('componentes.r_header') @if ($sucursal)
{{ $sucursal->nombre }}
@else @endif {{-- @if (!$sucursal) @endif --}} {{-- --}} {{-- --}} {{-- --}} @php $sub_total = 0; $saldo = 0; @endphp @foreach ($datos as $prod) @php $sub_total += $prod->sub_total; $saldo += $prod->saldo; @endphp {{-- @foreach ($prod->lotes as $item) @if (!$sucursal) @endif @endforeach --}} @endforeach
N.SucursalLoteCódigo Producto UnidadPrecioCategoría Existencias Iniciales Precio Unitario Total Bs. Stock Actual Saldo Bs.Stock inicial Stock actual
{{ ++$i }} {{ $prod->codigo }} {{ $prod->nombre }} {{ $prod->unidad->sigla }} {{ $prod->categoria->nombre }} {{ round($prod->cantidad_inicial,2) }} {{ round($prod->precio_venta,2) }} {{ number_format($prod->sub_total,2) }} {{ round($prod->stock,2) }} {{ number_format($prod->saldo,2) }}
{{ ++$i }}{{ $item->sucursal->nombre }}{{ $item->lote }} {{ $prod->nombre }} {{ $prod->unidad->sigla }} {{ $prod->categoria->nombre }} {{ $item->cantidad }} {{ round($item->cantidad_actual,2) }}
TOTALES {{ number_format($sub_total, 2) }} {{ number_format($saldo, 2) }}
{{--
{{ $datos->total }}
--}} @endsection @section('scripts') @endsection