

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

        <div class="form-group">
            <label for="page">Select Page</label>
            <select name="page" id="page" class="form-control" required>
                <option value="about" <?php echo e($banner->page == 'about' ? 'selected' : ''); ?>>About</option>
                <option value="contact" <?php echo e($banner->page == 'contact' ? 'selected' : ''); ?>>Contact</option>
                <option value="services" <?php echo e($banner->page == 'services' ? 'selected' : ''); ?>>Services</option>
                <option value="blog" <?php echo e($banner->page == 'blog' ? 'selected' : ''); ?>>Blog</option>
            </select>
        </div>

        <div class="form-group">
            <label for="title">Banner Title</label>
            <input type="text" name="title" id="title" class="form-control" value="<?php echo e($banner->title); ?>" required>
        </div>

        <div class="form-group">
            <label for="image">Banner Image</label>
            <input type="file" name="image" id="image" class="form-control">
            <?php if($banner->image): ?>
                <img src="<?php echo e(asset($banner->image)); ?>" width="120" class="mt-2" alt="Current Image">
            <?php endif; ?>
        </div>

        <button type="submit" class="btn btn-primary">Update Banner</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/page-banners/edit.blade.php ENDPATH**/ ?>