{{-- --}} {{-- --}} @foreach($coupons as $key=>$coupon) {{-- --}} {{-- --}} @endforeach
{{translate('messages.#')}} {{translate('messages.title')}} {{translate('messages.code')}} {{translate('messages.min')}} {{translate('messages.purchase')}} {{translate('messages.max')}} {{translate('messages.discount')}} {{translate('messages.discount')}} {{translate('messages.discount')}} {{translate('messages.type')}} {{translate('messages.start')}} {{translate('messages.date')}} {{translate('messages.expire')}} {{translate('messages.date')}}{{translate('messages.created_by')}}{{translate('messages.Customer_type')}}{{translate('messages.status')}} {{translate('messages.action')}}
{{$key+1}} {{Str::limit($coupon['title'],15,'...')}} {{$coupon['code']}} {{\App\CentralLogics\Helpers::format_currency($coupon['min_purchase'])}} {{\App\CentralLogics\Helpers::format_currency($coupon['max_discount'])}} {{$coupon['discount']}} {{$coupon['discount_type']}} {{$coupon['start_date']}} {{$coupon['expire_date']}} @if ($coupon['created_by'] == 'admin') {{translate('messages.admin')}} @else {{translate('messages.restaurant')}} @endif @if (in_array('all', json_decode($coupon->customer_id))) {{translate('messages.all')}} {{translate('messages.customers')}} @else {{translate('messages.Selected')}} {{translate('messages.customers')}} @endif
@csrf @method('delete')