@extends('layouts.admin.app') @section('title', translate('messages.landing_page_settings')) @section('content') @php use App\CentralLogics\Helpers; @endphp
@include('admin-views.landing_page.top_menu.react_landing_menu')

{{ translate('Show_on_Website') }}

{{ translate('If you turn of the availability status, this section will not show in the website') }}

{{ translate('Status') }}

{{ translate('Gallery Section') }}

{{ translate(' Showcase high-quality food images to attract users visually.') }}

@csrf
0/50
0/100
@if ($language) @forelse($language as $lang)
Warning: Undefined variable $gallery_section_title in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/landing_page/react/gallery.blade.php on line 150

Warning: Undefined variable $gallery_section_sub_title in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/landing_page/react/gallery.blade.php on line 158
0/50
0/100
@empty @endforelse @endif

{{ translate('Add Image') }}

{{--

{{ translate('Here you setup your all business information.') }}

--}}
@csrf
@php function ordinalSuffix($number) { if (!in_array($number % 100, [11, 12, 13])) { switch ($number % 10) { case 1: return $number . 'st'; case 2: return $number . 'nd'; case 3: return $number . 'rd'; } } return $number . 'th'; } @endphp @for ($i = 1; $i <= 6; $i++) @php $imageVar = "gallery_image_{$i}"; $image = $$imageVar ?? null; $imageUrl = $image?->value ? Helpers::get_full_url( 'react_gallery', $image->value, $image->storage[0]->value ?? 'public', 'upload_1_1', ) : ''; $label = translate(ordinalSuffix($i) . ' ' . 'Image'); @endphp

{{ $label }}

{{ translate('Upload Image') }}
@include('admin-views.partials._image-uploader', [ 'id' => 'image-input', 'name' => 'gallery_image_'.$i, 'ratio' => '1:1', 'isRequired' => false, 'existingImage' => $imageUrl, 'imageExtension' => IMAGE_EXTENSION, 'imageFormat' => IMAGE_FORMAT, 'maxSize' => MAX_FILE_SIZE, ])

@endfor
@include('admin-views.landing_page.react.partials.gallery_guideline') @endsection @push('script_2') @endpush