@extends('Layouts.adminLayout') @section('title') {{__('Edit Discount Code')}} @endsection @section('breadcrumb')
@endsection @section('content')
{{__('Edit Discount Code')}}
@CSRF
@if ($errors->has('title'))
{{ $errors->first('title') }}
@endif
@if ($errors->has('code'))
{{ $errors->first('code') }}
@endif
@if ($errors->has('count'))
{{ $errors->first('count') }}
@endif
@if ($errors->has('min_order_price'))
{{ $errors->first('min_order_price') }}
@endif
  • type_price==0)?'checked="checked"':''}} value="0" id="discountType"> {{__('Precent')}}
  • type_price==1)?'checked="checked"':''}} id="Pricecheckbox"> {{__('Price')}}
@if ($errors->has('discountType'))
{{ $errors->first('discountType') }}
@endif
type_price==1)?'style=display:none':''}} >
@if ($errors->has('percent'))
{{ $errors->first('percent') }}
@endif
type_price==1)?'style=display:none':''}} >
@if ($errors->has('max_price_percent'))
{{ $errors->first('max_price_percent') }}
@endif
type_price==0)?'style=display:none':''}} >
@if ($errors->has('price'))
{{ $errors->first('price') }}
@endif
  • to_date!=0)?'checked="checked"':''}} name="time" id="time" value="1"> @if ($errors->has('time'))
    {{ $errors->first('time') }}
    @endif
  • 0)?'checked="checked"':''}} name="product" id="product" value="1"> @if ($errors->has('product'))
    {{ $errors->first('product') }}
    @endif
  • 0)?'checked="checked"':''}} name="customer" id="customer" value="1"> @if ($errors->has('customer'))
    {{ $errors->first('customer') }}
    @endif
  • city_id!=null)?'checked="checked"':''}} onchange="changeforme(this,'citytype')" value="1"> @if ($errors->has('citytype'))
    {{ $errors->first('citytype') }}
    @endif
from_date==0)?'style=display:none':''}}>
@if ($errors->has('start_date'))
{{ $errors->first('start_date') }}
@endif
to_date==0)?'style=display:none':''}}>
@if ($errors->has('end_date'))
{{ $errors->first('end_date') }}
@endif
@if ($errors->has('products'))
{{ $errors->first('products') }}
@endif
@if ($errors->has('users'))
{{ $errors->first('users') }}
@endif
city_id==null)?'style=display:none':''}}>
@if ($errors->has('city'))
{{ $errors->first('city') }}
@endif
@endsection @section('script') @endsection