@extends('cr_blank')
@section('content')
@include('componentes.r_header')
@if ($sucursal)
{{ $sucursal->nombre }}
@else
@endif
Del {{ date('d/m/Y',strtotime($ini)) }} al {{ date('d/m/Y',strtotime($fin)) }}
@php
$total_cant = 0;
$total_ml = 0;
@endphp
@foreach ($datos as $pro)
{{ date('d/m/Y H:i', strtotime($pro->fecha_registro)) }} {{ $pro->txt_nro }}
| N. |
LOTE |
PRODUCTO |
LON. |
CANT. |
+ PRODUCTO |
TOTAL (ML) |
@php
$s_cant = 0;
$s_ml = 0;
@endphp
@foreach ($pro->detalle as $item)
| {{ ++$i }} |
{{ $item->lote->lote }} |
{{ $item->lote->producto->codigo }} {{ $item->lote->producto->nombre }} |
{{ $item->longitud }} |
{{ $item->cantidad }} |
{{ $item->producto->codigo }} {{ $item->producto->nombre }} |
{{ number_format($item->cantidad * $item->longitud, 2) }} |
@php
$s_cant += $item->cantidad;
$s_ml += $item->cantidad * $item->longitud;
@endphp
@endforeach
|
TOTALES |
{{ $s_cant }} |
|
{{ number_format($s_ml,2) }} |
@php
$total_cant += $s_cant;
$total_ml += $s_ml;
@endphp
{{-- {{ $datos->total }}
--}}
@endforeach
Total (ML): {{ $total_ml }}
@endsection
@section('scripts')
@endsection