{{-- Header --}}
{{ $system->title ?? 'Customer Management' }}

{{ $system->title ?? 'Customer Management' }}

{{ trans('billing.label.invoice') }}

{{ __('invoice.invoice-number') }} {{ $invoice->invoice_number }}

{{ __('invoice.date') }}: {{ \Carbon\Carbon::parse($invoice->created_at)->format('d F Y') }}

{{-- Seller - Buyer --}}
{{ __('invoice.seller') }} {{ __('invoice.buyer') }}
@if ($system->title)

{{ $system->title }}

@endif @if ($system->address)

{{ __('invoice.address') }}: {{ $system->address }}

@endif

{{ __('invoice.code') }}: 12345

{{ __('invoice.vat') }}: Vat Code

@if ($system->phone)

{{ __('invoice.phone') }}: {{ $system->phone }}

@endif

{{ $invoice->customer_paket->user->full_name }}

@if ($invoice->customer_paket->full_customer_billing_address)

{{ __('invoice.address') }}: {{ $invoice->customer_paket->full_customer_billing_address }}

@endif @if ($invoice->customer_paket->customer_billing_address->phone)

{{ __('invoice.phone') }}: {{ $invoice->customer_paket->customer_billing_address->phone }}

@endif @if ($invoice->customer_paket_id)

{{ __('invoice.code') }}: {{ $invoice->customer_paket_id }}

@endif
{{-- Table --}} {{-- Items --}} @php $totalPaid = $invoice->payments->sum('amount'); $totalRefunded = $invoice->payments->sum('refunded_amount'); $netPaid = $totalPaid - $totalRefunded; $totalBill = ($invoice->amount - $invoice->discount) + $invoice->tax - $netPaid; @endphp {{-- Summary --}}
{{ __('billing.table.no') }} {{ __('invoice.description') }} {{ __('invoice.price') }} {{ __('invoice.discount') }} {{ __('invoice.tax') }} {{ __('invoice.amount-received') }} {{ __('invoice.sub_total') }}
1. {{ $invoice->customer_paket->paket->name }} - {{ \Carbon\Carbon::parse($invoice->start_periode)->format('F Y').' - '.\Carbon\Carbon::parse($invoice->end_periode)->format('F Y') }} @moneyIDR($invoice->amount) @moneyIDR($invoice->discount) @moneyIDR($invoice->tax) @moneyIDR($netPaid) @moneyIDR($totalBill)
{{ __('invoice.total_amount') }}: @moneyIDR($totalBill)

{{ __('invoice.notes') }}:

{{ __('invoice.amount_in_words') }}:

{{ __('invoice.pay_until') }}: {{ \Carbon\Carbon::parse($invoice->deadline)->format('d F Y') }}