@php use SimpleSoftwareIO\QrCode\Facades\QrCode; @endphp
| Tanggal | : {{ $salesOrder->order_date?->format('d/m/Y') }} | Status | : {{ $salesOrder->status }} |
| Member | : {{ data_get($salesOrder->customer, 'member_name') ?? data_get($salesOrder->customer, 'member_name') ?? '-' }} | Warehouse | : {{ data_get($salesOrder->warehouse, 'name') ?? data_get($salesOrder->warehouse, 'warehouse_name') ?? '-' }} |
| No | Produk | Qty | Harga | Discount | Subtotal | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} |
{{ data_get($detail->product, 'product_name') ?? '-' }}
@if($detail->batch_number)
Batch: {{ $detail->batch_number }} @endif @if($detail->expired_date) Exp: {{ $detail->expired_date->format('d/m/Y') }} @endif {{-- KITTING --}} @if($detail->product && $detail->product->kittings->count()) @foreach($detail->product->kittings as $kitting)
Kitting
No:
{{ $kitting->kitting_no }}
{{-- KOMPONEN KITTING --}}
@if($kitting->details->count())
Tanggal: {{ $kitting->kitting_date?->format('d/m/Y') }} Qty Kit: {{ $kitting->qty }}
|
{{ number_format($detail->qty, 2, ',', '.') }} | Rp {{ number_format( $detail->price, 0, ',', '.' ) }} | Rp {{ number_format( $detail->discount, 0, ',', '.' ) }} | Rp {{ number_format( $detail->subtotal, 0, ',', '.' ) }} | ||||||
| Tidak ada detail produk. | |||||||||||
| Gudang Sumber | : @if($packingWarehouse) {{ $packingWarehouse->warehouse_name ?? $packingWarehouse->name ?? '-' }} @if(!empty($packingWarehouse->warehouse_code)) ({{ $packingWarehouse->warehouse_code }}) @endif @else - @endif |
| Total Koli | : {{ $salesOrder->total_koli ?? count($packingDetails) }} Koli |
| Total Isi | : {{ number_format($totalPackingQty, 0, ',', '.') }} pcs |
| Koli | Isi | Keterangan |
|---|---|---|
| {{ $packing['koli'] ?? ($index + 1) }} | {{ number_format((int) ($packing['qty'] ?? 0), 0, ',', '.') }} pcs | Isi Koli {{ $packing['koli'] ?? ($index + 1) }} |
| TOTAL | {{ number_format($totalPackingQty, 0, ',', '.') }} pcs | {{ count($packingDetails) }} Koli |
|
@if(!empty($salesOrder->invoice_verification_token))
@php
$invoiceVerificationUrl = config('app.url') . '/invoice/verify/' . $salesOrder->invoice_verification_token;
$qrCode = base64_encode(
QrCode::format('svg')
->size(300)
->margin(1)
->generate($invoiceVerificationUrl)
);
@endphp
SCAN UNTUK
@else
VERIFIKASI INVOICE
QR VERIFIKASI
@endif
BELUM TERSEDIA |
{{-- GRAND TOTAL DI SEBELAH KANAN --}}
|