@extends("admin/layouts.master") @section('title', 'Edit Coupon ') @section('body') @php $currency = App\Currency::first(); @endphp {{ __('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') }} link_by == 'bundle' ? 'selected' : '' }} value="bundle"> {{ __('adminstaticword.LinktoBundle') }} {{ __('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'] }} - {{ $product->discount_price }}{{ $currency->currency }} @endif @endforeach {{ __('adminstaticword.SelectBundle') }}: * {{ __('adminstaticword.SelectanOption') }} @foreach (App\BundleCourse::where('status', '1')->get() as $product) @if ($product->type == 1) bundle_id == $product->id ? 'selected' : '' }} value="{{ $product->id }}">{{ $product['title'] }} @isset($product->billing_interval) - {{ $product->discount_price }} {{ $currency->currency }} / {{ $product->billing_interval }} @endisset() @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') }}: {{ __('Coupon Code display on front') }}: show_to_users=="1" ? 'checked' : '' }}> (If Choose Yes then Coupon Code shows to all users) @endsection @section('scripts') @endsection