
@extends('adminlte::page')

@section('content')
<?php Fun::lang()?>
<div class="page">
	<div class="row">
		<div class="col-sm-12 col-xs-12">
			@if (count($errors) > 0)
			<div class="alert-message alert-danger">
				<strong>Whoops!</strong> There were some problems with your input.<br><br>
				<ul>
					@foreach ($errors->all() as $error)
					<li>{{ $error }}</li>
					@endforeach
				</ul>
			</div>
			@endif
			<div class="box-body table-responsive">    
				{!! Form::model($item,array('route' => 'items.booking_store','method'=>'POST','id' => 'form_validate','enctype'=>'multipart/form-data')) !!}
				<div class="row">
					<div class="col-sm-12">
						<div class="navbar-top">
							<div class="margin-tb">
								<div class="pull-left">
									<h2>Item Info</h2>
								</div>
							</div>
						</div>
					</div>
				</div>
				<input type="hidden" name="saledetail_itemid" value="{{$item->id}}">
				<div class="row">
					<div class="form-group col-sm-6 col-xs-12">
						
						<label class="required">Title</label>
						{!! Form::text('item_title', null, array('placeholder' => 'Title','class' => 'form-control','readonly')) !!}
						
					</div>	
					<div class="form-group col-sm-6 col-xs-12">
						
						<label class="required">Item Cost</label>
						{!! Form::text('item_cost', null, array('placeholder' => 'Item Cost','class' => 'form-control' ,'readonly')) !!}
						
					</div>

					<div class="form-group col-sm-3 col-xs-12">
						
						<label for="">Item Code</label>
						{!! Form::text('item_name', null, array('placeholder' => 'Sq FP','class' => 'form-control','readonly')) !!}
						
					</div>	
					<div class="form-group col-sm-3 col-xs-12">
						
						<label class="required">Size (123mx123m)</label>
						{!! Form::text('item_size', null, array('placeholder' => 'Size','class' => 'form-control','readonly')) !!}
						
					</div>
					
					<div class="form-group col-sm-3 col-xs-12">
						
						<label class="required">Sale Price</label>
						{!! Form::text('item_price', null, array('placeholder' => 'Sale Price','class' => 'form-control','readonly')) !!}
						
					</div>
					<div class="form-group col-sm-3 col-xs-12">
						
						<label for="">Number of Bedroom</label>
						{!! Form::text('item_bedroom', null, array('placeholder' => 'Number of Bedroom','class' => 'form-control','readonly')) !!}
						
					</div>	
					<div class="form-group col-sm-6 col-xs-12">
						
						<label for="">Number of Bathroom</label>
						{!! Form::text('item_bathroom', null, array('placeholder' => 'Number of bathroom','class' => 'form-control','readonly')) !!}
						
					</div>	
					<div class="form-group col-sm-6 col-xs-12">
						
						<label for="">Number of Floor</label>
						{!! Form::text('item_floor', null, array('placeholder' => 'Number of floor','class' => 'form-control','readonly')) !!}
						
					</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<div class="navbar-top">
							<div class="margin-tb">
								<div class="pull-left">
									<h2>Booking Info</h2>
								</div>
							</div>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="form-group col-sm-6 col-xs-12">
						
						<label for="">Client Name</label>
						{!! Form::text('client_fullname', null, array('placeholder' => 'Client Name','class' => 'form-control client_fullname')) !!}
						
					</div>	
					<div class="form-group col-sm-6 col-xs-12">
						
						<label class="required">Phone</label>
						&nbsp<span class="label label-danger Phone" style="display: none;">Please Input Phone !</span>
						{!! Form::text('client_phone1', null, array('placeholder' => 'Phone','class' => 'form-control client_phone1')) !!}
						
					</div>

					<div class="form-group col-sm-6 col-xs-12">
						
						<label for="">Deposit Amount</label>
						<span class="label label-danger deposit" style="display: none;">Please Input Currency !</span>
						{!! Form::text('sale_receive', null, array('placeholder' => 'Deposit Amount','class' => 'form-control sale_receive')) !!}
						
					</div>
					<div class="form-group col-sm-6 col-xs-12">
						
						<label for="">Gender</label>
						<select class="form-control select2"  name="client_gender">  
							<option value="1">Male</option>
							<option value="2">Female</option>
						</select>
					</div>
				</div>

				<div class="col-sm-12">
					
					<label for="required">Address</label>
					{!! Form::textarea('client_address', null, array('placeholder' => 'Address','class' => 'form-control client_address','rows'=>'2')) !!}
					
				</div>
				<div class="col-sm-12 col-xs-12">
					<div class="form-group">
						<input type="submit" value="Save" class="button_primary pull-right">
						
					</div>
				</div>
			</div>
			{!! Form::close() !!}
		</div>
	</div>
</div>
</div>
@endsection


@section('js')
<script type="text/javascript" src="{{asset('assets/controller/items.js')}}"></script>
<script type="text/javascript" src="{{asset('assets/controller/booking-validation.js')}}"></script>
@endsection
