?> </div> </div> <div class="form-group"> <?php echo Form::label('Ad Type', array('class' => 'control-label')); ?> <div class="radio"> <?php echo Form::label(Form::radio(array('name' => 'ad_type', 'value' => 1, isset($estate) && $estate->ad_type == 1 || Session::oldInput()['ad_type'] == 1 ? 'checked' : '' => '')) . 'For Sale', array('class' => 'control-label')); ?> </div> <div class="radio"> <?php echo Form::label(Form::radio(array('name' => 'ad_type', 'value' => 0, isset($estate) && $estate->ad_type != 1 || isset(Session::oldInput()['ad_type']) && Session::oldInput()['ad_type'] != 1 ? 'checked' : '' => '')) . 'For Rent', array('class' => 'control-label')); ?> </div> </div> <div class="form-group"> <?php echo Form::label('Category', array('class' => 'control-label')); ?> <?php echo Form::select(array('name' => 'category_id', 'required' => 'true', 'class' => 'form-control'), $categories); ?> </div> <div class="form-group"> <?php
<div class="col-md-5"> <div class="form-group"> <div class="radio"> <?php echo Form::label(Form::radio(array('name' => 'furnished', 'value' => 1, $search->furnished == 1 ? 'checked' : '' => '')) . 'Unfurnished', array('class' => 'control-label')); ?> </div> <div class="radio"> <?php echo Form::label(Form::radio(array('name' => 'furnished', 'value' => 2, $search->furnished == 2 ? 'checked' : '' => '')) . 'Furnished', array('class' => 'control-label')); ?> </div> <div class="radio"> <?php echo Form::label(Form::radio(array('name' => 'furnished', 'value' => 3, !isset($search->furnished) || $search->furnished == 3 ? 'checked' : '' => '')) . 'Both', array('class' => 'control-label')); ?> </div> </div> </div> <div class="col-md-5 col-md-offset-2"> <div class="form-group"> <div class="checkbox"> <?php echo Form::label(Form::check(array('name' => 'has_image', 'value' => 1, isset($search) && $search->has_image == 1 ? 'checked' : '' => '')) . 'Has Image ?', array('class' => 'control-label')); ?> </div> </div>