<?php echo $header; ?>
<?php echo $column_left; ?>

<div id="content" class="isl-module-content">
  <script>var jsData = <?php echo json_encode($jsData); ?>;</script>
  <div class="page-header">
    <div class="container-fluid">
      <h1><?php echo $heading_title; ?></h1>

      <ul class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
          <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
        <?php } ?>
      </ul>

      <div class="pull-right">
        <button onclick="$('#form-isl-<?php echo $module['name']; ?>').submit();" type="submit" class="save-changes btn btn-primary" data-toggle="tooltip" title="<?php echo $button_save; ?>"><i class="fa fa-save"></i></button>
        <a href="<?php echo $link_cancel; ?>" class="btn btn-default" data-toggle="tooltip" title="<?php echo $button_cancel; ?>"><i class="fa fa-reply"></i></a>
      </div>
    </div>
  </div>

  <div class="container-fluid">
    <?php echo $unlincensedHtml; ?>

    <?php if ($error_warning) { ?>
      <div class="alert alert-danger">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        <i class="fa fa-exclamation-circle" style="margin-right:10px"></i><?php echo $error_warning; ?>
      </div>
    <?php } ?>
    <?php if ($success) { ?>
      <div class="alert alert-success autoSlideUp">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        <i class="fa fa-check-circle" style="margin-right:10px"></i><?php echo $success; ?>
      </div>
      <script>$('.autoSlideUp').delay(4000).fadeOut(600, function(){ $(this).show().css({'visibility':'hidden'}); }).slideUp(600);</script>
    <?php } ?>

    <div class="page-content">
      <div class="panel panel-default panel-body isl-main-panel">

        <form action="<?php echo $link_form; ?>" method="post" enctype="multipart/form-data" id="form-isl-<?php echo $module['name']; ?>" class="form-horizontal">
          <div class="tab-navigation form-inline" style="position:relative">
            <ul class="nav nav-tabs isl-main-nav" id="mainTabs">
              <li><a href="#tab-list" data-toggle="tab"><?php echo $text_manage; ?></a></li>
              <li><a href="#tab-module" data-toggle="tab"><?php echo $text_module; ?></a></li>
              <li><a href="#tab-page" data-toggle="tab"><?php echo $text_page; ?></a></li>
              <li><a href="#tab-setting" data-toggle="tab"><?php echo $text_settings; ?></a></li>
              <li><a href="#isense_support" data-toggle="tab"><?php echo $text_support; ?></a></li>
            </ul>

            <div style="position:absolute; top:11px; right:0;">
              <div class="form-group" style="margin:0; padding:0;">
                <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><?php echo $store['name']; ?>&nbsp;<span class="caret"></span></button>
                <ul class="dropdown-menu dropdown-menu-right">
                  <?php foreach ($stores as $store) { ?>
                    <li><a href="index.php?route=<?php echo $module['path']; ?>&store_id=<?php echo $store['store_id']; ?>&<?php echo $url_token; ?>"><?php echo $store['name']; ?></a></li>
                  <?php } ?>
                </ul>
              </div>
            </div>
          </div>

          <div class="tab-content">
              <div id="tab-list" class="tab-pane fade"><?php echo $tab_list; ?></div>
              <div id="tab-module" class="tab-pane fade"><?php echo $tab_module; ?></div>
              <div id="tab-page" class="tab-pane fade"><?php echo $tab_page; ?></div>
              <div id="tab-setting" class="tab-pane fade"><?php echo $tab_setting; ?></div>
              <div id="isense_support" class="tab-pane fade"><?php echo $tab_support; ?></div>
          </div>
        </form>

      </div>
    </div> <!-- /.page-content -->

  </div>
</div> <!-- /.isl-module-content -->

<?php echo $footer; ?>
