<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php init_head(); ?>
<div id="wrapper">
  <div class="content">
      <div class="tw-mt-12 sm:tw-mt-0 col-md-8 col-md-offset-2">
    <div class="row mbot15">
      <div class="col-md-12">
        <h4 class="tw-font-bold tw-text-xl">
          <?= isset($group) ? _l('edit_item_group') : _l('new_item_group'); ?>
        </h4>
      </div>
    </div>
    <div class="panel_s">
        <?php echo form_open(admin_url('item_groups/group' . (isset($group) ? '/' . $group->id : ''))); ?>
          <?php echo form_hidden('groupid', isset($group) ? $group->id : ''); ?>
      <div class="panel-body">
          <div class="row">
            <div class="col-md-12">
              <?php
                $value = isset($group) ? $group->name : '';
                echo render_input('name', 'item_group_name', $value);
              ?>
            </div>
          </div>
      </div>
          <div class="panel-footer text-right">
            <button type="submit" class="btn btn-primary only-save">
              <?= _l('submit'); ?>
            </button>
          </div>
        <?php echo form_close(); ?>
    </div>
      </div>
  </div>
</div>
<?php init_tail(); ?>
</body>
</html>