@php use App\Models\Tax; // Adjust the namespace and path according to your application's structure $customData = $invoice->getCustomData(); $estimate_invoice = $customData['estimate_invoice']; @endphp {{-- Header --}} @if($invoice->logo) logo @endif

{{ $general_settings['company_title'] }}

@if($company_info['companyAddress'])

{{ $company_info['companyAddress'] }}

@endif @php $addressParts = [ $company_info['companyCity'] ?? '', $company_info['companyState'] ?? '', $company_info['companyCountry'] ?? '', $company_info['companyZip'] ?? '', ]; $addressParts = array_filter($addressParts); // Remove empty values $city_state_country_zip = implode(', ', $addressParts); @endphp @if($city_state_country_zip)

{{ $city_state_country_zip }}

@endif @if($company_info['companyPhone'])

{{get_label('phone','Phone')}}: {{ $company_info['companyPhone'] }}

@endif @if($company_info['companyEmail'])

{{get_label('email','Email')}}: {{ $company_info['companyEmail'] }}

@endif @if($company_info['companyWebsite'])

{{get_label('website','Website')}}: {{ $company_info['companyWebsite'] }}

@endif @if($company_info['companyVatNumber'])

{{get_label('vat_number','VAT Number')}}: {{ $company_info['companyVatNumber'] }}

@endif

{{ $estimate_invoice->type == 'estimate' ? get_label('estimate', 'Estimate') : get_label('invoice', 'Invoice') }}

@if($invoice->status)

{{ $invoice->status }}

@endif