<?php
    $is_cat_code_enabled = isset($module_category_data['enable_taxonomy_code']) && !$module_category_data['enable_taxonomy_code'] ? false : true;
?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('category.create')): ?>
	<button type="button" class="tw-dw-btn tw-dw-btn-primary tw-text-white tw-dw-btn-sm pull-right btn-modal" data-href="<?php echo e(action([\App\Http\Controllers\TaxonomyController::class, 'create']), false); ?>?type=<?php echo e($category_type, false); ?>" data-container=".category_modal">
		<i class="fa fa-plus"></i>
		<?php echo app('translator')->get( 'messages.add' ); ?>
	</button>
	<br><br>
<?php endif; ?>

 <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('category.view')): ?>
    <div class="table-responsive">
        <table class="table table-bordered table-striped" id="category_table" style="width: 100%;">
            <thead>
                <tr>
                    <th><?php if(!empty($module_category_data['taxonomy_label'])): ?> <?php echo e($module_category_data['taxonomy_label'], false); ?> <?php else: ?> <?php echo app('translator')->get( 'category.category' ); ?> <?php endif; ?></th>
                    <?php if($is_cat_code_enabled): ?>
                        <th><?php echo e($module_category_data['taxonomy_code_label'] ?? __( 'category.code' ), false); ?></th>
                    <?php endif; ?>
                    <th><?php echo app('translator')->get( 'lang_v1.description' ); ?></th>
                    <th><?php echo app('translator')->get( 'messages.action' ); ?></th>
                </tr>
            </thead>
        </table>
    </div>
<?php endif; ?>

<div class="modal fade category_modal" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel">
</div><?php /**PATH /www/wwwroot/cielopos.com/resources/views/taxonomy/ajax_index.blade.php ENDPATH**/ ?>