@extends('admin.layouts.master-soyuz') @section('title', __('Edit Hot Deal | ')) @section('body') @component('admin.component.breadcumb', ['thirdactive' => 'active']) @slot('heading'){{ __('Hot Deals') }}@endslot @slot('menu1'){{ __('Hot Deals') }}@endslot @slot('menu2'){{ __('Edit') }}@endslot @slot('button')
{{ __('Back') }}
@endslot @endcomponent @php $linkBy = $hotdeal->simple_pro_id ? 'sp' : 'vp'; // datetime-local needs the "Y-m-d\TH:i" format. Coerce zero/invalid dates to a sane fallback. $startTs = strtotime($hotdeal->start); $endTs = strtotime($hotdeal->end); $startVal = $startTs && $startTs > 0 ? date('Y-m-d\TH:i', $startTs) : date('Y-m-d\TH:i'); $endVal = $endTs && $endTs > 0 ? date('Y-m-d\TH:i', $endTs) : date('Y-m-d\TH:i', strtotime('+30 days')); @endphp
@if ($errors->any()) @endif @if(session('success') || session('updated')) @endif
{{ __('Edit Hot Deal') }}
@csrf @method('PUT')
{{ __('When the deal becomes active') }}
{{ __('Deal automatically ends at this moment') }}

{{ __('Toggle to activate or pause this hot deal') }}
{{ __('Cancel') }}
{{ __('How Hot Deals Work') }}
  • • {{ __('A hot deal highlights a single product with start/end dates.') }}
  • • {{ __('Active deals appear in the storefront homepage Hot Deals rail.') }}
  • • {{ __('Deals automatically stop showing once the expiry date passes.') }}
  • • {{ __('Status off keeps the row but hides it on the storefront.') }}
  • • {{ __('For multi-product campaigns with one banner, use Flash Sales instead.') }}
@endsection @push('script') @endpush