<?php $__env->startSection('title', 'Satış Düzenle – ' . $reservation->reservation_code); ?>
<?php $__env->startSection('page_title', 'Satış Düzenle'); ?>

<?php echo $__env->make('agency.sales.edit.styles', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container-fluid">

        <div class="d-flex align-items-center gap-2 mb-3" style="font-size:.83rem;color:#94a3b8">
            <a href="<?php echo e(route('agency.sales.index')); ?>" style="color:#6366f1;text-decoration:none;font-weight:600"><i
                    class="fas fa-shopping-bag me-1"></i>Satışlar</a>
            <i class="fas fa-chevron-right" style="font-size:10px"></i>
            <a href="<?php echo e(route('agency.sales.show', $reservation)); ?>"
                style="color:#6366f1;text-decoration:none;font-weight:600"><?php echo e($reservation->reservation_code); ?></a>
            <i class="fas fa-chevron-right" style="font-size:10px"></i>
            <span style="color:#0f172a;font-weight:600">Düzenle</span>
        </div>

        <?php if($errors->any()): ?>
            <div class="alert alert-danger border-0 shadow-sm mb-3" style="border-radius:12px;font-size:.85rem">
                <ul class="mb-0 ps-3"><?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><li><?php echo e($e); ?></li><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>
            </div>
        <?php endif; ?>
        <?php if(session('success')): ?>
            <div class="alert alert-success border-0 mb-3" style="border-radius:12px;font-size:.85rem"><i
                    class="fas fa-check-circle me-2"></i><?php echo e(session('success')); ?></div>
        <?php endif; ?>

        <form method="POST" action="<?php echo e(route('agency.sales.update', $reservation)); ?>" id="resForm">
            <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?>

            <div class="form-wrap">
                <div class="row g-4">
                    <div class="col-lg-8">
                        <?php echo $__env->make('agency.sales.edit.product_type', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php echo $__env->make('agency.sales.edit.product_selection', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php echo $__env->make('agency.sales.edit.customer_selection', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php echo $__env->make('agency.sales.edit.date_selection', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php echo $__env->make('agency.sales.edit.counts_and_locations', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php echo $__env->make('agency.sales.edit.passenger_forms', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php echo $__env->make('agency.sales.edit.extra_fields', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php echo $__env->make('agency.sales.edit.notes', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                    </div>

                    <div class="col-lg-4">
                        <?php echo $__env->make('agency.sales.edit.sidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                    </div>
                </div>

                <div class="form-footer mt-4">
                    <a href="<?php echo e(route('agency.sales.show', $reservation)); ?>" class="btn btn-outline-secondary"
                        style="border-radius:10px;padding:.6rem 1.5rem">İptal</a>
                    <button type="submit" class="btn text-white fw-bold shadow-sm"
                        style="background:linear-gradient(135deg,#6366f1,#8b5cf6);border-radius:11px;padding:.6rem 2.5rem;min-width:180px">
                        <i class="fas fa-save me-2"></i>Değişiklikleri Kaydet
                    </button>
                </div>

            </div>
        </form>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('agency.sales.edit.scripts', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<?php echo $__env->make('agency.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\acente\resources\views/agency/sales/edit.blade.php ENDPATH**/ ?>