@if($widget['title'] !== '')

{{ $widget['title'] }}

@endif @switch($widget['type']) @case('brand') @if($widget['show_logo'] === 'yes') @include('themes.prospera.partials.brand', ['location' => 'footer']) @endif @if($widget['show_company_name'] === 'yes')

{{ $brand }}

@endif @if($widget['show_description'] === 'yes')

{{ $identity['description'] ?: 'Your gateway to global financial markets. Explore investment solutions across stocks, ETFs, bonds, and more.' }}

@endif @break @case('menu') @if($widget['menu_id'] === 0 && isset($groups[$widget['id']]))
    @foreach($groups[$widget['id']] as $label => $href)
  • {{ $label }}
  • @endforeach
@elseif(!empty($widget['menu_items'])) @include('themes.prospera.partials.footer-menu', ['items' => $widget['menu_items'], 'nested' => $widget['show_nested'] === 'yes']) @endif @break @case('contact')
    @if($widget['show_address'] === 'yes' && $identity['address'])
  • {{ $identity['address'] }}
  • @endif @if($widget['show_phone'] === 'yes' && $identity['phone'])
  • {{ $identity['phone'] }}
  • @endif @if($widget['show_email'] === 'yes' && $identity['email'])
  • {{ $identity['email'] }}
  • @endif @if($widget['show_hours'] === 'yes' && $identity['hours'])
  • {{ $identity['hours'] }}
  • @endif
@break @case('text') @if($widget['content'] !== '')

{{ $widget['content'] }}

@endif @break @case('image') @if(!empty($widget['image_url']))
@if($widget['link_url'])@endif {{ $widget['alt'] }} @if($widget['link_url'])@endif
@endif @break @case('social') @php $networks = [ 'facebook' => ['Facebook', "\u{f39e}"], 'instagram' => ['Instagram', "\u{f16d}"], 'telegram' => ['Telegram', "\u{f3fe}"], 'whatsapp' => ['WhatsApp', "\u{f232}"], 'youtube' => ['YouTube', "\u{f167}"], 'linkedin' => ['LinkedIn', "\u{f0e1}"], ]; @endphp
    @foreach($networks as $key => [$name, $icon]) @php($socialLink = \App\Support\BrandLogo::toUrl(data_get($cms, 'social.'.$key))) @if($socialLink)
  • @if($widget['style'] === 'icons'){{ $icon }}@else{{ $name }}@endif
  • @endif @endforeach
@break @case('mini_contact')
@csrf @if($widget['description'] !== '')

{{ $widget['description'] }}

@endif @if($widget['show_name'] === 'yes') @else @endif @if($widget['show_phone'] === 'yes')@endif @if($widget['show_subject'] === 'yes')@endif @break @endswitch