<?php
    $rn = $routeName ?? 'owner.reports';
?>
<div class="mb-6 flex flex-wrap items-center gap-2">
    <span class="text-xs font-semibold uppercase tracking-wider text-slate-500">Cepat:</span>
    <?php $__currentLoopData = $presets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <a href="<?php echo e(route($rn, ['date_from' => $p['from'], 'date_to' => $p['to']])); ?>"
            class="rounded-full border border-slate-200 bg-white px-3 py-1.5 text-xs font-medium text-slate-700 shadow-sm transition hover:border-sky-300 hover:bg-sky-50 hover:text-sky-900">
            <?php echo e($p['label']); ?>

        </a>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>

<div class="mb-6 rounded-2xl border border-slate-200 bg-white p-4 shadow-sm md:p-5">
    <form method="get" action="<?php echo e(route($filterRoute)); ?>" class="flex flex-wrap items-end gap-4">
        <div>
            <label for="df" class="mb-1 block text-xs font-medium uppercase tracking-wide text-slate-500">Dari</label>
            <input id="df" type="date" name="date_from" value="<?php echo e($dateFrom); ?>" required
                class="rounded-lg border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500">
        </div>
        <div>
            <label for="dt" class="mb-1 block text-xs font-medium uppercase tracking-wide text-slate-500">Sampai</label>
            <input id="dt" type="date" name="date_to" value="<?php echo e($dateTo); ?>" required
                class="rounded-lg border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 focus:border-sky-500 focus:outline-none focus:ring-1 focus:ring-sky-500">
        </div>
        <button type="submit" class="rounded-lg bg-sky-600 px-4 py-2 text-sm font-semibold text-white shadow-sm transition hover:bg-sky-500">Tampilkan</button>
        <a href="<?php echo e(route('owner.reports.export', ['date_from' => $dateFrom, 'date_to' => $dateTo])); ?>"
            class="rounded-lg border border-slate-300 bg-white px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">Ekspor CSV</a>
        <a href="<?php echo e(route('owner.reports.integration-status')); ?>" target="_blank" rel="noopener"
            class="rounded-lg border border-slate-300 bg-white px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">Status API</a>
    </form>
    <p class="mt-3 text-xs text-slate-500">Diperbarui: <?php echo e($generatedAt->timezone(config('app.timezone'))->format('d M Y H:i')); ?> (<?php echo e(config('app.timezone')); ?>) · Tiap tab adalah halaman terpisah — tidak perlu scroll mencari bagian.</p>
</div>
<?php /**PATH C:\xampp\htdocs\sysorder\resources\views/owner/reports/_filters.blade.php ENDPATH**/ ?>