@extends('backEnd.master') @section('styles') @endsection @section('mainContent')
@csrf @method('POST')

{{__('marketing.update_flash_deal')}}

@error('title') {{ $message }} @enderror
@error('background_color') {{$message}} @enderror
@error('text_color') {{$message}} @enderror
@error('banner_image') {{$message}} @enderror
@error('date') {{$message}} @enderror
@error('products') {{$message}} @enderror

{{__('marketing.selected_product_list')}}

@foreach(@$flash_deal->products as $key => $product) @endforeach
{{__('common.product')}} {{__('common.price')}} {{__('common.discount')}} {{__('common.discount_type')}} {{__('common.delete')}}

{{substr(@$product->productAll->product->product_name, 0, 40)}}

@if (@$product->productAll->product->product_type == 1) {{single_price(@$product->productAll->skus->max('selling_price'))}} @else {{single_price(@$product->productAll->skus->min('selling_price'))}} - {{single_price(@$product->productAll->skus->max('selling_price'))}} @endif

@endsection @push('scripts') @endpush