@extends('backend.app') @section('title', 'Footer CMS') @section('content')

Footer CMS

@if(session('success'))
{{ session('success') }}
@endif
@csrf

Footer Configuration

{{-- Header Image --}}
Header Image
@if(!empty($page->content['header_image']))
@endif
{{-- Footer Image --}}
Footer Image
@if(!empty($page->content['footer_image']))
@endif
{{-- Footer Bottom Logo --}}
Footer Bottom Logo
@if(!empty($page->content['footer_bottom_logo']))
@endif
{{-- Footer Text --}}
Footer Text
{{-- Social Links --}} @php $socialLinks = old('social_links', $page->content['social_links'] ?? []); // If it's the old associative format, convert it to the new format dynamically if (is_array($socialLinks) && !empty($socialLinks) && !isset($socialLinks[0])) { $temp = []; foreach ($socialLinks as $platform => $url) { if (!empty($url)) { $temp[] = [ 'platform' => ucfirst($platform), 'icon' => 'fab fa-' . $platform, 'url' => $url ]; } } $socialLinks = $temp; } @endphp
Social Media Links
@endsection @push('script') @endpush