Server IP : 108.163.255.210 / Your IP : 3.145.80.247 Web Server : Apache System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 User : ( 1172) PHP Version : 7.2.34 Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/unilinki/public_html/AlpaiAWS/resources/views/admin_old/ |
Upload File : |
@extends('admin.layout') @section('content') <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> {{ trans('labels.EditCoupons') }} <small>{{ trans('labels.EditCoupons') }}...</small> </h1> <ol class="breadcrumb"> <li><a href="{{ URL::to('admin/dashboard/this_month') }}"><i class="fa fa-dashboard"></i> {{ trans('labels.breadcrumb_dashboard') }}</a></li> <li><a href="{{ URL::to('admin/coupons')}}"><i class="fa fa-dashboard"></i>All Coupons</a></li> <li class="active">{{ trans('labels.EditCoupons') }}</li> </ol> </section> <!-- Main content --> <section class="content"> <!-- Info boxes --> <!-- /.row --> <div class="row"> <div class="col-md-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">{{ trans('labels.EditCoupons') }}</h3> </div> <!-- /.box-header --> <div class="box-body"> <div class="row"> <div class="col-xs-12"> @if (count($errors) > 0) @if($errors->any()) <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> {{$errors->first()}} </div> @endif @endif @if(Session::has('success')) <div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> {!! session('success') !!} </div> @endif </div> </div> <div class="row"> <div class="col-xs-12"> <div class="box box-info"><br> @if(count($result['message'])>0) <div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> {{ $result['message'] }} </div> @endif <!--<div class="box-header with-border"> <h3 class="box-title">Edit category</h3> </div>--> <!-- /.box-header --> <!-- form start --> <div class="box-body"> {!! Form::open(array('url' =>'admin/updatecoupons', 'method'=>'post', 'class' => 'form-horizontal form-validate', 'enctype'=>'multipart/form-data')) !!} {!! Form::hidden('id', $result['coupon'][0]->coupans_id)!!} <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Coupon') }} </label> <div class="col-sm-10 col-md-4"> {!! Form::text('code', $result['coupon'][0]->code, array('class'=>'form-control field-validate', 'id'=>'code'))!!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.AddCouponsTaxt') }}</span> <span class="help-block hidden">{{ trans('labels.AddCouponsTaxt') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.CouponDescription') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::textarea('description', $result['coupon'][0]->description, array('class'=>'form-control', 'rows'=>'5', 'id'=>'description'))!!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.CouponDescriptionText') }}</span> </div> </div> <!--<div class="box"> <div class="box-header"> <h3 class="box-title">{{ trans('labels.EditCoupons') }}</h3> </div> </div>--> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Discounttype') }} </label> <div class="col-sm-10 col-md-4"> <select name="discount_type" class='form-control'> <option value="fixed_cart" @if($result['coupon'][0]->discount_type == 'fixed_cart') selected @endif>Cart Discount</option> <option value="percent" @if($result['coupon'][0]->discount_type == 'percent') selected @endif>Cart % Discount</option> <option value="fixed_product" @if($result['coupon'][0]->discount_type == 'fixed_product') selected @endif>Product Discount</option> <option value="percent_product" @if($result['coupon'][0]->discount_type == 'percent_product') selected @endif>Product % Discount</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.DiscounttypeText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.CouponAmount') }} </label> <div class="col-sm-10 col-md-4"> {!! Form::text('amount', $result['coupon'][0]->amount, array('class'=>'form-control', 'id'=>'amount'))!!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.CouponAmountText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.AllowFreeShipping') }}</label> <div class="col-sm-10 col-md-4" style="padding-top: 7px;"> <label style="margin-bottom:0"> {!! Form::checkbox('free_shipping', 1, $result['coupon'][0]->free_shipping, ['class' => 'minimal']) !!} </label> {{ trans('labels.AllowFreeShippingText') }} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.CouponExpiryDate') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::text('expiry_date', date('m/d/Y', strtotime($result['coupon'][0]->expiry_date)), array('class'=>'form-control field-validate datepicker', 'id'=>'datepicker', 'readonly'=>'readonly'))!!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.CouponExpiryDateText') }}</span> <span class="help-block hidden">{{ trans('labels.CouponExpiryDateText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Minimumspend') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::text('minimum_amount', $result['coupon'][0]->minimum_amount, array('class'=>'form-control', 'placeholder'=>trans('labels.NoMinimum'), 'id'=>'minimum_amount'))!!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.MinimumspendText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.MaximumSpend') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::text('maximum_amount', $result['coupon'][0]->maximum_amount, array('class'=>'form-control', 'placeholder'=>trans('labels.NoMaximum'), 'id'=>'maximum_amount'))!!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.MaximumSpendText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.IndividualUseOnly') }}</label> <div class="col-sm-10 col-md-4" style="padding-top: 7px; line-height: 22px;"> <label style="margin-bottom: 0px;"> {!! Form::checkbox('individual_use', 1, $result['coupon'][0]->individual_use, ['class' => 'minimal']) !!} </label> {{ trans('labels.IndividualUseOnlyText') }} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ExcludeSaleItems') }}</label> <div class="col-sm-10 col-md-4" style="padding-top: 7px; line-height: 22px;"> <label style="margin-bottom: 0px;"> {!! Form::checkbox('exclude_sale_items', 1, $result['coupon'][0]->exclude_sale_items, ['class' => 'minimal']) !!} </label> {{ trans('labels.ExcludeSaleItemsText') }} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Products') }}</label> <div class="col-sm-10 col-md-4 couponProdcuts"> <select name="product_ids[]" multiple class="form-control select2"> @foreach($result['products'] as $products) <option value="{{ $products->products_id }}" @if(in_array($products->products_id, explode(',', $result['coupon'][0]->product_ids))) selected @endif>{{ $products->products_name }} {{ $products->products_model }}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.CouponProductsUsed') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ExcludeProducts') }}</label> <div class="col-sm-10 col-md-4 couponProdcuts"> <select name="exclude_product_ids[]" multiple class="form-control select2 "> @foreach($result['products'] as $products) <option value="{{ $products->products_id }}" @if(in_array($products->products_id, explode(',', $result['coupon'][0]->exclude_product_ids))) selected @endif>{{ $products->products_name }} {{ $products->products_model }}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.ExcludeProductsText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.IncludeCategories') }}</label> <div class="col-sm-10 col-md-4"> <select name="product_categories[]" multiple class="form-control select2"> @foreach($result['categories'] as $categories) <option value="{{ $categories->categories_id }}" @if(in_array($categories->categories_id, explode(',', $result['coupon'][0]->product_categories))) selected @endif>{{ $categories->categories_name }}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.IncludeCategoriesText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ExcludeCategories') }}</label> <div class="col-sm-10 col-md-4"> <select name="excluded_product_categories[]" multiple class="form-control select2"> @foreach($result['categories'] as $categories) <option value="{{ $categories->categories_id }}" @if(in_array($categories->categories_id, explode(',', $result['coupon'][0]->excluded_product_categories))) selected @endif >{{ $categories->categories_name }}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.ExcludeCategoriesText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.EmailRestrictions') }}</label> <div class="col-sm-10 col-md-4"> <select name="email_restrictions[]" multiple class="form-control select2"> @foreach($result['emails'] as $emails) <option value="{{ $emails->email }}" @if(in_array($emails->email, explode(',', $result['coupon'][0]->email_restrictions))) selected @endif >{{ $emails->email }}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.EmailRestrictionsText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.UsageLimitPerCoupon') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::number('usage_limit', $result['coupon'][0]->usage_limit, array('class'=>'form-control', 'placeholder'=>'Unlimited', 'id'=>'usage_limit'))!!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.UsageLimitPerCouponText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.UsageLimitPerUser') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::number('usage_limit_per_user', $result['coupon'][0]->usage_limit_per_user, array('class'=>'form-control', 'placeholder'=>'Unlimited', 'id'=>'usage_limit_per_user'))!!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.UsageLimitPerUserText') }}</span> </div> </div> <!-- /.box-body --> <div class="box-footer text-center"> <button type="submit" class="btn btn-primary">{{ trans('labels.Update') }}</button> <a href="{{ URL::to('admin/coupons')}}" type="button" class="btn btn-default">{{ trans('labels.back') }}</a> </div> <!-- /.box-footer --> {!! Form::close() !!} </div> </div> </div> </div> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> <!-- Main row --> <!-- /.row --> </section> <!-- /.content --> </div> @endsection