@if($profil->nama_profil)

{{ $profil->nama_profil }}

@else

Struk Penjualan

@endif

{{ $profil->alamat }}

No. Penjualan: {{ $order->no_order }}

Tanggal: {{ \Carbon\Carbon::parse($order->order_date)->locale('id')->isoFormat('D MMM YYYY, HH:mm') }}

Pelanggan: {{ $order->customer->name ?? 'Tidak Ada' }}

Petugas: {{ $order->user->name }}

@foreach ($order->orderItems as $index => $item) @endforeach
No Produk Qty Harga Total
{{ $index + 1 }} {{ $item->product->name }} {{ $item->quantity }} Rp {{ number_format($item->order_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }}

Sub Total: Rp {{ number_format($order->total_cost_before, 0, ',', '.') }}

Diskon: {{ $order->percent_discount }}%

Diskon: Rp {{ number_format($order->amount_discount, 0, ',', '.') }}

Bayar: Rp {{ number_format($order->input_payment, 0, ',', '.') }}

Kembalian: Rp {{ number_format($order->return_payment, 0, ',', '.') }}

Total: Rp {{ number_format($order->total_cost, 0, ',', '.') }}