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

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

<div class="erp-page-header">
	<div class="erp-page-header-copy min-w-0 flex-1">
		<?php if ($eyebrow !== '' || $meta !== '') { ?>
			<div class="erp-page-meta">
				<?php if ($eyebrow !== '') { ?>
					<span class="erp-page-eyebrow"><?= html_escape($eyebrow); ?></span>
				<?php } ?>
				<?= $meta; ?>
			</div>
		<?php } ?>
		<?php if ($title !== '') { ?>
			<h1 class="erp-page-title"><?= html_escape($title); ?></h1>
		<?php } ?>
		<?php if ($subtitle !== '') { ?>
			<p class="erp-page-subtitle"><?= html_escape($subtitle); ?></p>
		<?php } ?>
	</div>
	<?php if ($actions !== '') { ?>
		<div class="erp-page-actions">
			<?= $actions; ?>
		</div>
	<?php } ?>
</div>
