@php $footerContent = App\Footer::first(); $copyrightText = isset($Copyright) ? $Copyright : ''; $newsletterEnabled = App\Widgetsetting::where('name', 'newsletter')->first(); @endphp {{-- ============= QUICK BENEFITS BAR ============= --}} @if(!empty($footer3_widget) && ($footer3_widget->shiping || $footer3_widget->mobile || $footer3_widget->return || $footer3_widget->money))
@if($footer3_widget->shiping)
{{ $footer3_widget->shiping }}
{{ __('On all orders') }}
@endif @if($footer3_widget->mobile)
{{ $footer3_widget->mobile }}
{{ __('Always here for you') }}
@endif @if($footer3_widget->return)
{{ $footer3_widget->return }}
{{ __('Hassle-free policy') }}
@endif @if($footer3_widget->money)
{{ $footer3_widget->money }}
{{ __('100% protected checkout') }}
@endif
@endif {{-- ============= BRANDS STRIP ============= --}} @if(isset($brands) && count($brands) > 0)

{{ __('Top brands you love') }}

{{ __('Authentic products from brands you trust') }}

@foreach($brands as $brand) @php $brandCatId = is_array($brand->category_id) && count($brand->category_id) ? $brand->category_id[0] : 0; $brandUrl = url('shop?category=' . $brandCatId . '&start=10.00&end=100000.00&brands=' . $brand->id); @endphp
@php // Brand assets are saved under either /images/brand/ (singular, current seeder) // or /images/brands/ (plural, legacy). Try both. $brandImg = null; if ($brand->image) { if (file_exists(public_path('images/brand/' . $brand->image))) $brandImg = url('images/brand/' . $brand->image); elseif (file_exists(public_path('images/brands/' . $brand->image))) $brandImg = url('images/brands/' . $brand->image); } @endphp @if($brandImg) {{ $brand->name }} @else {{ $brand->name }} @endif
{{ $brand->name }}
@endforeach
@endif {{-- ============= NEWSLETTER ============= --}} @if(isset($newsletterEnabled) && ($newsletterEnabled->home == '1' || $newsletterEnabled->shop == '1'))
{{ __('Newsletter') }}

{{ __('staticwords.newsletterheading') ?? 'Get exclusive deals & updates' }}

{{ __('staticwords.newsletterwords') ?? 'Subscribe for weekly deals and early access to launches.' }}

@csrf
@endif {{-- ============= MAIN FOOTER ============= --}}