<h2>Edit Blog</h2>
<form id="blogForm" action="<?php echo e(route('blogs.update', $blog->id)); ?>" method="POST" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <?php echo method_field('PUT'); ?>

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

    <div class="mb-3">
        <label>Content</label>
        <textarea id="summernote" name="content" class="form-control"><?php echo e($blog->content); ?></textarea>
    </div>

    <div class="mb-3">
        <label>Image</label>
        <input type="file" name="image" class="form-control">
        <?php if($blog->image): ?>
            <p>Current Image:</p>
            <img src="<?php echo e(asset('storage/'.$blog->image)); ?>" width="100">
        <?php endif; ?>
    </div>

    <button type="submit" class="btn btn-primary">Update</button>
</form>
<?php /**PATH C:\xampp\htdocs\trinex\resources\views/admin/blog/edit.blade.php ENDPATH**/ ?>