@extends('admin.layouts.panel') @section('head') Invoice View @endsection @section('body') @endsection <>

INVOICE

Invoice #{{ $order->invoice }}

{{ $order->created_at->locale('id')->translatedFormat('d F Y H:i') }} WIB

Informasi Pesanan

No. Pesanan: {{ $order->invoice }}
Tanggal Order: {{ $order->created_at->locale('id')->translatedFormat('d F Y H:i') }} WIB
Status: {{ ucfirst($order->status) }}

Data Customer

Nama: {{ $order->username }}
No. Telepon: {{ $order->phone }}

Detail Produk

@foreach ($order->items as $index => $item) @endforeach
No Nama Produk Berat (KG) Harga Satuan Total
{{ $index + 1 }} {{ $item->title }} @if ($item->product && $item->product->description)
{{ Str::limit($item->product->description, 50) }} @endif
{{ number_format($item->qty, 0, ',', '.') }} Rp {{ number_format($item->final_price, 0, ',', '.') }} Rp {{ number_format($item->item_total, 0, ',', '.') }}

Rincian Pembayaran

@foreach ($order->items as $item)
{{ $item->title }} ({{ $item->qty }} KG)
Rp {{ number_format($item->item_total, 0, ',', '.') }}
@endforeach
Subtotal:
Rp {{ number_format($order->calculated_subtotal, 0, ',', '.') }}
Total Berat:
{{ number_format($order->weight ?? $order->calculated_weight, 0, ',', '.') }} KG
TOTAL PEMBAYARAN:
Rp {{ number_format($order->grand_total ?? $order->calculated_subtotal, 0, ',', '.') }}