@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')

Coupons Info

@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('code')) {{ $errors->first('code') }} @endif
@if ($errors->has('startOn')) {{ $errors->first('startOn') }} @endif
@if ($errors->has('expiredOn')) {{ $errors->first('expiredOn') }} @endif
@if ($errors->has('usesPerCoupon')) {{ $errors->first('usesPerCoupon') }} @endif
@if ($errors->has('timesUsed')) {{ $errors->first('timesUsed') }} @endif