@extends("admin/layouts.master") @section('title','Edit Coupon ') @section('body') {{ __('adminstaticword.Edit') }} {{ __('adminstaticword.Coupon') }}: {{ $coupan->code }} @csrf {{ method_field("PUT") }} {{ __('adminstaticword.CouponCode') }}: * {{ __('adminstaticword.DiscountType') }}: * distype == 'fix' ? "selected" : ""}} value="fix">{{ __('adminstaticword.FixAmount') }} distype == 'per' ? "selected" : ""}} value="per">% {{ __('adminstaticword.Percentage') }} {{ __('adminstaticword.Amount') }}: * {{ __('adminstaticword.Linkedto') }}: * link_by == 'course' ? "selected" : ""}} value="course">{{ __('adminstaticword.LinktoCourse') }} link_by == 'cart' ? "selected" : ""}} value="cart">{{ __('adminstaticword.LinktoCart') }} link_by == 'category' ? "selected" : ""}} value="category">{{ __('adminstaticword.LinktoCategory') }} {{ __('adminstaticword.SelectCourse') }}: * {{ __('adminstaticword.SelectanOption') }} @foreach(App\Course::where('status','1')->get() as $product) @if($product->type == 1) course_id == $product->id ? 'selected' : "" }} value="{{ $product->id }}">{{ $product['title'] }} @endif @endforeach {{ __('adminstaticword.SelectCategories') }}: * {{ __('adminstaticword.SelectanOption') }} @foreach(App\Categories::where('status','1')->get() as $category) category_id == $category->id ? 'selected' : "" }} value="{{ $category->id }}">{{ $category['title'] }} @endforeach {{ __('adminstaticword.MaxUsageLimit') }}: * {{ __('adminstaticword.MinAmount') }}: @php $currency = App\Currency::first(); @endphp {{ __('adminstaticword.ExpiryDate') }}: @endsection @section('scripts') @endsection