@include('includes.css_admin')

{{trans('admin.date')}}: {{Helper::formatDate($data->date)}}

{{trans('general.from')}}
@if ($settings->company) {{$settings->company}} @endif @if ($settings->address) {{$settings->address}} @endif @if ($settings->city || $settings->zip) {{$settings->city}} {{$settings->zip}} @endif @if ($settings->country) {{$settings->country}} @endif {{trans('auth.email')}}: {{$settings->email_admin}} @if ($settings->phone) {{__('general.phone')}}: {{$settings->phone}} @endif @if ($settings->vat) {{trans('general.vat')}}: {{$settings->vat}} @endif
{{trans('general.to')}}
@if (isset($data->user()->username)) {{$data->user()->name}} {{$data->user()->company != '' ? '- '.$data->user()->company : null }} @if ($data->user()->address) {{$data->user()->address}} @endif @if ($data->user()->city || $data->user()->zip) {{$data->user()->city}}, {{$data->user()->zip}} @endif @if (isset($data->user()->country()->country_name)) {{$data->user()->country()->country_name}} @endif {{trans('auth.email')}}: {{$data->user()->email}} @else {{ __('general.no_available') }} @endif
{{trans('general.invoice')}} #{{str_pad($data->id, 4, "0", STR_PAD_LEFT)}}
{{trans('general.payment_due')}} {{Helper::formatDate($data->date)}}
{{trans('general.qty')}} {{trans('general.description')}} {{trans('general.subtotal')}}
1 {{trans('general.add_funds')}} {{Helper::amountFormatDecimal($amount)}} {{ $settings->currency_code }}
@if ($percentageApplied) @endif @foreach($taxes as $tax) @endforeach
{{trans('general.subtotal')}}: {{Helper::amountFormatDecimal($amount)}} {{ $settings->currency_code }}
{{trans('general.transaction_fee')}}: {{ $percentageApplied }} {{Helper::amountFormatDecimal($transactionFee)}} {{ $settings->currency_code }}
{{ $tax->name }} {{ $tax->percentage }}%: {{Helper::amountFormatDecimal(Helper::calculatePercentage($amount, $tax->percentage))}} {{ $settings->currency_code }}
{{trans('general.total')}}: {{Helper::amountFormatDecimal($totalAmount)}} {{ $settings->currency_code }}