{{-- @dd($data['noInvoice']) --}} @php $interest = $dataBunga->interest ?? 0; // new purchase $totalPrice = $totalHarga ?? 0; $result = ($totalPrice * $interest) / 100; $totalWithInterest = $totalPrice + ($totalPrice * $interest) / 100; // bill @endphp
{{-- --}}
{{-- Company Logo
Jamal Industri --}}

INVOICE

Nama Pembeli : {{ $name ?? 'Pembeli yng terhormat' }}
Kode Invoice : {{ $noInvoice ?? 'no_invoice' }}
Tanggal : {{ now()->format('d-F-Y') }}
Jenis Pembayaran : {!! $paymentType ?? 'cash' !!}
{{--

{{ $data->title }}

--}}
@if ($newPurchase == 1) @foreach ($dataProduk as $items) @endforeach
Nama Kuantitas Harga Satuan Total Harga
{{ $items['product']['name'] ?? $items['product']['name'] }} {{ $items['quantity'] ?? 0 }} Rp. {{ number_format($items['product']['price'] ?? $items['product']['price'], 0, ',', '.') }} Rp. {{ number_format(($items['product']['price'] ?? $items['product']['price']) * ($items['quantity'] ?? 1), 0, ',', '.') }}

Subtotal: Rp. {{ number_format($totalHarga ?? 0, 0, ',', '.') }}

Bunga ({{ $dataBunga->interest ?? 0 }}%): Rp. {{ number_format($result ?? 0, 0, ',', '.') }}

Total: Rp. {{ number_format($totalWithInterest ?? 0, 0, ',', '.') }}

@else @php $sisaHutang = $dataPaylater->debt_remaining - $nominalPembayaran; @endphp
Total Hutang Kamu : Rp. {{ number_format($dataPaylater->debt_remaining ?? 0, 0, ',', '.') }}
Nominal Pembayaran Kamu : Rp. {{ number_format($nominalPembayaran ?? 0, 0, ',', '.') }}
Tanggal Jatuh Tempo : {{ \Carbon\Carbon::parse($dataPaylater->due_date)->format('d-F-Y') }}
Sisa Hutang Kamu : Rp. {{ number_format($sisaHutang ?? 0, 0, ',', '.') }}

@endif

Check My Sosial Media

Instagram : @_ha_nif

No. Hp : 0851-6131-0017

Email : newhanif743@gmail.com

Company Logo
Jamal Industri