<form action="<?php echo e(url('/manageads')); ?>" method="POST" enctype="multipart/form-data">
<div class="row">
    <div class="col-md-6 col-md-offset-1">
            <div class="form-group">
                <label>ADS POSITION</label>
                <select name="position" class="form-control" required>
                    <option value="<?php echo e($ad->position); ?>"><?php echo e($ad->position); ?></option>
                    <option value="Left">Left</option>
                    <option value="Right">Right</option>
                </select>
            </div>

            <div class="form-group">
                <label>ADS PAGE</label>
                <select name="page" class="form-control" required>
                    <option value="<?php echo e($ad->page); ?>"><?php echo e($ad->page); ?></option>
                    <option value="All">All Pages</option>
                    <option value="Homepage">Homepage</option>
                    <option value="Store">Store</option>
                    <option value="About">About Us Page</option>
                    <option value="FAQs">FAQs Page</option>
                </select>
            </div>

            <div class="form-group">
                <label>WEBSITE URL (if any)</label>
                <input class="form-control" name="url" placeholder="URL here" value="<?php echo e($ad->website); ?>">
            </div>

            <div class="form-group">
                <label>THUMBNAIL DESCRIPTION (if any)</label>
                <input class="form-control" name="description" placeholder="Description here" maxlength="50" value="<?php echo e($ad->description); ?>">
            </div>
    </div>
    <div class="col-md-4">
            <input type="hidden" name="id" value="<?php echo e($ad->id); ?>">
            <input type="hidden" name="image" value="<?php echo e($ad->ads_image); ?>">
        <div class="col-sm-8 col-md-offset-2">
            <div class="fileupload fileupload-new" data-provides="fileupload">
                <div class="fileupload-new thumbnail" style="width: 150px; height: 250px;"><img src="<?php echo e(asset('images/ads')); ?>/<?php echo e($ad->ads_image); ?>" alt="" /></div>
                <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 160px; max-height: 150px; line-height: 20px;"></div>
                <div>
                <span class="btn btn-sm btn-file btn-default"><span class="fileupload-new">SELECT IMAGE</span><span class="fileupload-exists">Change</span>
                <input type="file" name="file"/></span>
                    <a href="#" class="btn btn-sm btn-danger fileupload-exists" data-dismiss="fileupload">Remove</a>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
    <center><button class="btn btn-sm btn-success">UPDATE ADVERT</button></center>

</div>
</form>
