@extends('layouts.dashboard') @section('dashboard') @foreach($compra as $c)
Home
Factura de Compra Nº {{ $c->dte_recibido_id }}
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:
@if(count($bodegas) > 0)
-- Seleccione una bodega --
@foreach($bodegas as $b)
{{ $b->bodega_nombre }}
@endforeach @else
"No hay bodegas agregadas"
@endif
Clasificación:
-- Seleccione una clasificación --
Mercadería
@foreach($clasificacion as $cl)
{{ $cl->dte_clasificacion_nombre }}
@endforeach
Centro de costo:
@if(count($centro_costo) > 0)
-- Seleccione centro de costo --
@foreach($centro_costo as $cc)
{{ $cc->dte_centro_costo_nombre }}
@endforeach @else
"No hay centros de costos agregados"
@endif
@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))
Guardar cambios
@endif
@endif
@endforeach @endsection @section('scripts') @endsection