<?php $__env->startSection('content'); ?>
<div class="container-xxl flex-grow-1 container-p-y"><div class="card"><div class="card-header"><h5 class="mb-0">Edit Service Plan</h5></div><div class="card-body">
<form method="POST" action="<?php echo e(route('admin.service-plans.update',$servicePlan)); ?>" class="row g-3"><?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?>
<div class="col-md-6"><label class="form-label">Service</label><select name="service_id" class="form-select" required><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($service->id); ?>" <?php if($servicePlan->service_id==$service->id): echo 'selected'; endif; ?>><?php echo e($service->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?></select></div>
<div class="col-md-6"><label class="form-label">Name</label><input name="name" class="form-control" value="<?php echo e($servicePlan->name); ?>" required></div>
<div class="col-md-4"><label class="form-label">Price</label><input type="number" step="0.01" name="price" class="form-control" value="<?php echo e($servicePlan->price); ?>" required></div>
<div class="col-md-4"><label class="form-label">Currency</label><input name="currency" class="form-control" value="<?php echo e($servicePlan->currency); ?>"></div>
<div class="col-md-4"><label class="form-label">Max Slots</label><input type="number" min="1" name="max_slots" class="form-control" value="<?php echo e($servicePlan->max_slots); ?>" required></div>
<div class="col-12"><label class="form-label">Features</label><textarea name="features" class="form-control"><?php echo e($servicePlan->features); ?></textarea></div>
<div class="col-12 form-check"><input class="form-check-input" type="checkbox" name="is_active" value="1" <?php if($servicePlan->is_active): echo 'checked'; endif; ?>><label class="form-check-label">Active</label></div>
<div class="col-12 d-flex gap-2"><button class="btn btn-primary">Update</button></form><form method="POST" action="<?php echo e(route('admin.service-plans.destroy',$servicePlan)); ?>"><?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?><button class="btn btn-outline-danger">Delete</button></form></div>
</div></div></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\G_desizn\marketplace\resources\views/admin/service-plans/edit.blade.php ENDPATH**/ ?>