{{ csrf_field() }}

@if (!empty($product))
List Discount
@foreach($product as $value) @if (!empty($value['discount'])) @foreach ($value['discount'] as $key=> $you) @if (empty($you['discount_percentage'])) @else @endif @endforeach @endif @endforeach
Discount Value Date Start Date End Time Start Time End Day Action
Rp {{ $you['discount_nominal'] }} % {{ $you['discount_percentage'] }} {{ date('Y-m-d', strtotime($you['discount_start'])) }} {{ date('Y-m-d', strtotime($you['discount_end'])) }} {{ date('H:i', strtotime($you['discount_time_start'])) }} {{ date('H:i', strtotime($you['discount_time_end'])) }} {{ $you['discount_days'] }}
@endif