{{___('Invoice')}} : {{config('settings.invoice_nr_prefix') ?? 'INV-'}}{{$transaction->id}}
{{___('Date')}}: {{ date_formating($transaction->created_at) }}

{{___('Invoice')}}

{{___('Supplier')}}

@if(!empty(config('settings.invoice_admin_name'))) {{___('Name')}} {{config('settings.invoice_admin_name')}}
@endif @if(!empty(config('settings.invoice_admin_address'))) {{___('Address')}} {{config('settings.invoice_admin_address')}}
@endif @if(!empty(config('settings.invoice_admin_city'))) {{___('City')}} {{config('settings.invoice_admin_city')}}
@endif @if(!empty(config('settings.invoice_admin_state'))) {{___('State')}} {{config('settings.invoice_admin_state')}}
@endif @if(!empty(config('settings.invoice_admin_zipcode'))) {{___('Postal Code')}} {{config('settings.invoice_admin_zipcode')}}
@endif @if(!empty(config('settings.invoice_admin_country'))) {{___('Country')}} {{config('settings.invoice_admin_country')}}
@endif @if(!empty(config('settings.invoice_admin_tax_type')) && !empty(config('settings.invoice_admin_tax_id'))) {{config('settings.invoice_admin_tax_type')}} {{config('settings.invoice_admin_tax_id')}}
@endif

{{___('Customer')}}

@if(!empty($transaction->billing->name)) {{___('Name')}} {{ $transaction->billing->name }}
@endif @if(!empty($transaction->billing->address)) {{___('Address')}} {{ $transaction->billing->address }}
@endif @if(!empty($transaction->billing->city)) {{___('City')}} {{ $transaction->billing->city }}
@endif @if(!empty($transaction->billing->state)) {{___('State')}} {{ $transaction->billing->state }}
@endif @if(!empty($transaction->billing->zip)) {{___('Postal Code')}} {{ $transaction->billing->zip }}
@endif @if(!empty($transaction->billing->country)) {{___('Country')}} {{ get_country_name($transaction->billing->country) }}
@endif @if(@$transaction->billing->type == 'business' && !empty($transaction->billing->tax_id)) @if($settings->invoice_admin_tax_type) {{ $settings->invoice_admin_tax_type }} @else {{ ___("Tax ID") }} @endif {{ $transaction->billing->tax_id }}
@endif

@if ($transaction->coupon) @php $discount = ($transaction->base_amount * $transaction->coupon->percentage) / 100; @endphp @endif @foreach($applied_taxes as $tax) @endforeach
{{___('Item')}} {{___('Amount')}}
{{ $title }} {{ price_symbol_format($transaction->base_amount ?? $transaction->amount) }}
{{___('Discount')}} ({{ $transaction->coupon->percentage }}%)
{{___('Coupon') }}: {{$transaction->coupon->code}}
- {{ price_symbol_format($discount) }}
{{___('Subtotal')}} {{ price_symbol_format($transaction->base_amount - $discount) }}
{{$tax->name}} ({{$tax->type == 'inclusive' ? ___("Inclusive") : ___("Exclusive")}})
{{$tax->description}}
{{$tax->type != 'inclusive' ? '+' : ''}} {{ price_symbol_format($tax['value']) }}
{{___('Total')}} @if ($transaction->transaction_gatway)
{{___('Paid via')}} {{ ucfirst($transaction->transaction_gatway) }} @endif
{{ price_symbol_format($transaction->amount) }}