@extends('layouts.dashboard') @section('dashboard') @foreach($compra as $c)

Factura de Compra Nº {{ $c->dte_recibido_id }}

@if(session('message'))
{{ session('message') }}
@endif
{{ csrf_field() }}
Proveedor: {{ $c->proveedor_nombre }}
Monto: ${{ \FCR::num_cl($c->dte_total) }}
@if(!empty($c->rut)) @endif
RUT: {{ \FCR::num_cl($c->rut).'-'.$c->rut_digito_verificador }}
Bodega:
Clasificación:
Centro de costo:
@if(count($productos) > 0)

Productos

@foreach($productos as $p) @php $num = $p->dte_recibido_detalle_id; $producto = $p->producto_id; $producto_detalle = $p->producto_detalle_id; $codigo = $p->producto_codigo_sku; @endphp @endforeach
SKU Proveedor SKU Propio Descripción Precio Cantidad Subtotal Posición
{{ $p->dte_recibido_detalle_sku }} @include('dashboard.dte.td-producto') ${{ \FCR::num_cl($p->dte_recibido_detalle_neto) }} {{ $p->dte_recibido_detalle_cantidad }} ${{ \FCR::num_cl($p->dte_recibido_detalle_subtotal) }} @include('dashboard.dte.td-posicion')

@if(empty($c->bodega_id))
@endif
@endif
@endforeach @endsection @section('scripts') @endsection