@if($bill->bill_type == 'invoice') @include('pages.bill.components.elements.invoice.header-web') @endif @if($bill->bill_type == 'estimate') @include('pages.bill.components.elements.estimate.header-web') @endif @if($bill->bill_status == 'draft' && $bill->bill_publishing_type == 'scheduled') @if($bill->bill_publishing_scheduled_status == 'pending')
@lang('lang.scheduled_publishing_info') : {{ runtimeDate($bill->bill_publishing_scheduled_date) }}
@endif @if($bill->bill_publishing_scheduled_status == 'failed')
@lang('lang.scheduled_publishing_failed_info') : {{ runtimeDate($bill->bill_publishing_scheduled_date) }}
@endif @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

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

{{ $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') @include('pages.bill.components.elements.invoice.payments')
@endif @if($bill->bill_type == 'estimate')
@include('pages.bill.components.elements.estimate.dates')
@endif @include('pages.bill.components.elements.main-table') @if(config('visibility.bill_mode') == 'editing')
@include('pages.bill.components.misc.add-line-buttons')
@endif @include('pages.bill.components.elements.totals-table') @if(config('visibility.bill_mode') == 'editing') @include('pages.bill.components.elements.taxes-discounts') @endif @if(config('visibility.bill_mode') == 'viewing')
@if($bill->bill_type == 'invoice')

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

@else

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

@endif
{!! clean($bill->bill_terms) !!}
@if((auth()->check() && auth()->user()->is_client) || config('visibility.public_bill_viewing'))
@if($bill->bill_type == 'invoice') {{ cleanLang(__('lang.download')) }} @else {{ cleanLang(__('lang.download')) }} @endif @if($bill->bill_type == 'invoice' && $bill->invoice_balance > 0) @endif @if(in_array($bill->bill_status, ['new', 'revised'])) @endif
@endif
@include('pages.pay.buttons') @endif @if(config('visibility.bill_mode') == 'editing')
@if($bill->bill_type == 'invoice')

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

@else

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

@endif
@if($bill->bill_type == 'invoice') @lang('lang.exit_editing_mode') @else @lang('lang.exit_editing_mode') @lang('lang.save_changes') @endif
@endif
@if((auth()->check() && auth()->user()->is_team) && !config('visibility.public_bill_viewing')) @if(config('visibility.bill_mode') == 'viewing')

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

{!! clean($bill->bill_notes) !!}
@endif @if(config('visibility.bill_mode') == 'editing')

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

@endif @endif @if(config('visibility.bill_mode') == 'editing') @include('pages.bill.components.elements.logic') @endif
@if(config('visibility.bill_mode') == 'editing') @include('pages.bill.components.elements.line-plain') @include('pages.bill.components.elements.line-estimation-notes') @include('pages.bill.components.elements.line-time') @include('pages.bill.components.elements.line-dimensions') @include('pages.bill.components.modals.items') @include('pages.bill.components.modals.category-items') @include('pages.bill.components.modals.expenses') @include('pages.bill.components.timebilling.modal') @include('pages.bill.components.modals.bill-tasks') @endif