@extends('admin.layout') @section('content') Add Product Dashboard Promocode promocode List Add Product @csrf Code Name @if ($errors->has('code')) {{ $errors->first('code') }} @endif Type * Select discount Type Flat 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 All Courses 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 Single Times 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