@extends('backend.admin-master') @section('site-title') {{__('Offer Area')}} @endsection @section('style') @endsection @section('content')

{{__('Offer Settings')}}

@csrf @php $all_icon_fields = get_static_option('home_page_15_offer_item_button_url'); $all_icon_fields = !empty($all_icon_fields) ? unserialize($all_icon_fields) : ['#']; @endphp @foreach($all_icon_fields as $index => $icon_field)
@foreach($all_languages as $key => $lang) @php $offer_item_title = get_static_option('home_page_15_'.$lang->slug.'_offer_item_title'); $offer_item_title = !empty($offer_item_title) ? unserialize($offer_item_title,['class' => false]) : ['Fresh Lichi']; $offer_item_short_description = get_static_option('home_page_15_'.$lang->slug.'_offer_item_short_description'); $offer_item_short_description = !empty($offer_item_short_description) ? unserialize($offer_item_short_description,['class' => false]) : []; $offer_item_button_text = get_static_option('home_page_15_'.$lang->slug.'_offer_item_button_text'); $offer_item_button_text = !empty($offer_item_button_text) ? unserialize($offer_item_button_text,['class' => false]) : []; $offer_item_image = get_static_option('home_page_15_offer_item_image'); $offer_item_image = !empty($offer_item_image) ? unserialize($offer_item_image,['class' => false]) : []; @endphp
@endforeach
@php $signature_image_upload_btn_label = 'Upload Image'; @endphp
@php $image_id = $offer_item_image[$index] ?? ''; $signature_img = get_attachment_image_by_id($image_id,null,false); @endphp @if (!empty($signature_img))
@php $signature_image_upload_btn_label = 'Change Image'; @endphp @endif
{{__('recommended image size is 250x200 pixel')}}
@endforeach
@include('backend.partials.media-upload.media-upload-markup') @endsection @section('script') @include('backend.partials.media-upload.media-js') @endsection