

<?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 Contact Data Item</h2>
                    </div>
                    <?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, false); ?></li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        </div>
                    <?php endif; ?>
                    <div class="card-body">
                        <form action="<?php echo e(route('data.update', $data->id), false); ?>" method="POST" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>


                            <div class="row">
                                <div class="col-md-6 mb-3">
                                    <label for="title" class="form-label text-primary fw-bold">icon</label>
                                    <input type="text" name="iframe" class="form-control"
                                        value="<?php echo e(old('iframe', $data->iframe), false); ?>" required>
                                </div>
                                <div class="col-md-6 mb-3">
                                    <label for="description" class="form-label text-primary fw-bold">from_title</label>
                                    <textarea name="from_title" class="form-control"><?php echo e(old('from_title', $data->from_title), false); ?></textarea>
                                </div>
                                <div class="col-md-6 mb-3">
                                    <label for="description"
                                        class="form-label text-primary fw-bold">from_short_title</label>
                                    <textarea name="from_short_title" class="form-control"><?php echo e(old('from_short_title', $data->from_short_title), false); ?></textarea>
                                </div>
                                <div class="col-md-6 mb-3">
                                    <label for="description" class="form-label text-primary fw-bold">banner_title</label>
                                    <textarea name="banner_title" class="form-control"><?php echo e(old('title', $data->banner_title), false); ?></textarea>
                                </div>
                                <div class="col-md-6 mb-3">
                                    <label for="title" class="form-label text-primary fw-bold">image</label>

                                    <?php if($data->banner_image): ?>
                                        <img src="<?php echo e(asset('img/' . $data->banner_image), false); ?>" alt="image" class="mt-2"
                                            width="100">
                                        <input type="file" name="banner_image" class="form-control">
                                    <?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/ContactPage/edit.blade.php ENDPATH**/ ?>