@extends('layouts.frontend') @section('content')
{{ trans('global.edit') }} {{ trans('cruds.coupon.title_singular') }}
id]) }}" enctype="multipart/form-data"> @method('PUT') @csrf
@if($errors->has('name'))
{{ $errors->first('name') }}
@endif {{ trans('cruds.coupon.fields.name_helper') }}
@if($errors->has('store'))
{{ $errors->first('store') }}
@endif {{ trans('cruds.coupon.fields.store_helper') }}
@foreach(App\Models\Coupon::TYPE_RADIO as $key => $label)
type) === (string) $key ? 'checked' : '' }} required>
@endforeach @if($errors->has('type'))
{{ $errors->first('type') }}
@endif {{ trans('cruds.coupon.fields.type_helper') }}
@foreach(App\Models\Coupon::TARGET_RADIO as $key => $label)
target) === (string) $key ? 'checked' : '' }} required>
@endforeach @if($errors->has('target'))
{{ $errors->first('target') }}
@endif {{ trans('cruds.coupon.fields.target_helper') }}
@foreach(App\Models\Coupon::PROMOTION_TYPE_RADIO as $key => $label)
promotion_type) === (string) $key ? 'checked' : '' }} required>
@endforeach @if($errors->has('promotion_type'))
{{ $errors->first('promotion_type') }}
@endif {{ trans('cruds.coupon.fields.promotion_type_helper') }}
@foreach(App\Models\Coupon::DISCOUNT_TYPE_RADIO as $key => $label)
discount_type) === (string) $key ? 'checked' : '' }} required>
@endforeach @if($errors->has('discount_type'))
{{ $errors->first('discount_type') }}
@endif {{ trans('cruds.coupon.fields.discount_type_helper') }}
@if($errors->has('amount'))
{{ $errors->first('amount') }}
@endif {{ trans('cruds.coupon.fields.amount_helper') }}
@if($errors->has('minimum_purchase'))
{{ $errors->first('minimum_purchase') }}
@endif {{ trans('cruds.coupon.fields.minimum_purchase_helper') }}
@foreach(App\Models\Coupon::BUYER_TYPE_RADIO as $key => $label)
buyer_type) === (string) $key ? 'checked' : '' }} required>
@endforeach @if($errors->has('buyer_type'))
{{ $errors->first('buyer_type') }}
@endif {{ trans('cruds.coupon.fields.buyer_type_helper') }}
@if($errors->has('quota'))
{{ $errors->first('quota') }}
@endif {{ trans('cruds.coupon.fields.quota_helper') }}
@if($errors->has('start_date'))
{{ $errors->first('start_date') }}
@endif {{ trans('cruds.coupon.fields.start_date_helper') }}
@if($errors->has('end_date'))
{{ $errors->first('end_date') }}
@endif {{ trans('cruds.coupon.fields.end_date_helper') }}
@endsection