@extends('cr_blank') @section('content') @include('componentes.r_header') @php $todosEnvios = collect($datos) ->pluck('envios') ->flatten(1); @endphp
| N. | PRODUCTO | CANTIDAD | @foreach ($sucursales as $item){{ $item->nombre }} | @endforeachSALDO |
|---|---|---|---|---|
| {{ ++$i }} | {{ $item['nombre'] }} | {{ $item['cantidad']}} | @foreach ($item['envios'] as $suc){{ $suc['cantidad'] }} | @endforeach{{ $item['cantidad'] - $restar }} |
| TOTAL | {{ number_format($s_cantidad,2) }} | @foreach ($sucursales as $item) @php $total = $todosEnvios ->where('id', $item['id']) ->sum('cantidad'); @endphp{{ $total }} | @endforeach{{ number_format($s_saldo,2) }} | |