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

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['from' => 'date_from', 'to' => 'date_to', 'label' => 'Date range', 'fromValue' => null, 'toValue' => null, 'required' => false, 'helpText' => 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((['from' => 'date_from', 'to' => 'date_to', 'label' => 'Date range', 'fromValue' => null, 'toValue' => null, 'required' => false, 'helpText' => 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); ?>
<fieldset <?php echo e($attributes->merge(['class' => 'mb-3'])); ?>>
    <legend class="admin-form-label"><?php echo e($label); ?> <?php if($required): ?><span class="admin-required">*</span><?php endif; ?></legend>
    <div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
        <?php if (isset($component)) { $__componentOriginal9bef96bfa6ee033d586c36801aeaf320 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9bef96bfa6ee033d586c36801aeaf320 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.date-picker','data' => ['name' => $from,'value' => old($from, $fromValue ?? request($from)),'required' => $required,'ariaLabel' => 'From date']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.date-picker'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($from),'value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old($from, $fromValue ?? request($from))),'required' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($required),'aria-label' => 'From date']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9bef96bfa6ee033d586c36801aeaf320)): ?>
<?php $attributes = $__attributesOriginal9bef96bfa6ee033d586c36801aeaf320; ?>
<?php unset($__attributesOriginal9bef96bfa6ee033d586c36801aeaf320); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9bef96bfa6ee033d586c36801aeaf320)): ?>
<?php $component = $__componentOriginal9bef96bfa6ee033d586c36801aeaf320; ?>
<?php unset($__componentOriginal9bef96bfa6ee033d586c36801aeaf320); ?>
<?php endif; ?>
        <?php if (isset($component)) { $__componentOriginal9bef96bfa6ee033d586c36801aeaf320 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9bef96bfa6ee033d586c36801aeaf320 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.date-picker','data' => ['name' => $to,'value' => old($to, $toValue ?? request($to)),'required' => $required,'ariaLabel' => 'To date']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.date-picker'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($to),'value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(old($to, $toValue ?? request($to))),'required' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($required),'aria-label' => 'To date']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9bef96bfa6ee033d586c36801aeaf320)): ?>
<?php $attributes = $__attributesOriginal9bef96bfa6ee033d586c36801aeaf320; ?>
<?php unset($__attributesOriginal9bef96bfa6ee033d586c36801aeaf320); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9bef96bfa6ee033d586c36801aeaf320)): ?>
<?php $component = $__componentOriginal9bef96bfa6ee033d586c36801aeaf320; ?>
<?php unset($__componentOriginal9bef96bfa6ee033d586c36801aeaf320); ?>
<?php endif; ?>
    </div>
    <?php if($helpText): ?><p class="admin-form-help"><?php echo e($helpText); ?></p><?php endif; ?>
</fieldset>
<?php /**PATH /Users/mac/Documents/e-com/resources/views/components/admin/date-range-picker.blade.php ENDPATH**/ ?>