@php $header = $headerSettings ?? null; @endphp
@if($header && $header->email) {{ $header->email }} @endif @if($header && $header->email && $header->phones && count($header->phones) > 0) | @endif @if($header && $header->phones && count($header->phones) > 0) @foreach($header->phones as $index => $phone) {{ $phone['number'] ?? $phone }} @if($index < count($header->phones) - 1) | @endif @endforeach @endif
{{-- Header Action Buttons --}} @if($header && $header->action_buttons && is_array($header->action_buttons)) @php // Filter out buttons with # in URL and sort by order $visibleButtons = collect($header->action_buttons) ->filter(function ($button) { return !str_starts_with($button['url'] ?? '', '#'); }) ->sortBy('order'); @endphp @foreach($visibleButtons as $button) {{ $button['label'] }} @endforeach @endif {{-- Social Media Links --}} @if($header && $header->facebook_url) @endif @if($header && $header->youtube_url) @endif @if($header && $header->twitter_url) @endif @if($header && $header->instagram_url) @endif @if($header && $header->linkedin_url) @endif {{-- Login Link --}} @php $hasSocialLinks = $header && ($header->facebook_url || $header->youtube_url || $header->twitter_url || $header->instagram_url || $header->linkedin_url); $hasButtons = $header && $header->action_buttons && is_array($header->action_buttons) && count($header->action_buttons) > 0; @endphp @if(($hasSocialLinks || $hasButtons) && (!$header || $header->show_login_link)) | @endif @if(!$header || $header->show_login_link) Login @endif

{{ $header->site_name ?? $settings['site_name'] ?? 'BARISHAL CANTONMENT PUBLIC SCHOOL & COLLEGE' }}

{{ $header->site_name_bangla ?? $settings['site_name_bangla'] ?? 'বরিশাল ক্যান্টনমেন্ট পাবলিক স্কুল ও কলেজ' }}

{{ $header->eiin ?? $settings['eiin'] ?? 'Barishal Cantonment, EIIN:136998' }}

{{-- Reserved for future use or can be removed --}}
{{-- News Ticker / Scrolling Bar --}} @if($header->show_notice_ticker ?? true)
@php $tickerNotices = \App\Models\Notice::where('published_at', '<=', now()) ->orderBy('published_at', 'desc') ->limit($header->notice_ticker_limit ?? 10) ->get(); @endphp @if(isset($tickerNotices) && $tickerNotices->count() > 0) @foreach($tickerNotices as $notice) {{ $notice->title }} @endforeach @else Welcome to Barishal Cantonment Public School & College website. Admission is going on for Session 2025. @endif
@endif