<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>SmartSales : Restaurant</title>
    <%= csrf_meta_tags %>
    <!-- Favicon-->
    <link rel="icon" href="/favicon.ico" type="image/x-icon">

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

<body class="theme-indigo">
    <!-- Page Loader -->
    <div class="page-loader-wrapper">
        <div class="loader">
            <div class="preloader">
                <div class="spinner-layer pl-blue">
                    <div class="circle-clipper left">
                        <div class="circle"></div>
                    </div>
                    <div class="circle-clipper right">
                        <div class="circle"></div>
                    </div>
                </div>
            </div>
            <p>Please wait...</p>
        </div>
    </div>
    <%= render 'shared/license_expire_warning' if Rails.env.production? %>
    <!-- #END# Page Loader -->
    <!-- Overlay For Sidebars -->
    <div class="overlay"></div>
    <!-- #END# Overlay For Sidebars -->
    <%= render 'layouts/header' %>
    <section>
      <%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
      <% if food_court %>
        <%= render 'layouts/foodcourt_left_sidebar' %>
      <% else %>
          <%= render 'layouts/left_sidebar' %>
      <%end%>
        <%= render 'layouts/right_sidebar' %>
    </section>

    <!-- Main Content -->
    <section class="content">
        <% flash.each do |type, message| %>
            <% if !flash["errors"]%>
                <%
                    if type == "notice"
                       color = "alert-success"
                    end
                    if type == "error"
                        color = "alert-danger"
                    end
                %>
                <% if flash["error"] || flash["notice"]%>
                    <p id="notify_message" class="hidden" data-placement-from="top" data-message="<%=message%>" data-placement-align="center"
                    data-animate-enter="" data-animate-exit="" data-color-name="<%=color%>" >
                    </p>
                <% end %>
            <% end %>
        <% end %>
        <%= render_breadcrumb %>
        <%= yield %>
    </section>
</body>

</html>
