<?php if (isset($component)) { $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\AppLayout::class, []); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Edit Subscription Plan</title>
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    </head>
    <body>
        <div class="container mt-5">
            <h1>Edit Subscription Plan</h1>

            <?php if(session('success')): ?>
                <div class="alert alert-success"><?php echo e(session('success')); ?></div>
            <?php endif; ?>

            <!-- Edit Subscription Plan Form -->
            <form method="POST" action="<?php echo e(route('subscription-plans.update', $plan->id)); ?>" enctype="multipart/form-data" class="mb-4">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>
                <div class="form-group">
                    <label for="name">Plan Name</label>
                    <input type="text" class="form-control" id="name" name="name" value="<?php echo e($plan->name); ?>" required>
                </div>
                <div class="form-group">
                    <label for="description">Description</label>
                    <textarea class="form-control" id="description" name="description" required><?php echo e($plan->description); ?></textarea>
                </div>
                <div class="form-group">
                    <label for="price">Price</label>
                    <input type="number" step="0.01" class="form-control" id="price" name="price" value="<?php echo e($plan->price); ?>" required>
                </div>
                <div class="form-group">
                    <label for="user_type">User Type</label>
                    <select class="form-control" id="user_type" name="user_type" required>
                        <option value="user" <?php echo e($plan->user_type == 'user' ? 'selected' : ''); ?>>User</option>
                        <option value="vendor" <?php echo e($plan->user_type == 'vendor' ? 'selected' : ''); ?>>Vendor</option>
                        <option value="driver" <?php echo e($plan->user_type == 'driver' ? 'selected' : ''); ?>>Driver</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="valid_for">Valid For</label>
                    <select class="form-control" id="valid_for" name="valid_for" required>
                        <option value="week" <?php echo e($plan->valid_for == 'week' ? 'selected' : ''); ?>>Week</option>
                        <option value="month" <?php echo e($plan->valid_for == 'month' ? 'selected' : ''); ?>>Month</option>
                        <option value="year" <?php echo e($plan->valid_for == 'year' ? 'selected' : ''); ?>>Year</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="image">Image Upload</label>
                    <input type="file" class="form-control-file" id="image" name="image" accept="image/*">
                    <?php if($plan->image): ?>
                        <img src="<?php echo e(asset('storage/app/public/' . $plan->image)); ?>" alt="Plan Image" style="width: 100px; height: auto; margin-top: 10px;">
                    <?php endif; ?>
                </div>
                <button type="submit" class="btn btn-primary">Update Plan</button>
                <a href="<?php echo e(route('subscription.index')); ?>" class="btn btn-secondary">Cancel</a>
            </form>
        </div>
    </body>
    </html>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da)): ?>
<?php $component = $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da; ?>
<?php unset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da); ?>
<?php endif; ?>
<?php /**PATH /home/u152672654/domains/drycleaneo.com/public_html/admin/resources/views/subscription-plans/show.blade.php ENDPATH**/ ?>