<div class="col-xs-12"> <div class="form-material"> <label for="blog-title">{{ trans('admin.property_area') }}</label> <input class="form-control" type="text" name="meta[area]" value="{{ _postMeta($post->id, 'area') }}"> </div> </div> </div> {{-- Status --}} <div class="form-group"> <label class="col-xs-12" for="example-select">{{ trans('admin.property_status') }}</label> <div class="col-sm-12"> <?php $propertyStatuses = _propertyStatuses(); $propertyStatuses[0] = 'Please Select'; $propertyStatuses = array_reverse($propertyStatuses); $propertyStatus = _postMeta($post->id, 'property_status') ? _postMeta($post->id, 'property_status') : 0; ?> {!! Form::select('meta[property_status]', $propertyStatuses, $propertyStatus, ['class' => 'form-control', 'size' => 1] ) !!} </div> </div> {{-- Country --}} <div class="form-group"> <label class="col-xs-12" for="example-select">{{ trans('admin.property_country') }}</label> <div class="col-sm-12"> <?php $countries = _dataCountries(); ?> {!! Form::select('meta[country]', $countries, _postMeta($post->id, 'country'), ['class' => 'form-control', 'size' => 1, 'id' => 'country'] ) !!}
<?php $propertyStatusKey = _postMeta($post->id, 'property_status'); $title = _postTitle($post); $propertyType = isset(_propertyStatuses()[$propertyStatusKey]) ? _propertyStatuses()[$propertyStatusKey] : ""; $address = _postMeta($post->id, 'address'); $area = _postMeta($post->id, 'area'); $country = _postMeta($post->id, 'country'); $garage = _postMeta($post->id, ['meta_key' => 'amenities', 'meta_value' => 'Garage']); $beds = _postMeta($post->id, ['meta_key' => 'amenities', 'meta_value' => 'Beds']); $baths = _postMeta($post->id, ['meta_key' => 'amenities', 'meta_value' => 'Baths']); $price = _money(_postMeta($post->id, 'price')); $url = _postPermaLink($post); $categoryName = 'Village Village Village'; $excerpt = _postExcerpt($post, 250) . '...'; $content = _postContent($post); $featureImage = _postFeatureImage($post); $featureImageSource = _postFeatureImageSource($post); $postCategories = _postCategories($post);