<?php defined('BASEPATH') or exit('No direct script access allowed');

$header = isset($header) ? $header : '';
$toolbar = isset($toolbar) ? $toolbar : '';
$table = isset($table) ? $table : '';
$body = isset($body) ? $body : '';
$footer = isset($footer) ? $footer : '';
$class = isset($class) ? $class : '';
$table_wrap_class = isset($table_wrap_class) ? $table_wrap_class : '';
$body_class = isset($body_class) ? $body_class : '';
?>

<section class="erp-panel erp-table-shell min-w-0<?= $class ? ' ' . $class : ''; ?>">
	<?= $header; ?>
	<?= $toolbar; ?>
	<?php if ($table !== '') { ?>
		<div class="erp-table-wrap erp-table-wrap--standard<?= $table_wrap_class ? ' ' . $table_wrap_class : ''; ?>">
			<?= $table; ?>
		</div>
	<?php } ?>
	<?php if ($body !== '') { ?>
		<div class="erp-panel-body<?= $body_class ? ' ' . $body_class : ''; ?>">
			<?= $body; ?>
		</div>
	<?php } ?>
	<?= $footer; ?>
</section>
