




<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-12">
                <div class="card shadow-lg">
                    <div class="card-header bg-primary text-white text-center">
                        <h2>Edit Rural</h2>
                    </div>
                    <div class="card-body">
                        <form action="<?php echo e(route('press.update', $press->id), false); ?>" method="POST" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <?php echo method_field('PUT'); ?>

                            <div class="row">
                                <div class="col-md-6 mb-3">
                                    <label for="title" class="form-label text-primary fw-bold">Title</label>
                                    <input type="text" name="title" class="form-control"
                                        value="<?php echo e(old('title', $press->title), false); ?>" required>
                                </div>
                                <div class="col-md-6 mb-3">
                                    <label for="para" class="form-label text-primary fw-bold">Paragraph</label>
                                    <textarea name="label" class="form-control"><?php echo e(old('label', $press->label), false); ?></textarea>
                                </div>
                                <div class="col-md-6 mb-3">
                                    <label for="para" class="form-label text-primary fw-bold">Paragraph</label>
                                    <textarea name="para" class="form-control"><?php echo e(old('para', $press->para), false); ?></textarea>
                                </div>

                                <div class="col-md-6 mb-3">
                                    <label for="image" class="form-label"> image</label>
                                    <input type="file" name="image" class="form-control">
                                    <?php if($press->image): ?>
                                        <img src="<?php echo e(asset('img/' . $press->image), false); ?>" alt="image" class="mt-2"
                                            width="100">
                                    <?php endif; ?>
                                </div>


                            </div>

                            <div class="col-md-12 text-center">
                                <button type="submit" class="btn btn-success">Update</button>
                            </div>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\laragon\laragon\www\BrandedAdmin\mhmahedi\resources\views/admin/press/edit.blade.php ENDPATH**/ ?>