@extends('apex-layouts.main') @section("title",($model->exists)?"$model->title- {$model->id}" :"Add A New Coupon") @section('header-right')
@if($model->exists)
@endif @endsection @section('content')
@if ($model->exists) @method('PUT') @endif @csrf
Coupons Info
Title
@if ($errors->has('title'))
{{ $errors->first('title') }}
@endif
code
@if ($errors->has('code'))
{{ $errors->first('code') }}
@endif
startOn
@if ($errors->has('startOn'))
{{ $errors->first('startOn') }}
@endif
expiredOn
@if ($errors->has('expiredOn'))
{{ $errors->first('expiredOn') }}
@endif
usesPerCoupon
@if ($errors->has('usesPerCoupon'))
{{ $errors->first('usesPerCoupon') }}
@endif
timesUsed
@if ($errors->has('timesUsed'))
{{ $errors->first('timesUsed') }}
@endif
discountType