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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['avatar' => null, 'title' => null, 'subtitle' => null, 'metrics' => null]));

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((['avatar' => null, 'title' => null, 'subtitle' => null, 'metrics' => null]), '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); ?>

<div class="qv-header">
    <div class="qv-header-top">
        <div class="d-flex align-items-center gap-4">
            <?php if($avatar): ?>
                <div class="qv-avatar-wrap">
                    <div class="qv-avatar-big <?php echo e($avatar->attributes->get('class')); ?>">
                        <?php echo e($avatar); ?>

                    </div>
                </div>
            <?php endif; ?>
            <div>
                <h3 class="mb-1 text-dark fw-800 d-flex align-items-center gap-2" style="font-size: 1.75rem; letter-spacing: -0.03em;">
                    <?php echo e($title); ?>

                </h3>
                <div class="d-flex align-items-center gap-2">
                    <?php echo e($subtitle); ?>

                </div>
            </div>
        </div>

        <?php if($metrics): ?>
            <div class="qv-header-metrics d-flex align-items-center gap-5 me-5">
                <?php echo e($metrics); ?>

            </div>
        <?php endif; ?>

        <div class="qv-header-actions">
            <?php echo e($actions ?? ''); ?>

            <button class="qv-action-btn qv-minimize" onclick="minimizeQuickView()" title="Küçült"><i class="fas fa-minus"></i></button>
            <button class="qv-action-btn qv-close" onclick="closeQuickView()" title="Kapat"><i class="fas fa-times"></i></button>
        </div>
    </div>

    <?php if(isset($tabs)): ?>
        <div class="qv-tabs-container">
            <div class="qv-tabs-wrap">
                <?php echo e($tabs); ?>

            </div>
        </div>
    <?php endif; ?>
</div>

<style>
    .qv-header { 
        background: #fff; 
        border-bottom: 1px solid #f1f5f9; 
        padding: 2rem 2.5rem 0; 
        z-index: 10; 
        flex-shrink: 0; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    }
    .qv-header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
    
    .qv-avatar-wrap { position: relative; }
    .qv-avatar-big { 
        width: 72px; height: 72px; border-radius: 20px; 
        background: linear-gradient(135deg, #2563eb, #1e40af); 
        color: #fff; display: flex; align-items: center; justify-content: center; 
        font-size: 1.8rem; font-weight: 800; 
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2); 
        border: 4px solid #fff;
    }
    .qv-avatar-big.corp { background: linear-gradient(135deg, #1e40af, #0369a1); }

    .qv-header-metrics { display: flex; }
    .qv-metric { text-align: right; }
    .qv-metric-label { font-size: 0.68rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 2px; }
    .qv-metric-val { font-size: 1.25rem; font-weight: 800; color: #1e293b; letter-spacing: -0.02em; }
    
    .qv-header-actions { display: flex; align-items: center; gap: 0.75rem; }
    .qv-action-btn {
        width: 40px; height: 40px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
        color: #64748b; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }
    .qv-action-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
    .qv-action-btn.qv-minimize:hover { color: #2563eb; border-color: #bfdbfe; }
    .qv-action-btn.qv-close:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; transform: rotate(90deg) translateY(0); }

    .qv-tabs-container { margin-top: 0.5rem; }
    .qv-tabs-wrap { 
        display: flex; gap: 0; position: relative; 
        overflow-x: auto; scrollbar-width: none; 
    }
    .qv-tabs-wrap::-webkit-scrollbar { display: none; }
</style>
<?php /**PATH /home/mehmetguruz/public_html/test/resources/views/components/quick-view/header.blade.php ENDPATH**/ ?>