<commit_before>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')
    @if ($accessory->id)
        @lang('admin/accessories/general.update') ::
    @else
        @lang('admin/accessories/general.create') ::
    @endif
@parent
@stop

{{-- Page content --}}
@section('content')


<div class="row header">
    <div class="col-md-12">
        <a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="fa fa-circle-arrow-left icon-white"></i> @lang('general.back')</a>
        <h3>
        @if ($accessory->id)
            @lang('admin/accessories/general.update')
        @else
            @lang('admin/accessories/general.create')
        @endif
</h3>
    </div>
</div>

<div class="user-profile">
<div class="row profile">
<div class="col-md-9 bio">

    <form class="form-horizontal" method="post" action="" autocomplete="off">
    <!-- CSRF Token -->
    <input type="hidden" name="_token" value="{{ csrf_token() }}" />

    <!-- Name -->
    <div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
        <div class="col-md-3">
        	{{ Form::label('name', Lang::get('admin/accessories/general.accessory_name')) }}
        	<i class='icon-asterisk'></i>
        </div>                        
        <div class="col-md-9">
            <input class="form-control" type="text" name="name" id="name" value="{{{ Input::old('name', $accessory->name) }}}" />
            {{ $errors->first('name', '<span class="alert-msg"><i class="fa fa-remove-sign"></i> :message</span>') }}
        </div>
    </div>
            						
	<!-- Category -->
    <div class="form-group {{ $errors->has('category_id') ? ' has-error' : '' }}">
	     <div class="col-md-3">
		     {{ Form::label('category_id', Lang::get('admin/accessories/general.accessory_category')) }}
			 <i class='icon-asterisk'></i>
         </div>   
            <div class="col-md-7">
                {{ Form::select('category_id', $category_list , Input::old('category_id', $accessory->category_id), array('class'=>'select2', 'style'=>'width:350px')) }}
                {{ $errors->first('category_id', '<span class="alert-msg"><i class="fa fa-remove-sign"></i> :message</span>') }}
            </div>
    </div>
            
    <!-- QTY -->
    <div class="form-group {{ $errors->has('qty') ? ' has-error' : '' }}">
        <div class="col-md-3">
        	{{ Form::label('qty', Lang::get('admin/accessories/general.qty')) }}
        	<i class='icon-asterisk'></i>
        </div>                        
        <div class="col-md-9">
	        <div class="col-md-2">
            <input class="form-control" type="text" name="qty" id="qty" value="{{{ Input::old('qty', $accessory->qty) }}}" />
            </div>
            {{ $errors->first('qty', '<span class="alert-msg"><i class="fa fa-remove-sign"></i> :message</span>') }}
        </div>
    </div>



	<hr>
    <!-- Form actions -->
    <div class="form-group">
   
        <div class="col-md-7 col-md-offset-3">
            <a class="btn btn-link" href="{{ URL::previous() }}">@lang('button.cancel')</a>
            <button type="submit" class="btn btn-success"><i class="fa fa-ok icon-white"></i> @lang('general.save')</button>
        </div>
    </div>
</form>
<br><br><br><br><br>
</div>

                    <!-- side address column -->
                    <div class="col-md-3 col-xs-12 address pull-right">
                        <br /><br />
                        <h6>@lang('admin/accessories/general.about_asset_accessories')</h6>
                        <p>@lang('admin/accessories/general.about_accessories') </p>

                    </div>
</div>
</div>

@if (Setting::getSettings()->default_eula_text!='')
<!-- Modal -->
<div class="modal fade" id="eulaModal" tabindex="-1" role="dialog" aria-labelledby="eulaModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <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="eulaModalLabel">@lang('admin/settings/general.default_eula_text')</h4>
      </div>
      <div class="modal-body">
        {{ Setting::getDefaultEula() }}
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">@lang('button.cancel')</button>
      </div>
    </div>
  </div>
</div>
@endif

