{{-- Table layout for better PDF support --}} {{-- Left side: date and time --}} {{-- Center: report title --}} {{-- Right side: company info --}}

Time : {{ now()->format('H:i:s') }}

Date : {{ now()->format('Y/m/d') }}

{{ $type ? $type . " Report" : 'Report Title' }}

{{ $company_name ?? 'اسم الشركة' }}

الرقم الضريبي {{ $company_vat ?? '000000000000000' }}

{{-- ✅ Show account number & branch section only if multiple companies --}} @if(isset($companies) && count($companies) > 0)
@foreach($companies as $company) @endforeach
Branch Name Account Number
{{ $company->name_company }} {{ $company->company_vat }}
@endif {{-- Date range --}} @if(!empty($date_from) && !empty($date_to))

Date From: {{ $date_from }} :: Date To: {{ $date_to }}

@endif