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

$title = isset($title) ? $title : '';
$subtitle = isset($subtitle) ? $subtitle : '';
$actions = isset($actions) ? $actions : '';
$eyebrow = isset($eyebrow) ? $eyebrow : '';
$class = isset($class) ? $class : '';
?>

<div class="erp-section-header<?= $class ? ' ' . $class : ''; ?>">
	<div class="min-w-0 flex-1">
		<?php if ($eyebrow !== '') { ?>
			<p class="erp-section-eyebrow"><?= html_escape($eyebrow); ?></p>
		<?php } ?>
		<?php if ($title !== '') { ?>
			<h2 class="erp-section-title"><?= html_escape($title); ?></h2>
		<?php } ?>
		<?php if ($subtitle !== '') { ?>
			<p class="erp-section-subtitle"><?= html_escape($subtitle); ?></p>
		<?php } ?>
	</div>
	<?php if ($actions !== '') { ?>
		<div class="erp-section-actions">
			<?= $actions; ?>
		</div>
	<?php } ?>
</div>
