@php $footerInfo = \App\Models\FooterInfo::first(); @endphp @if($footerInfo)
@if($footerInfo->logo && file_exists(public_path('uploads/'.$footerInfo->logo))) Logo @endif
@if($footerInfo->description)

{{ $footerInfo->description }}

@endif @if($footerInfo->brochure_link) Brochure @endif
@else

Footer info not set yet. Please add from admin panel.

@endif
@php $footerLinks = \App\Models\FooterLink::orderBy('order')->get(); @endphp
Quick links
@foreach($footerLinks as $link) {{ $link->title }} @endforeach
@php $footerNews = \App\Models\FooterNews::latest()->get(); @endphp
Latest News
@foreach($footerNews as $news)

@if($news->link) {{ $news->title }} @else {{ $news->title }}
{{ $news->description }} @endif

@endforeach
@php $socialLinks = \App\Models\FooterSocialLink::orderBy('order')->get(); @endphp
Follow us on social accounts
@foreach($socialLinks as $social) @if($social->icon_image) {{ $social->platform }} @endif @endforeach