{{-- Header للتقارير PDF - متوافق مع mPDF --}} @props(['title']) @php $settings = \Joaopaulolndev\FilamentGeneralSettings\Models\GeneralSetting::first(); @endphp
@if($settings && $settings->site_logo) {{ $settings->company_name ?? $settings->site_name }} @endif

{{ $settings?->company_name ?? $settings?->site_name ?? config('app.name') }}

@if($settings) @php $companyAddress = $settings->company_address ?? null; $companyPhone = $settings->company_phone ?? null; $companyEmail = $settings->company_email ?? null; $companyFax = $settings->company_fax ?? null; $taxNumber = $settings->tax_number ?? null; $commercialRegister = $settings->commercial_register ?? null; @endphp @if($companyAddress || $companyPhone || $companyEmail)
@if($companyAddress) العنوان: {{ $companyAddress }} @endif
@if($companyPhone) هاتف: {{ $companyPhone }} @endif @if($companyEmail) بريد: {{ $companyEmail }} @endif @if($companyFax) فاكس: {{ $companyFax }} @endif
@endif @if($taxNumber || $commercialRegister)
@if($taxNumber) الرقم الضريبي: {{ $taxNumber }} @endif @if($commercialRegister) السجل التجاري: {{ $commercialRegister }} @endif
@endif @endif
@if($title)

{{ $title }}

@endif