<!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    'application', media: 'all' %>
    <%= javascript_include_tag 'application' %>
</head>

<body class="theme-indigo" style="overflow-x:hidden">
    <!-- 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>
        <%= render 'layouts/left_sidebar' %>
        <%= render 'layouts/right_sidebar' %>
    </section>

    <!-- Main Content -->
    <section class="content" style="margin:0; padding:2px 20px;">
       <% flash.each do |type, message| %>
          <% if type == "notice"
               color = "alert-success"
            elsif type == "error"
                color = "alert-danger"
            else
                color = "bg-black"
            end %>

            <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 %>
        <%= render_breadcrumb %>
        <%= yield %>
    </section>
</body>
</html>
