

<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row">
       
        <div class="col-12">
            <div>
                <div class="d-flex justify-content-between align-items-center">
                    <div class="mb-2 mb-lg-0">
                        <h3 class="mb-0  text-white">Banner Edit</h3>
                    </div>
                    <div>
                        <nav aria-label="breadcrumb text-white">
                            <ol class="breadcrumb">
                              <li class="breadcrumb-item"><a class="text-white text-decoration-none" href="<?php echo e(route('banner.index')); ?>">Baner List</a></li>
                
                              <li class="breadcrumb-item text-white active" aria-current="page">Edit </li>
                            </ol>
                          </nav>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-12 mt-3">
            <div class="card p-3">
                <form action="<?php echo e(route('banner.update', $banner->id)); ?>" method="POST" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('PUT'); ?>
                    <div class="form-group mb-3">
                        <label for="image_name">Image Title</label>
                        <input type="text" name="image_name" id="image_name" class="form-control" value="<?php echo e($banner->image_name); ?>" required>
                    </div>
                    <div class="form-group mb-3">
                        <label for="image"> Image</label>
                        <input type="file" name="image" id="image" class="form-control">
                    </div>
                   
                    <div class="mb-3">
                        <!-- Display the current image from 'uploads/user' directory -->
                        <img src="<?php echo e(asset($banner->image)); ?>" alt="<?php echo e($banner->image_name); ?>" style="width: 100px;">
                    </div>
                    <button type="submit" class="btn btn-success mt-3">Update Banner</button>
                </form>
            </div>
        </div>
           
    </div>
    
   
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.admin-dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/pataneye/public_html/resources/views/admin/pages/banners/edit.blade.php ENDPATH**/ ?>