@stop
<commit_msg>Fix language string for create accessory<commit_after>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')
    @if ($accessory->id)
        @lang('admin/accessories/general.update') ::
    @else
        @lang('admin/accessories/general.create') ::
    @endif
@parent
@stop

{{-- Page content --}}
@section('content')


<div class="row header">
    <div class="col-md-12">
        <a href="{{ URL::previous() }}" class="btn-flat gray pull-right"><i class="fa fa-circle-arrow-left icon-white"></i> @lang('general.back')</a>
        <h3>
        @if ($accessory->id)
            @lang('admin/accessories/general.update')
        @else
            @lang('admin/accessories/general.create')
        @endif
</h3>
    </div>
</div>

<div class="user-profile">
<div class="row profile">
<div class="col-md-9 bio">

    <form class="form-horizontal" method="post" action="" autocomplete="off">
    <!-- CSRF Token -->
    <input type="hidden" name="_token" value="{{ csrf_token() }}" />

    <!-- Name -->
    <div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
        <div class="col-md-3">
        	{{ Form::label('name', Lang::get('admin/accessories/general.accessory_name')) }}
        	<i class='icon-asterisk'></i>
        </div>                        
        <div class="col-md-9">
            <input class="form-control" type="text" name="name" id="name" value="{{{ Input::old('name', $accessory->name) }}}" />
            {{ $errors->first('name', '<span class="alert-msg"><i class="fa fa-remove-sign"></i> :message</span>') }}
        </div>
    </div>
            						
	<!-- Category -->
    <div class="form-group {{ $errors->has('category_id') ? ' has-error' : '' }}">
	     <div class="col-md-3">
		     {{ Form::label('category_id', Lang::get('admin/accessories/general.accessory_category')) }}
			 <i class='icon-asterisk'></i>
         </div>   
            <div class="col-md-7">
                {{ Form::select('category_id', $category_list , Input::old('category_id', $accessory->category_id), array('class'=>'select2', 'style'=>'width:350px')) }}
                {{ $errors->first('category_id', '<span class="alert-msg"><i class="fa fa-remove-sign"></i> :message</span>') }}
            </div>
    </div>
            
    <!-- QTY -->
    <div class="form-group {{ $errors->has('qty') ? ' has-error' : '' }}">
        <div class="col-md-3">
        	{{ Form::label('qty', Lang::get('admin/accessories/general.qty')) }}
        	<i class='icon-asterisk'></i>
        </div>                        
        <div class="col-md-9">
	        <div class="col-md-2">
            <input class="form-control" type="text" name="qty" id="qty" value="{{{ Input::old('qty', $accessory->qty) }}}" />
            </div>
            {{ $errors->first('qty', '<span class="alert-msg"><i class="fa fa-remove-sign"></i> :message</span>') }}
        </div>
    </div>



	<hr>
    <!-- Form actions -->
    <div class="form-group">
   
        <div class="col-md-7 col-md-offset-3">
            <a class="btn btn-link" href="{{ URL::previous() }}">@lang('button.cancel')</a>
            <button type="submit" class="btn btn-success"><i class="fa fa-ok icon-white"></i> @lang('general.save')</button>
        </div>
    </div>
</form>
<br><br><br>
</div>

    <!-- side address column -->
    <div class="col-md-3 col-xs-12 address pull-right">
        
        <h6>@lang('admin/accessories/general.about_accessories_title')</h6>
        <p>@lang('admin/accessories/general.about_accessories_text') </p>

    </div>
</div>
</div>



@stop

{'fraction_non_alphanumeric': 0.22918220233656475, 'fraction_numerical': 0.006089982600049714, 'mean_word_length': 2.5093763628434367, 'pattern_counts': {'":': 0, '<': 198, '<?xml version=': 0, '>': 225, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4322581', 'n_tokens_mistral': 2673, 'n_tokens_neox': 2614, 'n_words': 436}