@if(optional($form)->id) {{ __('common.edit') }} - {{ optional($form)->name }} @else {{ __('common.create') }} @endif
reply_all
{{ __('common.go_back') }}
@csrf
@if(optional($form)->id) @method('PUT') @else @method('POST') @endif
{{ __('common.flash-sale') }}
{{__('auth.register.labels.name')}}
@include('includes.invalid', ['field'=> 'title'])
{{__('common.start_date')}}
@include('includes.invalid', ['field'=> 'start_date'])
{{__('common.end_date')}}
@include('includes.invalid', ['field'=> 'end_date'])
{{__('common.status')}}
@foreach($options['status'] as $key => $name)
status??"") === $name ? 'selected' : '' }}>{{ __($name) }}
@endforeach
@include('includes.invalid', ['field'=> 'status'])
{{__('common.discount')}}
@include('includes.invalid', ['field'=> 'discount'])
{{--
{{__('common.total_quantity')}}
@include('includes.invalid', ['field'=> 'total_quantity'])
--}}
id
Product Name
{{--
Total qty
Discount
--}}
Action
@forelse($form->flashsale as $list) @php $pp = \App\Models\Product::find($list->product_id); @endphp
{{ $list->id }}
@if(isset($pp->product_name))
{{ $pp->product_name ?? 'No Data'}}
@else
No Data
@endif {{--
{{ $list->total_quantity ?? 0}}
{{ $list->discount ?? 0}}
--}}
Delete
@empty
NO Data
NO Data
{{--
NO Data
NO Data
--}}
NO Data
@endforelse
{{-- --}}
@push('body.end') @endpush