<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
    <meta name="description" content="SMARTSALES RESTAURANTS"/>
    <meta name="author" content="code2LAB"/>

    <title>SmartSales : Restaurant</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= stylesheet_link_tag    'settings', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>

  <body>
    <%= render 'layouts/header' %>
    <div class="container-fluid">
      <% flash.each do |type, message| %>
        <%
          if type== "warning"
            alert = "alert-warning"
          elsif type== "notice"
            alert = "alert-success" 
          else
            alert = "alert-danger"
          end
        %>
						  <div class="alert <%=alert%> fade-in">
						    <button class="close" aria-hidden="true" data-dismiss="alert" type="button">×</button>
						    <%= message %>
						  </div>
			<% end %>
      <%= yield %>

    </div>
  </body>
</html>
