@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('grocery_home_page_offer_item_button_url'); $all_icon_fields = !empty($all_icon_fields) ? unserialize($all_icon_fields,['class' => false] ) : ['#']; $offer_item_image = get_static_option('grocery_home_page_offer_item_image'); $offer_item_image = !empty($offer_item_image) ? unserialize($offer_item_image,['class' => false] ) : ['#']; @endphp @foreach($all_icon_fields as $index => $icon_field)
@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 550x300 pixel')}}
@endforeach
@include('backend.partials.media-upload.media-upload-markup') @endsection @section('script') @include('backend.partials.media-upload.media-js') @endsection