@extends('cr_blank') @section('content') @include('componentes.r_header') @if ($ini && $fin)
Del {{ date('d-m-Y',strtotime($ini)) }} al {{ date('d-m-Y',strtotime($fin)) }}
@endif @if ($ingreso)
Nro. Orden: {{ $ingreso->nro }}
@endif {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @php $s_contado = 0; $s_credito = 0; $s_cuenta = 0; $s_saldo = 0; $s_ml = 0; $s_subtotal = 0; @endphp @foreach ($datos as $item) {{-- @if ($item->cant_bobinas) --}} @foreach ($item->detalle as $dt_bob) @if ($dt_bob->producto->es_bobina) {{-- --}} {{-- --}} @if ($item->tipo_venta == 'SUCURSAL') @else @endif {{-- --}} @if ($dt_bob->tipo->id == 6 || $dt_bob->tipo->id == 7) @else @endif {{-- --}} {{-- --}} {{-- --}} @if ($dt_bob->longitud) @else @endif @php $s_contado += $item->t_contado; $s_credito += $item->t_credito; $s_cuenta += $item->a_cuenta; $s_saldo += $item->saldo; if ($dt_bob->tipo->id == 6 || $dt_bob->tipo->id == 7) { $s_ml += ($dt_bob->longitud?$dt_bob->longitud*$dt_bob->cantidad:$dt_bob->cantidad)*1.08; } else { $s_ml += $dt_bob->longitud?$dt_bob->longitud*$dt_bob->cantidad:$dt_bob->cantidad; } if ($dt_bob->longitud) { $s_subtotal += $dt_bob->cantidad * $dt_bob->longitud * $dt_bob->precio - $dt_bob->descuento; } else { $s_subtotal += $dt_bob->cantidad * $dt_bob->precio - $dt_bob->descuento; } @endphp @endif @endforeach {{-- @endif --}} @endforeach {{-- --}} {{-- --}}
N.N° RECIBOFECHACANT. BOB.VENDEDOR PRODUCTO CLIENTEVENTA CREDITOVENTA EFECTIVOA CUENTA (Bs)ML P/U (Bs)SALDO (Bs)TOTAL (Bs)
{{ ++$i }}{{ $item->nro_recibo }}{{ date('d/m/Y',strtotime($item->fecha)) }}{{ $item->cant_bobinas }}{{ $item->usuario->nombres }} @if ($dt_bob->longitud)
{{ $dt_bob->producto->nombre }} ({{ $dt_bob->tipo->nombre }}) ({{ $dt_bob->lote->lote }})
@else
{{ $dt_bob->producto->nombre }} ({{ $dt_bob->lote->lote }})
@endif
{{ $item->clsucursal->nombre }}{{ $item->razon_social }}ml{{ ($dt_bob->longitud?$dt_bob->longitud*$dt_bob->cantidad:$dt_bob->cantidad)*1.08 }}{{ $dt_bob->longitud?$dt_bob->longitud*$dt_bob->cantidad:$dt_bob->cantidad }}pu{{ number_format($dt_bob->precio,2) }}{{ number_format($item->t_credito,2) }} {{ number_format($item->t_contado,2) }} {{ number_format($item->a_cuenta,2) }}{{ number_format($item->saldo,2) }}{{ number_format($dt_bob->cantidad * $dt_bob->longitud * $dt_bob->precio - $dt_bob->descuento,2) }}{{ number_format($dt_bob->cantidad * $dt_bob->precio - $dt_bob->descuento,2) }}
TOTALES{{ number_format($s_credito,2) }} {{ number_format($s_contado,2) }} {{ number_format($s_cuenta,2) }}{{ $s_ml }} {{ number_format($s_saldo,2) }}{{ number_format($s_subtotal,2) }}
{{--
{{ $datos->total }}
--}} @endsection @section('scripts') @endsection