@extends('cr_blank') @section('content') @include('componentes.pedido_header') {{-- --}} {{-- --}}
Fecha:
{{ date('d/m/Y',strtotime($datos->fecha_registro)) }}
NIT/CI:
{{ $datos->nit }}
Nombre/Razón social:
{{ $datos->razon_social }}
Dirección:{{ $datos->cliente->direccion }}
Telf/Cel.:
{{ $datos->cliente->celular }}
Fecha de vencimiento:
{{ $datos->fecha_vigencia?date('d/m/Y',strtotime($datos->fecha_vigencia)):'' }}
{{--
Detalle de venta.
--}} {{-- --}} @php $total_desc = 0; @endphp @foreach ($datos->detalle as $item) @php $nro = $item->lote->ingreso->nro; // Suponiendo que es un string o número $ultimos5 = substr($nro, -5); @endphp @if ($item->producto->es_bobina && $item->longitud) {{-- --}} @else @endif {{-- --}} @if ($item->producto->es_bobina) @if ($item->tipo->id == 6 || $item->tipo->id == 7) @else @endif @else @endif @if ($item->longitud) @else @endif @php $total_desc += $item->descuento; @endphp @endforeach @foreach ($datos->otrodetalle ?? [] as $item) @endforeach @if ($datos->monto_transporte) @endif
N. CANT. UNIDAD DESCRIPCIÓN LONGITUD (Mt) TOTAL (ML) PRECIO UNITARIO DESC SUB TOTAL
{{ ++$i }} {{ $item->cantidad }}PZA {{ $item->producto->nombre }} ({{ $item->tipo->nombre }}) ({{ $ultimos5 }}) ({{ $item->lote->lote }}){{ $item->producto->nombre }} CALAMINA TIPO {{ $item->tipo->nombre }}, ({{ $item->lote->detalle }}){{ $item->unidad->sigla }} {{ $item->producto->nombre }} ({{ $ultimos5 }}) ({{ $item->lote->lote }}){{ date('d-m-Y H:i',strtotime($item->fecha)) }}{{ $item->longitud?$item->longitud:'' }}{{ ($item->longitud?$item->longitud*$item->cantidad:$item->cantidad)*1.08 }}{{ $item->longitud?$item->longitud*$item->cantidad:$item->cantidad }}{{ number_format($item->precio,2) }} {{ number_format($item->descuento,2) }}{{ number_format($item->cantidad * $item->longitud * $item->precio - $item->descuento,2) }}{{ number_format($item->cantidad * $item->precio - $item->descuento,2) }}
{{ ++$i }} {{ $item->cantidad }} {{ $item->detalle }} {{ number_format($item->precio,2) }} {{ number_format($item->cantidad * $item->precio,2) }}
TOTAL DESC. Bs. {{ number_format($total_desc,2) }}
TRANSPORTE. Bs. {{ number_format($datos->monto_transporte,2) }}
TOTAL Bs. {{ number_format($datos->total,2) }}
{{ $txt_total }}
Peso aprox.
{{ number_format($peso,2) }}
@if ($datos->observacion)
Observación:
{{ $datos->observacion }}
@endif @if (count($datos->anticipos))
ANTICIPOS
@php $i_ant = 0; @endphp @foreach ($datos->anticipos as $item) @endforeach
N. RECIBO FECHA DESCRIPCION MONTO
{{ ++$i_ant }} {{ $item->id }} {{ date('d/m/Y', strtotime($item->fecha)) }} {{ $item->descripcion }} {{ number_format($item->monto,2) }}
TOTAL Bs. {{ number_format($datos->anticipos->sum('monto'),2) }}
@endif
{{-- --}} {{-- --}} {{-- --}} @endsection