<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,@settings_shop], :html => { :multipart => true }) do |f| %>
        <%= f.error_notification %>
        <div class="form-group p-l-15">
          <%= f.input :name ,:input_html=>{:class=>"col-md-10"},:required=>true%>
          <%= f.input :address %>
          <%= f.input :city %>
          <%= f.input :township %>
          <%= f.input :state %>
          <%= f.input :phone_no %>
          <%= f.input :reservation_no %>
          <%= f.input :license %>
          <%= f.input :license_data %>
          <%= f.input :base_currency %>
          <%= f.input :cloud_token %>
          <%= f.input :cloud_url %>
          <%= f.input :owner_token %>
          <%= f.input :id_prefix %>
          <%= f.input :is_rounding_adj %>
          <%= f.input :quick_sale_summary %>
          <%= f.input :calc_tax_order %>
          <%= f.input :show_account_info %>
        </div>

        <label>Shop Logo</label>
          <div class="panel padding-10">
            <div class="form-group">
              <div class="menu-item-img">
                <% if f.object.logo? %>
                  <p><%= f.object.name %></p>
                     <%= image_tag f.object.logo.url, :class => "img-thumbnail" %>
                <% else %>                
                  <%= image_tag "/image/menu_images/default.png", :class => "img-thumbnail" %>
                <% end %>          
              </div>
              <%= f.file_field :logo, :class => "img-thumbnail" %>
            </div>
          </div> 

        <div class="card">
          <div class="card-block">
            <label class="card-title">Shop Images</label>
            <div class="panel padding-10">
              <div class="form-group">
                <div class="menu-item-img">
                  <%= f.fields_for :display_images do |p| %>
                    <% if p.object.name.nil? %>
                      <%= image_tag "#{p.object.image}", :class => "img-thumbnail second-display", :size => "150x185"%>
                      <%= link_to '<i class="material-icons">delete</i>'.html_safe, settings_shop_display_image_path(p.object), method: :delete %>
                    <% end %>  
                  <% end %>   
                </div>
              </div>
            </div>
          </div> 
          <%= f.file_field :image, :multiple => true, name: "display_images[image][]" %>
        </div>  

         <div class="card">
          <div class="card-block">
            <label class="card-title">Audio File</label>
            <div class="panel padding-10">
              <div class="form-group">
                <div class="menu-item-img">
                  <%= f.fields_for :display_images do |p| %>
                    <% if !p.object.name.nil? %>
                      <%= "#{p.object.image}"%>
                    <% end %>
                  <% end %>   
                </div>
              </div>
            </div>
          </div> 
            <%= f.file_field :image, :multiple => false, name: "display_images[image][]", accept: 'audio/mp3', :class => "order" %>
        </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) address - to write shop's address <br>
          2) city - to write city <br>
          3) township -  to write township <br>
          4) state -  to write  state <br>
          5) phone_no -  to write shop's phone_no <br>
          6) reservation_no -  to write shop's reservation_no <br>
          7) license - to write license <br>
          8) license_data -  to write license data <br>
          9) base_currency -  to write base currency <br>
          10)cloud_token -  to write cloud token <br>
          11)cloud_url -  to write cloud url <br>
          12)owner_token -  to write shop's owner token <br>
          13)id_prefix - to write id prefix <br>
          14)is_rounding_adj -  to check for calculate rounding adj of shop <br>
          15)quick_sale_summary -  to check for view Quick Sale Summary  <br>
          16)calc_tax_order -  to check for tax calculation of shop  <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.submit") %> - <%= t("views.right_panel.detail.submit_btn_txt") %> <%= t("views.right_panel.detail.shop_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.shop_txt") %> <br>
          </p>
      </div>
    </div>  
  </div>
</div>
