<?php $__env->startSection('content'); ?>
<div class="content" id="content">

  <div class="overlay"></div>     
  
<?php echo $__env->make('admin.includes.topbar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
  
  <!-- main content -->
  <div class="main-content">


    <!-- panel -->

    <div class="panel panel-piluku">
      <div class="panel-heading">
        <h3 class="panel-title">
          Room Management - <?php echo $quotation->id; ?>

          <span class="panel-options">
            <a href="#" class="panel-refresh">
              <i class="icon ti-reload"></i>
            </a>
            <a href="#" class="panel-minimize">
              <i class="icon ti-angle-up"></i>
            </a>
            <a href="#" class="panel-close">
              <i class="icon ti-close"></i>
            </a>
          </span>
        </h3>
      </div>
<?php if(Session::has('error')): ?>
<div class="alert bg-danger text-white">
              <?php echo Session::get('success'); ?>

            </div>

<?php endif; ?>

<?php if(Session::has('success')): ?>
<div class="alert bg-success text-white">
              <?php echo Session::get('success'); ?>

            </div>

<?php endif; ?>




      <div class="panel-body">

          <?php echo Form::open(array('route' => 'insertquotationroom', 'id' => 'form-a', 'class' => 'form form-horizontal')); ?>
        <input type="hidden" id="booking_id" value="<?php echo $quotation->id; ?>" name="quotation_id" class="form-control" data-required="true" >


          <div class="form-group">
						<label class="col-sm-2 control-label">Room Type:</label>
						<div class="col-sm-8">
							<select class="name_search form-control" name="room_id" data-validation="required" required data-validation-error-msg="Please make a choice">
								<option value=""> - - Choose - - </option>
								<option value="">Please Select</option>
								<?php foreach($hotel_rooms as $room): ?>
								<option value="<?php echo $room->id; ?>"><?php echo $room->name; ?></option>
								<?php endforeach; ?>
							</select>
						</div>
			</div>




        <div class="form-group">
            					<label class="col-sm-2 control-label">Arrival Date:</label>
					                <div class="col-sm-8">
					                  
					                  <input type="date" class="form-control" required name="arrival_date" >
					                </div>
        </div>


		<div class="form-group">
            					<label class="col-sm-2 control-label">Depature Date:</label>
					                <div class="col-sm-8">
					                  
					                  <input type="date" class="form-control" required name="departure_date">
					                </div>
        </div>

      



           <div class="form-group">
						<label class="col-sm-2 control-label">Meal Plan:</label>
						<div class="col-sm-8">
							<select class="name_search form-control" name="meal_plan" required data-validation="required" required data-validation-error-msg="Please make a choice">
								
						
								<option value="Bed & Breakfast">Bed and Breakfast</option>
								<option value="Half Board">Half Board</option>
								<option value="Full Board">Full Board</option>
								<option value="All Inclusive">All Inclusive</option>
				
							</select>
						</div>
			</div>

      <div class="form-group">
            <label class="col-sm-2 control-label">Room Configuration:</label>
            <div class="col-sm-8">
              <select class="name_search form-control" name="room_configuration" required data-validation="required" required data-validation-error-msg="Please make a choice">
                
            
                <option value="Single">Single</option>
                <option value="Double">Double</option>
                <option value="Triple">Triple</option>
        
              </select>
            </div>
      </div>

      <div class="form-group">
            <label class="col-sm-2 control-label" for="inline-suggestions">Room Rate:</label>
            <div class="col-sm-8">
              <input name="room_rate" type="text" required class="form-control"  />
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-2 control-label" for="inline-suggestions">Transfer Rate:</label>
            <div class="col-sm-8">
              <input name="transfer_rate" type="text" required class="form-control"  />
            </div>
          </div>











          





          
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-8">
          <input type="submit" class="btn btn-success">
          <input type="reset" class="btn btn-danger">
        </div>
      </div>
    </form>
  </div>
</div>
<!-- /panel -->

<!-- panel -->
        <div class="panel panel-piluku panel-users">
          <div class="panel-heading">
            <h3 class="panel-title">
              List of Rooms
              <span class="panel-options">
                <a href="#" class="panel-refresh">
                  <i class="icon ti-reload"></i> 
                </a>
                <a href="#" class="panel-minimize">
                  <i class="icon ti-angle-up"></i> 
                </a>
                <a href="#" class="panel-close">
                  <i class="icon ti-close"></i> 
                </a>
              </span>
            </h3>
          </div>
          <div class="panel-body nopadding">
            <div class="table-responsive">
              <table class="table table-hover">
                <thead>
                  <tr>
          
                            <th>Name</th>
                            <th>Arrival</th>
                            <th>Depature</th>
                            <th>Nights</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                  
                  </tr>
                </thead>
                <tbody>
                     <?php foreach($quotation->rooms as $room): ?>
                  <tr class="table-row">
                 
                            <td><?php echo $room->room_name; ?></td>
                            <td><?php echo $room->arrival; ?></td>
                            <td><?php echo $room->departure; ?></td>
                            <td><?php echo $room->nights_count; ?></td>
         
                    <td>
                      <a href="<?php echo URL('/admin/quotations/rooms/delete'); ?>/<?php echo $room->id; ?>" class="btn btn-red"><i class="ion ion-ios-trash-outline"></i></a>
                    </td>
                      
                  </tr>
                  <?php endforeach; ?>
                  
                </tbody>
              </table>
            </div>
          </div>
        </div>
        <!-- /panel -->



</div>
<!-- /main content -->        
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>