@extends('webprofile.backend.layouts.master')

@section('title')
  {{ $title }}
@stop

@section('breadcrumbs')
<li><a href="{{ url('dashboard') }}">@lang('label.dashboard')</a></li>
<li class="active">@lang('feature.edit_setting')</li>
@stop

@section('content')
{!! Form::model($data, ['route' => ['settings.update', $data->id], 'method'=>'patch', 'class'=>'form-horizontal']) !!}
{!! csrf_field() !!}
<!-- page start-->
<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><strong>@lang('label.edit')</strong> @lang('feature.setting')</h3>
            </div>
            <div class="panel-body">
                <div class="row">
                  <div class="col-md-12">
                        <div class="form-group @if ($errors->has('show_name_setting')) has-error @endif">
	                        <label class="col-md-2 control-label">@lang('label.name') @lang('feature.setting')</label>
	                        <div class="col-md-10">
	                          {{ Form::text('show_name_setting', old('show_name_setting'), array('class' => 'form-control')) }}
	                          @if ($errors->has('show_name_setting'))
	                          <label id="login-error" class="error" for="login">{{$errors->first('show_name_setting')}}</label>
	                          @endif
	                        </div>
	                    </div>
	                    <div class="form-group @if ($errors->has('name_setting')) has-error @endif">
	                        <label class="col-md-2 control-label">@lang('label.name') @lang('feature.setting')</label>
	                        <div class="col-md-10">
	                          {{ Form::text('name_setting', old('name_setting'), array('class' => 'form-control', 'readonly', 'style' => 'color: black')) }}
	                          @if ($errors->has('name_setting'))
	                          <label id="login-error" class="error" for="login">{{$errors->first('name_setting')}}</label>
	                          @endif
	                        </div>
	                    </div>
                        <div class="form-group @if ($errors->has('value_setting')) has-error @endif">
	                        <label class="col-md-2 control-label">@lang('label.value') @lang('feature.setting')</label>
	                        <div class="col-md-10">
	                          {{ Form::text('value_setting', old('value_setting'), array('class' => 'form-control')) }}
	                          @if ($errors->has('value_setting'))
	                          <label id="login-error" class="error" for="login">{{$errors->first('value_setting')}}</label>
	                          @endif
	                        </div>
	                    </div>
	                </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-footer">
            <a href="{{ url('webprofile/settings') }}" class="btn btn-default pull-right">@lang('label.cancel')</a>
                <button class="btn btn-info pull-right">@lang('label.save')</button>
            </div>
        </div>
    </div>
</div>
{!! Form::close() !!}
<!-- page end-->
@stop

@section('script')
{!! Html::script('backend/js/plugins/bootstrap/bootstrap-datepicker.js') !!}
{!! Html::script('backend/js/plugins/bootstrap/bootstrap-timepicker.min.js') !!}
{!! Html::script('backend/js/plugins/bootstrap/bootstrap-file-input.js') !!}
@stop
