@php
    $businessName = $appSettings['business_name'] ?? 'SolarFlow';
    $logo = $appSettings['logo'] ?? null;
@endphp
<div class="report-head d-flex justify-content-between align-items-start gap-3">
    <div class="d-flex gap-3 align-items-start">
        @if($logo)<img src="/{{ $logo }}" alt="{{ $businessName }}" class="report-logo">@endif
        <div>
            <h5 class="mb-1">{{ $businessName }}</h5>
            <div class="text-muted small">
                {{ $appSettings['business_address'] ?? '' }}
                @if(!empty($appSettings['business_phone']))<br>{{ $appSettings['business_phone'] }}@endif
                @if(!empty($appSettings['business_email']))<br>{{ $appSettings['business_email'] }}@endif
                @if(!empty($appSettings['tax_number']))<br>{{ __('Tax / Registration No.') }}: {{ $appSettings['tax_number'] }}@endif
            </div>
        </div>
    </div>
    <div class="text-end">
        <h6 class="mb-1">{{ $title ?? __('Report') }}</h6>
        <small class="text-muted">{{ __('Printed') }}: {{ \App\Support\DualDate::format(now(), 'Y-m-d H:i') }}</small>
        @isset($period)<br><small class="text-muted">{{ $period }}</small>@endisset
    </div>
</div>
