@extends('admin.layout') @section('content') Edit Promocode Dashboard Promocode promocode List Edit Product @csrf Code Name @if ($errors->has('code')) {{ $errors->first('code') }} @endif Type * Select discount Type discount_type=='flat')?"selected":""}}>Flat discount_type=='percentage')?"selected":""}}>Pecentage @if ($errors->has('discount_type')) {{ $errors->first('discount_type') }} @endif Amount* @if ($errors->has('amount')) {{ $errors->first('amount') }} @endif promo For * Select Promo For promo_for == 'all_courses')?"selected":""}}>All Courses promo_for == 'selected_courses')?"selected":""}}>Selected Courses @if ($errors->has('promo_for')) {{ $errors->first('promo_for') }} @endif Course* Select Promo For @if(!empty($products)) @foreach($products as $product) {{$product->name}} @endforeach @endif promo_type promo_type == '1')?"selected":""}}>Single Times promo_type == '2')?"selected":""}}>Multiple Times @if ($errors->has('promo_type')) {{ $errors->first('promo_type') }} @endif Start Date @if ($errors->has('start_date')) {{ $errors->first('start_date') }} @endif End Date @if ($errors->has('end_date')) {{ $errors->first('end_date') }} @endif {{-- Submit --}} @endsection @push('footer-script') @endpush