@if(request('view') == 'preview') @else @endif @if(config('system.settings2_dompdf_fonts') == 'default' || config('system.settings2_dompdf_fonts') == '') @endif @if(config('system.settings2_dompdf_fonts') == 'dejavu') @endif @if(config('system.settings2_dompdf_fonts') == 'japanese') @endif @if(config('system.settings2_dompdf_fonts') == 'chinese-traditional') @endif @if(config('system.settings2_dompdf_fonts') == 'chinese-simplified') @endif @if(config('system.settings2_dompdf_fonts') == 'korean') @endif @if(request('view') == 'preview') @else @endif {!! customDPFCSS(config('system.settings2_bills_pdf_css')) !!}
@if($bill->bill_type =='invoice')

{{ cleanLang(__('lang.draft')) }}

{{ cleanLang(__('lang.due')) }}

{{ cleanLang(__('lang.overdue')) }}

{{ cleanLang(__('lang.paid')) }}

{{ cleanLang(__('lang.invoice')) }}

{{ $bill->formatted_bill_invoiceid }}
@endif @if($bill->bill_type =='estimate')

{{ cleanLang(__('lang.draft')) }}

{{ cleanLang(__('lang.new')) }}

{{ cleanLang(__('lang.accepted')) }}

{{ cleanLang(__('lang.declined')) }}

{{ cleanLang(__('lang.revised')) }}

{{ cleanLang(__('lang.expired')) }}

{{ cleanLang(__('lang.estimate')) }}

#{{ $bill->formatted_bill_estimateid }}
@endif
{{ config('system.settings_company_name') }}
@if(config('system.settings_company_address_line_1'))
{{ config('system.settings_company_address_line_1') }}
@endif @if(config('system.settings_company_city'))
{{ config('system.settings_company_city') }}
@endif @if(config('system.settings_company_state'))
{{ config('system.settings_company_state') }}
@endif @if(config('system.settings_company_zipcode'))
{{ config('system.settings_company_zipcode') }}
@endif @if(config('system.settings_company_country'))
{{ config('system.settings_company_country') }}
@endif @if(config('system.settings_company_customfield_1') != '')
{{ config('system.settings_company_customfield_1') }}
@endif @if(config('system.settings_company_customfield_2') != '')
{{ config('system.settings_company_customfield_2') }}
@endif @if(config('system.settings_company_customfield_3') != '')
{{ config('system.settings_company_customfield_3') }}
@endif @if(config('system.settings_company_customfield_4') != '')
{{ config('system.settings_company_customfield_4') }}
@endif
{{ $bill->client_company_name }}
@if($bill->client_billing_street)
{{ $bill->client_billing_street }}
@endif @if($bill->client_billing_city)
{{ $bill->client_billing_city }}
@endif @if($bill->client_billing_state)
{{ $bill->client_billing_state }}
@endif @if($bill->client_billing_zip)
{{ $bill->client_billing_zip }}
@endif @if($bill->client_billing_country)
{{ $bill->client_billing_country }}
@endif @foreach($customfields as $field) @if($field->customfields_show_invoice == 'yes' && $field->customfields_status == 'enabled') @php $key = $field->customfields_name; @endphp @php $customfield = $bill[$key] ?? ''; @endphp @if($customfield != '')
{{ $field->customfields_title }}: {{ runtimeCustomFieldsFormat($customfield, $field->customfields_datatype) }}
@endif @endif @endforeach
@if(config('system.settings_invoices_show_project_on_invoice') == 'yes' && $bill->project_title != '')
@lang('lang.project'): {{ $bill->project_title }}
@endif
@if($bill->bill_type == 'invoice') @include('pages.bill.components.elements.invoice.dates') @endif @if($bill->bill_type == 'estimate') @include('pages.bill.components.elements.estimate.dates') @endif @if($bill->bill_type == 'invoice') @include('pages.bill.components.elements.invoice.payments') @endif
@include('pages.bill.components.elements.main-table')
@include('pages.bill.components.elements.totals-table')
{{ cleanLang(__('lang.terms')) }}
{!! clean($bill->bill_terms) !!}