@extends('layouts.app') @section('title', $order->document_type . ' ' . $order->full_number) @section('content') @php $color = match($order->sunat_status) { 'ACCEPTED' => 'success', 'OBSERVED' => 'warning', 'PENDING' => 'secondary', 'VOIDED' => 'dark', default => 'danger', }; $colorHex = match($order->sunat_status) { 'ACCEPTED' => '#22c55e', 'OBSERVED' => '#f59e0b', 'PENDING' => '#6b7280', 'VOIDED' => '#1e1b3a', default => '#ef4444', }; @endphp
| Cant | Producto | Precio Unit. | Subtotal |
|---|---|---|---|
| {{ $d->quantity }} | {{ $d->product->name ?? '—' }} | S/ {{ number_format($d->price, 2) }} | S/ {{ number_format($d->price * $d->quantity, 2) }} |
| Op. Gravada: | S/ {{ number_format($order->total_gravada, 2) }} | ||
| IGV (18%): | S/ {{ number_format($order->igv, 2) }} | ||
| TOTAL: | S/ {{ number_format($order->total, 2) }} | ||