<div class="row">
  <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
    <div class="card">
      <div class="body">
        <%= simple_form_for([:settings,@zone,@settings_room]) do |f| %>
        <%= f.error_notification %>

        <div class="form-inputs p-l-15">
          <%= f.input :name %>
          <%= f.input :status %>
          <%= f.input :seater %>
          <%= f.input :order_by %>
          <%= f.input :is_active %>
          <% if @settings_room.dining_charges.length == 0 %>
           <% if @settings_room.id != nil %>
              <div class="">
                    <div class="">
                        <%= link_to 'Add For Extra Charges', new_settings_zone_room_dining_charge_path(@zone,@settings_room),:class => 'btn bg-deep-purple' %>
                    </div>
              </div>
            <% end %>
          <% else %>
            <%  @settings_room.dining_charges.each do |dc| %>
            
            <div class="card">
                <div class="col-md-">
                  <table class="table">
                    <tr><td colspan="2">
                      <div class="col-md-10"><b><u>Dining Charge</u></b></div></td>
                    </tr>
                    <tr>
                      <td class="align-right">Item code :</td>
                      <td class="align-left"><%= dc.item_code %></td>
                      <td class="align-right">Unit price : </td>
                      <td class="align-left"><%= dc.unit_price %></td>
                      <td class="align-right">Charge type : </td>
                      <td class="align-left"><%= dc.charge_type %></td>
                      <td>
                           <%= link_to 'Edit Charges', edit_settings_zone_room_dining_charge_path(@zone,@settings_room,dc),:class => 'btn bg-deep-purple' %>
                    <!-- <button class="btn btn-primary" src="<%= edit_settings_zone_room_dining_charge_path(@zone,@settings_room,dc) %>">Edit Charge</button> -->
                          
                        </td>
                    </tr>
                    
                 
                    </table>
                  </div>
              </div>
            <% end %>
          <% end %>
        </div>

        <div class="form-actions p-l-15">
           <%= f.submit "Submit",:class => 'btn btn-primary btn-lg waves-effect' %>
        </div>
      <% end %>
      </div>
    </div>
  </div>
 <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
    <div class="card">
      <div class="body">
        <h5><i class="material-icons md-18">view_headline <%= t("views.right_panel.header.page_detail") %></i></h5>
        <p>
        1) <%= t("views.right_panel.detail.name") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.room_txt") %> <%= t("views.right_panel.detail.name_txt2") %> <br> 
        2) <%= t("views.right_panel.detail.status") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.status_txt") %> <br>
        3) <%= t("views.right_panel.detail.seater") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.seat_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.room_txt") %> <br>
        4) <%= t("views.right_panel.detail.order_by") %> - <%= t("views.right_panel.detail.write_txt") %> <%= t("views.right_panel.detail.order_txt") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.room_txt") %> <br>
        5) <%= t("views.right_panel.detail.is_active") %> - <%= t("views.right_panel.detail.checkbox") %> <%= t("views.right_panel.detail.for") %> <%= t("views.right_panel.detail.is_active_txt") %> <br>
        </p>
        <h5><i class="material-icons md-18">list <%= t("views.right_panel.header.button_lists") %></i> </h5>
        <p>
        1) <%= t("views.right_panel.button.create") %> - <%= t("views.right_panel.detail.create_btn_txt") %> <%= t("views.right_panel.detail.room_txt") %> <br>
        </p>
        <h5><i class="material-icons md-18">list <%= t("views.right_panel.header.link_lists") %></i> </h5>
        <p>
          1) <%= t("views.right_panel.button.home") %> - <%= t("views.right_panel.detail.home_txt") %> <br>
          2) <%= t("views.right_panel.button.back") %> - <%= t("views.right_panel.detail.back_txt") %> <%= t("views.right_panel.detail.zone_txt") %> <%= t("views.right_panel.detail.detail_txt") %> <br>
        </p>
      </div>
    </div>  
  </div>
</div>
 
