@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 }}
Telf/Cel.:
{{ $datos->cliente->celular }}
Fecha de vencimiento:
{{ $datos->fecha_vigencia?date('d/m/Y',strtotime($datos->fecha_vigencia)):'' }}
@php $total_desc = 0; $total_neto = 0; $total_aux = 0; $total_ml = 0; @endphp @foreach ($datos->detalle as $item) @php @endphp @if ($item->producto->es_bobina && $item->longitud) @if ($item->factor > 1) @else @endif @else @endif @if ($item->producto->es_bobina) @if ($item->tipo->id == 6 || $item->tipo->id == 7) @else @endif @php $total_ml += $item->longitud?$item->longitud*$item->cantidad:$item->cantidad; @endphp @else @endif @if ($item->longitud) @else @endif @php $total_desc += $item->descuento; $total_neto += $item->total; $total_aux += $item->total - $item->descuento; @endphp @endforeach @foreach ($datos->otrodetalle ?? [] as $item) @if ($item->longitud) @else @endif @if ($item->longitud) @else @endif @php if ($item->longitud) { $total_neto += $item->cantidad * $item->longitud * $item->precio; $total_aux += $item->cantidad * $item->longitud * $item->precio; } else { $total_neto += $item->cantidad * $item->precio; $total_aux += $item->cantidad * $item->precio; } @endphp @endforeach @if (number_format($total_aux,2) != number_format($datos->total,2)) @endif @if ($datos->descuento + $total_desc > 0) @if ($datos->total_desc > 0) {{-- --}} @endif @if ($datos->descuento > 0) @endif @endif @if ($datos->monto_transporte) @endif
N. CANT. UNIDAD DESCRIPCIÓN LONGITUD (Mt) TOTAL (ML) PRECIO UNITARIO SUB TOTAL
{{ ++$i }} {{ $item->cantidad }}{{ $item->unidad->sigla }}PZA{{ $item->producto->nombre }} ({{ $item->tipo->nombre }}){{ $item->unidad->sigla }} {{ $item->producto->nombre }}{{ $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_aux,2) }}{{ number_format($item->total - $item->descuento,2) }}{{ number_format($item->total - $item->descuento,2) }}
{{ ++$i }} {{ $item->cantidad }} {{ $item->detalle }}{{ $item->longitud }} {{ $item->cantidad * $item->longitud }} {{ number_format($item->precio,2) }}{{ number_format($item->cantidad * $item->longitud * $item->precio,2) }}{{ number_format($item->cantidad * $item->precio,2) }}
Bs. {{ number_format($total_aux,2) }}
DESC. Bs. {{ number_format( $total_desc,2) }}
DESC. GRAL. Bs. {{ number_format($datos->descuento,2) }}
TRANSPORTE. Bs. {{ number_format($datos->monto_transporte,2) }}
TOTAL Bs. {{ number_format($datos->total,2) }}
{{ $txt_total }}
@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