<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div>
    <a href="#"
       class="btn btn-info add-new-property-category mbot15 pull-right"><?php echo _l('propertybase_add_new_property_category'); ?></a>
</div>
<div class="row">
    <div class="col-md-12">
        <?php render_datatable([
            _l('id'),
            _l('propertybase_property_category_name'),
            _l('options'),
        ], $tab['table_class']); ?>
    </div>
</div>

<div class="clearfix"></div>
<div class="modal fade" id="new-property-category-modal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title"><?php echo _l('propertybase_property_category_details') ?></h4>
            </div>
            <?php echo form_open_multipart(admin_url(PROPERTYBASE_MODULE_NAME . '/settings/property_categories'), array('id' => 'new-property-category-form')); ?>
            <?php echo form_hidden('id'); ?>
            <div class="modal-body">
                <?php echo render_input('name', 'propertybase_category_name'); ?>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo _l('close'); ?></button>
                <button type="submit" class="btn btn-info btn-submit"><?php echo _l('submit'); ?></button>
            </div>
            <?php echo form_close(); ?>
        </div>
    </div>
</div>