<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'title' => '',
    'titleSize' => 'lg', // xs, sm, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl
    'titleVariant' => 'black', // black, primary, success, danger, warning, info
    'titleWeight' => 'bold', // bold, semibold
    'titleCenter' => false, // true, false
    'subtitle' => '',
    'subtitleSize' => 'sm', // xs, sm, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl
    'subtitleVariant' => 'gray-600', // black, primary, success, danger, warning, info
    'subtitleWeight' => 'normal', // normal, bold, semibold
    'subtitleCenter' => false, // true, false
    'class' => '',
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'title' => '',
    'titleSize' => 'lg', // xs, sm, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl
    'titleVariant' => 'black', // black, primary, success, danger, warning, info
    'titleWeight' => 'bold', // bold, semibold
    'titleCenter' => false, // true, false
    'subtitle' => '',
    'subtitleSize' => 'sm', // xs, sm, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl
    'subtitleVariant' => 'gray-600', // black, primary, success, danger, warning, info
    'subtitleWeight' => 'normal', // normal, bold, semibold
    'subtitleCenter' => false, // true, false
    'class' => '',
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<?php
$variantTitleClasses = match($titleVariant) {
    'black' => 'text-black',
    'primary' => 'text-indigo-600',
    'success' => 'text-green-600',
    'danger' => 'text-red-600',
    'warning' => 'text-yellow-600',
    'info' => 'text-blue-600',
    'gray-600' => 'text-gray-600',
    default => 'text-gray-600',
};

$variantSubtitleClasses = match($subtitleVariant) {
    'black' => 'text-black',
    'primary' => 'text-indigo-600',
    'success' => 'text-green-600',
    'danger' => 'text-red-600',
    'warning' => 'text-yellow-600',
    'info' => 'text-blue-600',
    default => 'text-gray-600',
};
?>

<div class="<?php echo e($class); ?>">
    <h2 class="text-<?php echo e($titleSize); ?> font-<?php echo e($titleWeight); ?> <?php echo e($variantTitleClasses); ?> <?php echo e($titleCenter ? 'text-center' : ''); ?>"><?php echo e($title); ?></h2>
    <!--[if BLOCK]><![endif]--><?php if($subtitle): ?>
    <p class="text-<?php echo e($subtitleSize); ?> font-<?php echo e($subtitleWeight); ?> <?php echo e($variantSubtitleClasses); ?> <?php echo e($subtitleCenter ? 'text-center' : ''); ?>"><?php echo e($subtitle); ?></p>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</div><?php /**PATH D:\WORK\MAARIFA\ANGO\DESKTOP\V4\ango-desktop\resources\views/components/basics/section-title.blade.php ENDPATH**/ ?>