<?php 
	use App\Models\CustomPages; 
	use App\Models\Option; 
?>
@extends("backend/master")
@section('maincontent')
	<!-- BEGIN CONTENT-->
	<div id="content">
		<section>
			<div class="section-header ">
				<ol class="breadcrumb">
					<li class="active">Home</li>
					<li class="active">Pages</li>
					<li class="active">{!! CustomPages::getcontent("aboutUsPageTitle") !!}</li>
				</ol>
			</div>
			<div class="section-body">
				<!-- BEGIN VERTICAL FORM -->
				<div class="row">
					<div class="col-lg-12">
						<h1 class="text-primary">{!! CustomPages::getcontent("aboutUsPageTitle") !!}</h1>
					</div><!--end .col -->
					
					<div class="clearfix"></div>
					
					@if(Session::has('success')) {!! HTML::display_success('success') !!} @endif

					<div class="col-lg-12 col-md-12">
						{!! Form::open(["url"=>"admin/pages/aboutus/post","class"=>"form","enctype"=>"multipart/form-data","files"=>true]) !!}
							<div class="panel panel-default">
				        		<div class="panel-body">
				            		<div class="row">
						                <div class="col-md-8 col-lg-8">
							                <div class="form-group @if($errors->has('aboutUsPageTitle'))has-error @endif">
												{!! Form::text("aboutUsPageTitle",CustomPages::getcontent("aboutUsPageTitle"),["class"=>"form-control","placeholder"=>"enter title here"]) !!}
												@if($errors->has("aboutUsPageTitle"))
													<span id="aboutUsPageTitle-error" class="help-block">{!! $errors->first("aboutUsPageTitle") !!}</span>
												@endif
												{!! HTML::decode(Form::label("aboutUsPageTitle","Page Title <span class='text-danger'>*</span>")) !!}
											</div>
						                </div>

						                <div class="col-md-4 col-lg-4 brd-left">
						                  	<div class="text-right">
						                    	{{ Form::submit('Save & Publish',['class'=>'btn ink-reaction btn-primary']) }}
						                    	<?php
						                    		$data = CustomPages::where("fieldName", "aboutUsPageTitle")->first();
						                    	?>
					                    		@if($data)
					                    			<p><b>Last Modified:</b>  {!! strtoupper($data->updatedByName) !!} ({!! date(Option::fetchDateFormat()." ".Option::fetchTimeFormat(),strtotime($data->updated_at)) !!})</p>
					                    		@endif
						                      
						                  	</div>
						                </div>
				            		</div>
				        		</div>
				        	</div>

				        	<div class="panel panel-default">
				        		<div class="panel-body">
				            		<div class="row">
						                <div class="col-md-6 col-lg-6">
						                	<div class="form-group @if($errors->has('aboutUsDetailsOne'))has-error @endif">
											{!! HTML::decode(Form::label("aboutUsDetailsOne","Left Widget Area <span class='text-danger'>*</span>")) !!}
											{!! Form::textarea("aboutUsDetailsOne",CustomPages::getcontent("aboutUsDetailsOne"),["class"=>"form-control"]) !!}
												@if($errors->has("aboutUsDetailsOne"))
												<span id="aboutUsDetailsOne-error" class="help-block">{!! $errors->first("aboutUsDetailsOne") !!}</span>
												@endif
											</div>
						                </div>

						                <div class="col-md-6 col-lg-6">
						                	<div class="form-group @if($errors->has('aboutUsDetailsTwo'))has-error @endif">
											{!! HTML::decode(Form::label("aboutUsDetailsTwo","Right Widget Area <span class='text-danger'>*</span>"),["id"=>"aboutUsDetailsTwo"]) !!}
											{!! Form::textarea("aboutUsDetailsTwo",CustomPages::getcontent("aboutUsDetailsTwo"),["class"=>"form-control"]) !!}
												@if($errors->has("aboutUsDetailsTwo"))
												<span id="aboutUsDetailsTwo-error" class="help-block">{!! $errors->first("aboutUsDetailsTwo") !!}</span>
												@endif
											</div>
						                </div>

						                <div class="col-md-6 col-lg-6">
							                <div class="form-group @if($errors->has('aboutUsShortDescription'))has-error @endif">
												{!! Form::text("aboutUsShortDescription",CustomPages::getcontent("aboutUsShortDescription"),["class"=>"form-control","placeholder"=>"enter widget two title","rows"=>"4"]) !!}
													@if($errors->has("aboutUsShortDescription"))
													<span id="aboutUsShortDescription-error" class="help-block">{!! $errors->first("aboutUsShortDescription") !!}</span>
													@endif
												{!! HTML::decode(Form::label("aboutUsShortDescription","Widget Two Title <span class='text-danger'>*</span>")) !!}
											</div>
						                </div>

						                <div class="col-md-6 col-lg-6">
						                	<div class="form-group @if($errors->has('aboutUsWidgetTwoDescription'))has-error @endif">
											{!! HTML::decode(Form::label("aboutUsWidgetTwoDescription","Right Widget Area <span class='text-danger'>*</span>"),["id"=>"aboutUsWidgetTwoDescription"]) !!}
											{!! Form::textarea("aboutUsWidgetTwoDescription",CustomPages::getcontent("aboutUsWidgetTwoDescription"),["class"=>"form-control"]) !!}
												@if($errors->has("aboutUsWidgetTwoDescription"))
												<span id="aboutUsWidgetTwoDescription-error" class="help-block">{!! $errors->first("aboutUsWidgetTwoDescription") !!}</span>
												@endif
											</div>
						                </div>
				            		</div>
				        		</div>
				        	</div>

				        	<div class="panel panel-default">
				        		<div class="panel-body">
				            		<div class="row">
				            			<div class="col-md-12 col-lg-12">
				            				<div class="panel-group">
											    <div class="panel panel-default">
											      	<div class="panel-heading">
											        	<h4 class="panel-title">
											          	<a data-toggle="collapse" data-parent="#accordion" href="#collapse1">{!! CustomPages::getcontent("acmYear1") !!}</a>
											        	</h4>
											      	</div>

											      	<div id="collapse1" class="panel-collapse collapse">
											        	<div class="panel-body">
											        		<div class="form-group @if($errors->has('acmYear1'))has-error @endif">
																{!! HTML::decode(Form::label("acmYear1","Year <span class='text-danger'>*</span>"),["id"=>"acmYear1"]) !!}
																{!! Form::text("acmYear1",CustomPages::getcontent("acmYear1"),["class"=>"form-control", "placeholder"=>"enter year"]) !!}
																@if($errors->has("acmYear1"))
																	<span id="acmYear1-error" class="help-block">{!! $errors->first("acmYear1") !!}</span>
																@endif
															</div>

															<div class="form-group @if($errors->has('acmActivity1'))has-error @endif">
																{!! HTML::decode(Form::label("acmActivity1","Text <span class='text-danger'>*</span>"),["id"=>"acmActivity1"]) !!}
																{!! Form::textarea("acmActivity1",CustomPages::getcontent("acmActivity1"),["class"=>"form-control", "placeholder"=>"enter text", "rows"=>3, "cols"=>3]) !!}
																@if($errors->has("acmActivity1"))
																	<span id="acmActivity1-error" class="help-block">{!! $errors->first("acmActivity1") !!}</span>
																@endif
															</div>
													    </div>
											      	</div>
											    </div>

											    <div class="panel panel-default">
											      	<div class="panel-heading">
											        	<h4 class="panel-title">
											          	<a data-toggle="collapse" data-parent="#accordion" href="#collapse2">{!! CustomPages::getcontent("acmYear2") == "" ? "Enter Details" : CustomPages::getcontent("acmYear2") !!}</a>
											        	</h4>
											      	</div>

											      	<div id="collapse2" class="panel-collapse collapse">
											        	<div class="panel-body">
											        		<div class="form-group @if($errors->has('acmYear2'))has-error @endif">
																{!! HTML::decode(Form::label("acmYear2","Year <span class='text-danger'>*</span>"),["id"=>"acmYear2"]) !!}
																{!! Form::text("acmYear2",CustomPages::getcontent("acmYear2"),["class"=>"form-control", "placeholder"=>"enter year"]) !!}
																@if($errors->has("acmYear2"))
																	<span id="acmYear2-error" class="help-block">{!! $errors->first("acmYear2") !!}</span>
																@endif
															</div>

															<div class="form-group @if($errors->has('acmActivity2'))has-error @endif">
																{!! HTML::decode(Form::label("acmActivity2","Text <span class='text-danger'>*</span>"),["id"=>"acmActivity2"]) !!}
																{!! Form::textarea("acmActivity2",CustomPages::getcontent("acmActivity2"),["class"=>"form-control", "placeholder"=>"enter text", "rows"=>3, "cols"=>3]) !!}
																@if($errors->has("acmActivity2"))
																	<span id="acmActivity2-error" class="help-block">{!! $errors->first("acmActivity2") !!}</span>
																@endif
															</div>
													    </div>
											      	</div>
											    </div>

											    <div class="panel panel-default">
											      	<div class="panel-heading">
											        	<h4 class="panel-title">
											          	<a data-toggle="collapse" data-parent="#accordion" href="#collapse3">{!! CustomPages::getcontent("acmYear3") == "" ? "Enter Details" : CustomPages::getcontent("acmYear3") !!}</a>
											        	</h4>
											      	</div>

											      	<div id="collapse3" class="panel-collapse collapse">
											        	<div class="panel-body">
											        		<div class="form-group @if($errors->has('acmYear3'))has-error @endif">
																{!! HTML::decode(Form::label("acmYear3","Year <span class='text-danger'>*</span>"),["id"=>"acmYear3"]) !!}
																{!! Form::text("acmYear3",CustomPages::getcontent("acmYear3"),["class"=>"form-control", "placeholder"=>"enter year"]) !!}
																@if($errors->has("acmYear3"))
																	<span id="acmYear3-error" class="help-block">{!! $errors->first("acmYear3") !!}</span>
																@endif
															</div>

															<div class="form-group @if($errors->has('acmActivity3'))has-error @endif">
																{!! HTML::decode(Form::label("acmActivity3","Text <span class='text-danger'>*</span>"),["id"=>"acmActivity3"]) !!}
																{!! Form::textarea("acmActivity3",CustomPages::getcontent("acmActivity3"),["class"=>"form-control", "placeholder"=>"enter text", "rows"=>3, "cols"=>3]) !!}
																@if($errors->has("acmActivity3"))
																	<span id="acmActivity3-error" class="help-block">{!! $errors->first("acmActivity3") !!}</span>
																@endif
															</div>
													    </div>
											      	</div>
											    </div>

											    <div class="panel panel-default">
											      	<div class="panel-heading">
											        	<h4 class="panel-title">
											          	<a data-toggle="collapse" data-parent="#accordion" href="#collapse4">{!! CustomPages::getcontent("acmYear4") == "" ? "Enter Details" : CustomPages::getcontent("acmYear4") !!}</a>
											        	</h4>
											      	</div>

											      	<div id="collapse4" class="panel-collapse collapse">
											        	<div class="panel-body">
											        		<div class="form-group @if($errors->has('acmYear4'))has-error @endif">
																{!! HTML::decode(Form::label("acmYear4","Year <span class='text-danger'>*</span>"),["id"=>"acmYear4"]) !!}
																{!! Form::text("acmYear4",CustomPages::getcontent("acmYear4"),["class"=>"form-control", "placeholder"=>"enter year"]) !!}
																@if($errors->has("acmYear4"))
																	<span id="acmYear4-error" class="help-block">{!! $errors->first("acmYear4") !!}</span>
																@endif
															</div>

															<div class="form-group @if($errors->has('acmActivity4'))has-error @endif">
																{!! HTML::decode(Form::label("acmActivity4","Text <span class='text-danger'>*</span>"),["id"=>"acmActivity4"]) !!}
																{!! Form::textarea("acmActivity4",CustomPages::getcontent("acmActivity4"),["class"=>"form-control", "placeholder"=>"enter text", "rows"=>3, "cols"=>3]) !!}
																@if($errors->has("acmActivity4"))
																	<span id="acmActivity4-error" class="help-block">{!! $errors->first("acmActivity4") !!}</span>
																@endif
															</div>
													    </div>
											      	</div>
											    </div>

											    <div class="panel panel-default">
											      	<div class="panel-heading">
											        	<h4 class="panel-title">
											          	<a data-toggle="collapse" data-parent="#accordion" href="#collapse5">{!! CustomPages::getcontent("acmYear5") == "" ? "Enter Details" : CustomPages::getcontent("acmYear5") !!}</a>
											        	</h4>
											      	</div>

											      	<div id="collapse5" class="panel-collapse collapse">
											        	<div class="panel-body">
											        		<div class="form-group @if($errors->has('acmYear5'))has-error @endif">
																{!! HTML::decode(Form::label("acmYear5","Year <span class='text-danger'>*</span>"),["id"=>"acmYear5"]) !!}
																{!! Form::text("acmYear5",CustomPages::getcontent("acmYear5"),["class"=>"form-control", "placeholder"=>"enter year"]) !!}
																@if($errors->has("acmYear5"))
																	<span id="acmYear5-error" class="help-block">{!! $errors->first("acmYear5") !!}</span>
																@endif
															</div>

															<div class="form-group @if($errors->has('acmActivity5'))has-error @endif">
																{!! HTML::decode(Form::label("acmActivity5","Text <span class='text-danger'>*</span>"),["id"=>"acmActivity5"]) !!}
																{!! Form::textarea("acmActivity5",CustomPages::getcontent("acmActivity5"),["class"=>"form-control", "placeholder"=>"enter text", "rows"=>3, "cols"=>3]) !!}
																@if($errors->has("acmActivity5"))
																	<span id="acmActivity5-error" class="help-block">{!! $errors->first("acmActivity5") !!}</span>
																@endif
															</div>
													    </div>
											      	</div>
											    </div>

											    <div class="panel panel-default">
											      	<div class="panel-heading">
											        	<h4 class="panel-title">
											          	<a data-toggle="collapse" data-parent="#accordion" href="#collapse6">{!! CustomPages::getcontent("acmYear6") == "" ? "Enter Details" : CustomPages::getcontent("acmYear6") !!}</a>
											        	</h4>
											      	</div>

											      	<div id="collapse6" class="panel-collapse collapse">
											        	<div class="panel-body">
											        		<div class="form-group @if($errors->has('acmYear6'))has-error @endif">
																{!! HTML::decode(Form::label("acmYear6","Year <span class='text-danger'>*</span>"),["id"=>"acmYear6"]) !!}
																{!! Form::text("acmYear6",CustomPages::getcontent("acmYear6"),["class"=>"form-control", "placeholder"=>"enter year"]) !!}
																@if($errors->has("acmYear6"))
																	<span id="acmYear6-error" class="help-block">{!! $errors->first("acmYear6") !!}</span>
																@endif
															</div>

															<div class="form-group @if($errors->has('acmActivity6'))has-error @endif">
																{!! HTML::decode(Form::label("acmActivity6","Text <span class='text-danger'>*</span>"),["id"=>"acmActivity6"]) !!}
																{!! Form::textarea("acmActivity6",CustomPages::getcontent("acmActivity6"),["class"=>"form-control", "placeholder"=>"enter text", "rows"=>3, "cols"=>3]) !!}
																@if($errors->has("acmActivity6"))
																	<span id="acmActivity6-error" class="help-block">{!! $errors->first("acmActivity6") !!}</span>
																@endif
															</div>
													    </div>
											      	</div>
											    </div>

											    <div class="panel panel-default">
											      	<div class="panel-heading">
											        	<h4 class="panel-title">
											          	<a data-toggle="collapse" data-parent="#accordion" href="#collapse7">{!! CustomPages::getcontent("acmYear7") == "" ? "Enter Details" : CustomPages::getcontent("acmYear7") !!}</a>
											        	</h4>
											      	</div>

											      	<div id="collapse7" class="panel-collapse collapse">
											        	<div class="panel-body">
											        		<div class="form-group @if($errors->has('acmYear7'))has-error @endif">
																{!! HTML::decode(Form::label("acmYear7","Year <span class='text-danger'>*</span>"),["id"=>"acmYear7"]) !!}
																{!! Form::text("acmYear7",CustomPages::getcontent("acmYear7"),["class"=>"form-control", "placeholder"=>"enter year"]) !!}
																@if($errors->has("acmYear7"))
																	<span id="acmYear7-error" class="help-block">{!! $errors->first("acmYear7") !!}</span>
																@endif
															</div>

															<div class="form-group @if($errors->has('acmActivity7'))has-error @endif">
																{!! HTML::decode(Form::label("acmActivity7","Text <span class='text-danger'>*</span>"),["id"=>"acmActivity7"]) !!}
																{!! Form::textarea("acmActivity7",CustomPages::getcontent("acmActivity7"),["class"=>"form-control", "placeholder"=>"enter text", "rows"=>3, "cols"=>3]) !!}
																@if($errors->has("acmActivity7"))
																	<span id="acmActivity7-error" class="help-block">{!! $errors->first("acmActivity7") !!}</span>
																@endif
															</div>
													    </div>
											      	</div>
											    </div>
										  	</div>
										</div>
									</div>
								</div>
							</div>

							<div class="panel panel-default">
				        		<div class="panel-body">
				            		<div class="row">
				            			<div class="col-md-12 col-lg-12">
					                		<h4 class="text-primary"><b>Search Engine Optimization</b></h4>

											<div class="form-group">
												{!! Form::text("aboutUsMetaTitle",CustomPages::getcontent("aboutUsMetaTitle"),["class"=>"form-control","placeholder"=>"Meta Title","rows"=>"4"]) !!}
												@if($errors->has("aboutUsMetaTitle"))
													<span id="aboutUsMetaTitle-error" class="help-block">{!! $errors->first("aboutUsMetaTitle") !!}</span>
												@endif
												{!! HTML::decode(Form::label("aboutUsMetaTitle","Meta Title <span class='text-danger'>*</span>")) !!}
											</div>

											<div class="form-group">
												{!! Form::textarea("aboutUsMetaDescription",CustomPages::getcontent("aboutUsMetaDescription"),["class"=>"form-control","placeholder"=>"Meta Description","rows"=>"4"]) !!}
												@if($errors->has("aboutUsMetaDescription"))
													<span id="aboutUsMetaDescription-error" class="help-block">{!! $errors->first("aboutUsMetaDescription") !!}</span>
												@endif
												{!! HTML::decode(Form::label("aboutUsMetaDescription","Meta Description <span class='text-danger'>*</span>")) !!}
											</div>

											<div class="form-group">
												{!! Form::text("aboutUsMetaKeywords",CustomPages::getcontent("aboutUsMetaKeywords"),["class"=>"form-control","placeholder"=>"Meta Keywords","rows"=>"4"]) !!}
												@if($errors->has("aboutUsMetaKeywords"))
													<span id="aboutUsMetaKeywords-error" class="help-block">{!! $errors->first("aboutUsMetaKeywords") !!}</span>
												@endif
												{!! HTML::decode(Form::label("aboutUsMetaKeywords","Meta Keywords <span class='text-danger'>*</span>")) !!}
												<p class="help-block">Enter keywords seperated with comma</p>
											</div>
										</div>
									</div>
								</div>
							</div>

							
				        {!! Form::close() !!}
					</div><!--end .col -->
				</div><!--end .row -->
				<!-- END VERTICAL FORM -->
			</div>
		</section>
	</div><!--end #content-->
	<!-- END CONTENT -->
@stop

@section("script")
	{!! HTML::script('backend/js/bala.js') !!}
	{!! HTML::script('backend/ckeditor/ckeditor.js') !!}
	{!! HTML::script('backend/assets/js/libs/global/iframe-transport.js') !!}
	{!! HTML::script('backend/assets/js/libs/global/jquery-ui.js') !!}
	<script type="text/javascript">
	    $(document).ready(function(){
	      	CKEDITOR.replace('aboutUsDetailsOne');
	      	CKEDITOR.replace('aboutUsDetailsTwo');
	      	CKEDITOR.replace('aboutUsWidgetTwoDescription');
	    });
	</script>
@stop