<?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</h5></div><div class="card-body">
<form method="POST" action="<?php echo e(route('admin.services.update',$service)); ?>" class="row g-3"><?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?>
<div class="col-md-6"><label class="form-label">Category</label><select name="category_id" class="form-select" required><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($category->id); ?>" <?php if($service->category_id==$category->id): echo 'selected'; endif; ?>><?php echo e($category->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($service->name); ?>" required></div>
<div class="col-md-6"><label class="form-label">Slug</label><input name="slug" class="form-control" value="<?php echo e($service->slug); ?>"></div>
<div class="col-md-6"><label class="form-label">Logo URL</label><input name="logo" class="form-control" value="<?php echo e($service->logo); ?>"></div>
<div class="col-12"><label class="form-label">Description</label><textarea name="description" class="form-control"><?php echo e($service->description); ?></textarea></div>
<div class="col-12 form-check"><input class="form-check-input" type="checkbox" name="is_active" value="1" <?php if($service->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.services.destroy',$service)); ?>"><?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\services\edit.blade.php ENDPATH**/ ?>