@extends('layout.admin') @section('styles') @endsection @section('content')

General Setting / Edit

{{csrf_field()}}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@php $txt = json_decode($setting['contents'], true); @endphp @switch($setting->id) @case(3)
@if (!empty($txt['main_logo'])) @else @endif
@if (!empty($txt['dark_logo'])) @else @endif
@if (!empty($txt['favicon'])) Favicon @else @endif
@if (!empty($txt['footer_logo'])) @else @endif
@break @case(5)
@break @case(6)
@break @case(11)
@break @case(12)
@break @case(13)

Reviews Portal Logos and Links

@php $logoIndex = 1; @endphp @while(!empty($txt["upload_logo_{$logoIndex}"]))
Logo Preview
@php $logoIndex++; @endphp @endwhile
Logo Preview

Popular Cities

@php $selectedCities = []; if (isset($txt['choose_popular_cities'])) { $selectedCities = is_array($txt['choose_popular_cities']) ? $txt['choose_popular_cities'] : explode(',', $txt['choose_popular_cities']); } @endphp

Holiday Country

Business Slogans with Icons

@php $i = 1; @endphp @while(!empty($txt["business_slogan_icon_$i"]) || !empty($txt["business_slogan_input_$i"]))
@php $i++; @endphp @endwhile

Continents Slider on Home Page

@break @case(14)

Footer Link 1

Footer Link 2

Footer Contacts

Footer Copyright Text

Footer Below Copyright Text

Footer Cookies Notice

@break @case(15)
@php $j = 1; @endphp @while(!empty($txt["social_media_icons_$j"])) @php $slogan = $txt["social_media_icons_input_$j"] ?? ''; $link = $txt["social_media_icons_link_input_$j"] ?? ''; $icon = $txt["social_media_icons_$j"] ?? 'assets/svgs/dummy.svg'; $alt = $txt["social_media_icons_alt_input_$j"] ?? ''; // Auto-migration: if link is empty and slogan looks like a link if (empty($link) && (strpos($slogan, 'http') === 0 || strpos($slogan, 'www') === 0)) { $link = $slogan; $slogan = ''; } // Another case: if icon path looks like a URL (from seeder pattern) if (strpos($icon, 'http') === 0 || strpos($icon, 'www') === 0) { if (empty($link)) $link = $icon; $icon = 'assets/svgs/dummy.svg'; } @endphp
@php $j++; @endphp @endwhile
@break @case(16)
@break @case(18)
@break @case(19)
@endsection @section('script') @endsection