@php $sectionNames = [ 'FOOTER_ABOUT' => 'About', 'FOOTER_POLICY' => 'Policies, Strategy & Action Plans', 'FOOTER_LIBRARY' => 'Library', 'FOOTER_LINK' => 'Related Link', ]; $footerLinks = \App\Models\Backend\ContentApplication::with(['translations' => function ($q) { $q->where('application_translation_main', 1); }]) ->where('application_status', 'ACTIVE') ->whereIn('application_cat', array_keys($sectionNames)) ->orderBy('application_cat') ->orderBy('application_sort') ->get() ->groupBy('application_cat'); @endphp
@foreach($sectionNames as $cat => $heading) @if($footerLinks->has($cat))

{{ $heading }}

    @foreach($footerLinks[$cat] as $link) @php $linkTrans = $link->translations->first(); @endphp
  • application_url, 'http') ? 'target="_blank"' : '' }}>{{ $linkTrans->application_translation_title ?? $link->application_url }}
  • @endforeach
@endif @endforeach
𝕏 f ◉ in
SECURITY POLICY | PRIVACY POLICY | WEB POLICY | DISCLAIMER

REDD PLUS Malaysia © {{ date('Y') }}. All Rights Reserved.