@extends('backend.layouts.app') @section('content')

Edit Coupon

@foreach($editCoupon as $editCoupons)
{{ csrf_field() }}
@if ($errors->has('coupon_name')) {{ $errors->first('coupon_name') }} @endif
@if ($errors->has('coupon_code')) {{ $errors->first('coupon_code') }} @endif

@if($editCoupons->coupon_one_time == "1")   One Time Use @else   One Time Use @endif

@if($editCoupons->coupon_all_programs == "1")    @elseif($editCoupons->coupon_all_programs == "0")    @endif @if($editCoupons->coupon_eligible == "NULL") @else
@if ($errors->has('coupon_eligible_program[]')) {{ $errors->first('coupon_eligible_program[]') }} @endif @endif
@if($editCoupons->coupon_amount == NULL) Fixed    Percentage @else($editCoupons->coupon_percent == NULL) Fixed    Percentage @endif
 
@if ($errors->has('coupon_amount')) {{ $errors->first('coupon_amount') }} @endif @if ($errors->has('coupon_percent')) {{ $errors->first('coupon_percent') }} @endif
 
@if ($errors->has('start_date')) {{ $errors->first('start_date') }} @endif
@if ($errors->has('end_date')) {{ $errors->first('end_date') }} @endif
          

@endforeach
@stop