

<?php $__env->startSection('content'); ?>
<div class="container">
   <div class="card p-3">
    <h3>Edit Service</h3>
    <form action="<?php echo e(route('services_product.update', $service->id)); ?>" method="POST" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

        <?php if($errors->any()): ?>
            <div class="alert alert-danger">
                <ul><?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><?php echo e($error); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>
            </div>
        <?php endif; ?>

        <div class="mb-3">
            <label>Current Image</label><br>
            <?php if($service->image): ?>
                <img src="<?php echo e(asset($service->image)); ?>" width="120" class="mb-2">
            <?php endif; ?>
            <input type="file" name="image" class="form-control" />
        </div>

        <div class="mb-3">
            <label>Title</label>
            <input type="text" name="title" value="<?php echo e($service->title); ?>" class="form-control" required />
        </div>

        <div class="mb-3">
            <label>Description</label>
            <textarea name="description" class="form-control" rows="5" id="editor"><?php echo e($service->description); ?></textarea>
        </div>

        <button type="submit" class="btn btn-primary">Update</button>
    </form>
   </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.admin-dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\HP\Desktop\nehan-tech-solution\app\resources\views/admin/pages/service/edit.blade.php ENDPATH**/ ?>