
<div class="rcard" id="productCard" style="<?php echo e($products->isEmpty() ? 'display:none' : ''); ?>">
    <div class="rcard-head">
        <div class="rcard-icon" style="background:#d1fae5;color:#10b981"><i
                class="fas fa-box-open"></i></div>
        <div class="rcard-title" id="productCardTitle">Ürün / Hizmet Seçimi</div>
    </div>
    <div class="rcard-body">
        <div class="search-container" id="productSearchContainer" style="display:none">
            <i class="fas fa-search"></i>
            <input type="text" class="search-control" id="productSearchInput" placeholder="Hızlıca ara...">
        </div>
        
        <input type="hidden" name="product_id" id="productIdInput" value="<?php echo e(old('product_id')); ?>">
        <div id="productList" style="display:flex;flex-direction:column;gap:.5rem;">
            <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="prod-item <?php echo e(old('product_id') == $p->id ? 'sel' : ''); ?>" data-id="<?php echo e($p->id); ?>"
                    data-price="<?php echo e($p->base_price); ?>" data-currency="<?php echo e($p->currency); ?>"
                    data-hasdates="<?php echo e($p->productable_type ? '1' : '0'); ?>">
                    <div>
                        <div style="font-size:.86rem;font-weight:600;color:var(--text)"><?php echo e($p->name); ?>

                        </div>
                    </div>
                    <div class="prod-price"><?php echo e(number_format($p->base_price, 2)); ?> <?php echo e($p->currency); ?>

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

        <div class="pgn-box" id="productPagination" style="display:none">
            <button type="button" class="pgn-btn" id="prevProduct"><i class="fas fa-chevron-left"></i></button>
            <div class="pgn-info">Sayfa <b id="prodPage">1</b> / <b id="prodTotalPage">1</b></div>
            <button type="button" class="pgn-btn" id="nextProduct"><i class="fas fa-chevron-right"></i></button>
        </div>
    </div>
</div>


<div class="rcard" id="tourDateCard" style="display:none">
    <div class="rcard-head">
        <div class="rcard-icon" style="background:#fef3c7;color:#f59e0b"><i
                class="fas fa-calendar-star"></i></div>
        <div class="rcard-title">Tur Tarihi Seçimi</div>
    </div>
    <div class="rcard-body">
        <div class="search-container" id="dateSearchContainer" style="display:none">
            <i class="fas fa-calendar"></i>
            <input type="text" class="search-control" id="dateSearchInput" placeholder="Tarih ara (Örn: 25.04)...">
        </div>

        <input type="hidden" name="tour_date_id" id="tourDateIdInput">

        <div id="dateLoading"
            style="display:none;text-align:center;padding:1.5rem;color:var(--muted)">
            <i class="fas fa-spinner fa-spin me-2"></i>Tarihler yükleniyor…
        </div>

        <div id="dateGrid" class="date-grid"></div>

        <div class="pgn-box" id="datePagination" style="display:none">
            <button type="button" class="pgn-btn" id="prevDate"><i class="fas fa-chevron-left"></i></button>
            <div class="pgn-info">Sayfa <b id="datePage">1</b> / <b id="dateTotalPage">1</b></div>
            <button type="button" class="pgn-btn" id="nextDate"><i class="fas fa-chevron-right"></i></button>
        </div>

        <div id="noDateMsg"
            style="display:none;padding:.75rem;font-size:.82rem;color:var(--muted);background:#f8fafc;border-radius:10px;text-align:center">
            <i class="fas fa-calendar-times me-2" style="color:#c7d2fe"></i>Bu ürün için yaklaşan
            tarih bulunamadı.
        </div>

        <div class="custom-date-toggle" id="customDateToggle">
            <i class="fas fa-plus"></i> Özel tarih gir
        </div>

        <div id="customDateFields" style="display:none;margin-top:1rem">
            <div class="section-divider"><span>Özel Tarih</span></div>
            <div class="fg3">
                <div class="fl">
                    <label>Başlangıç Tarihi <span class="req">*</span></label>
                    <input type="date" name="start_date" id="startDate" class="fi"
                        value="<?php echo e(old('start_date', today()->format('Y-m-d'))); ?>">
                    <?php $__errorArgs = ['start_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="err"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
                <div class="fl">
                    <label>Bitiş Tarihi</label>
                    <input type="date" name="end_date" id="endDate" class="fi"
                        value="<?php echo e(old('end_date')); ?>">
                </div>
                <div class="fl">
                    <label>Kalkış Saati</label>
                    <input type="time" name="pickup_time" id="pickupTime" class="fi"
                        value="<?php echo e(old('pickup_time')); ?>">
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH C:\xampp\htdocs\acente\resources\views/agency/reservations/create/product_selection.blade.php ENDPATH**/ ?>