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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['title' => '', 'action' => null, 'actionUrl' => null, 'actionLabel' => 'Ajouter']));

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' => '', 'action' => null, 'actionUrl' => null, 'actionLabel' => 'Ajouter']), '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="bg-white rounded-xl shadow-sm border border-slate-200 overflow-hidden">
    <?php if($title || $action || $actionUrl): ?>
    <div class="px-4 sm:px-6 py-4 border-b border-slate-200 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
        <?php if($title): ?>
            <h2 class="font-semibold text-slate-800 text-lg"><?php echo e($title); ?></h2>
        <?php endif; ?>
        <?php if($actionUrl): ?>
            <a href="<?php echo e($actionUrl); ?>" class="inline-flex items-center gap-2 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium rounded-lg transition-colors shrink-0">
                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/></svg>
                <?php echo e($actionLabel); ?>

            </a>
        <?php elseif($action): ?>
            <button type="button" @click="<?php echo e($action); ?>" class="inline-flex items-center gap-2 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium rounded-lg transition-colors shrink-0">
                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/></svg>
                <?php echo e($actionLabel); ?>

            </button>
        <?php endif; ?>
    </div>
    <?php endif; ?>
    <div class="p-4 sm:p-6">
        <?php echo e($slot); ?>

    </div>
</div>
<?php /**PATH C:\Softsys\stock_transfert\resources\views/components/page-card.blade.php ENDPATH**/ ?>