@extends('layouts.app') @section('content') @extends('fabricacion.menu')

Ordenes de Producción

@if (Auth::user()->id == 4 || Auth::user()->id == 2 || Auth::user()->id == 12 || Auth::user()->id == 7) Nueva @endif


@foreach ($ops as $op) @endforeach @foreach ($opsInventario as $op) @endforeach
OP Fecha Cliente Cantidad Producto Ejecutivo Planificación Producción Estado Pendiente fabricar Kgs Millar Kgs Procesar Acción
{{ $op->id }} {{ date('d/m/Y h:i:s', strtotime($op->created_at)) }} {{ $op->cliente->nombre ?? 'Inventario' }} {{ $op->cantidad }} {{ $op->producto->medida->nombre }} {{ $op->producto->nombre . ' ' . $op?->cotizaciones_p?->descripcion }} {{ $op->cliente->info_ejecutivo->name ?? 'Inventario' }} {{ $op->fecha_entrega ? date('d/m/Y', strtotime($op->fecha_entrega)) : '' }} @if ($op->status == 2) Autorizada @endif @if ($op->status == 3) Proceso @endif @if ($op->status == 4) Terminada @endif @if ($op->status == 99) Anulada @endif @if ($op->status == 3) {{ $cantidad }} {{ $op->producto->medida->nombre }} @endif {{ $op->producto->factor_conversion_kilos }} {{ $op->producto->factor_conversion_kilos * $op->cantidad }} @if ($op->status == 2) @endif @if ($op->status == 3) @endif @if ($op->status == 4) @endif
{{ $op->id }} {{ date('d/m/Y', strtotime($op->created_at)) }} {{ $op->cliente->nombre ?? 'Inventario' }} {{ $op->cantidad }} {{ $op->producto->medida->nombre }} {{ $op->producto->nombre }} {{ $op->cliente->info_ejecutivo->name ?? 'Inventario' }} {{ $op->fecha_entrega ? date('d/m/Y', strtotime($op->fecha_entrega)) : '' }} Pendiente autorización {{ $op->producto->factor_conversion_kilos }} {{ $op->producto->factor_conversion_kilos * $op->cantidad }}
@endsection