/
var
/
www
/
html
/
gnet_live
/
storage
/
framework
/
views
/
Upload File
HOME
<form id="form_edit" class="form_edit" method="post" action="<?php echo e(route('news.update', $news->id)); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-group"> <label for="article_category_id">Article Category: <span class="inline-color-red">*</span></label> <select name="article_category_id" id="article_category_id"> <option value="">Select Article Category</option> <?php $__currentLoopData = $articleCategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category->id); ?>" <?php if($news->article_category_id == $category->id): echo 'selected'; endif; ?>> <?php echo e($category->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="form-group"> <label for="nama_kategori">Title: <span class="inline-color-red">*</span></label> <input type="text" class="form-input" id="title" name="title" value="<?php echo e(@$news->title); ?>"> </div> <div class="form-group"> <label for="nama_kategori">Url: <span class="inline-color-red">*</span></label> <input type="text" class="form-input" id="url" name="url" value="<?php echo e(@$news->url); ?>"> </div> <div class="form-group"> <label for="nama_kategori">Author: <span class="inline-color-red">*</span></label> <input type="text" class="form-input" id="author" name="author" value="<?php echo e(@$news->author); ?>"> </div> <div class="form-group"> <label for="nama_kategori">Date: <span class="inline-color-red">*</span></label> <input type="date" class="form-input" id="date" name="date" value="<?php echo e($newsDate); ?>"> </div> <div class="form-group mb-3"> <label for="banner_image">Banner Image: <span class="inline-color-red">*</span></label> <input class="form-input" type="file" id="banner_image" name="banner_image" accept="image/*"> <small class="text-primary">Max. Size 2 MB | 750 x 320</small> <p>Existing File: <a href="<?php echo e(asset('assets/img/products/' . $news->banner_image)); ?>" target="_blank"><?php echo e($news->banner_image); ?></a></p> </div> <div class="form-group"> <label for="banner_image">Banner Image Low: <span class="inline-color-red">*</span></label> <input class="form-input" type="file" id="banner_image_low" name="banner_image_low" accept="image/*"> <small class="text-primary">Max. Size 2 MB | 750 x 320</small> <p>Existing File: <a href="<?php echo e(asset('assets/img/products/' . $news->banner_image_low)); ?>" target="_blank"><?php echo e($news->banner_image_low); ?></a></p> </div> <div class="form-group"> <label for="banner_image">Banner Image Mobile: <span class="inline-color-red">*</span></label> <input class="form-input" type="file" id="banner_image_mobile" name="banner_image_mobile" accept="image/*"> <small class="text-primary">Max. Size 2 MB | 750 x 320</small> <p>Existing File: <a href="<?php echo e(asset('assets/img/products/' . $news->banner_image_mobile)); ?>" target="_blank"><?php echo e($news->banner_image_mobile); ?></a></p> </div> <div class="form-group"> <label for="banner_image">Banner Image Mobile Low: <span class="inline-color-red">*</span></label> <input class="form-input" type="file" id="banner_image_mobile_low" name="banner_image_mobile_low" accept="image/*"> <small class="text-primary">Max. Size 2 MB | 750 x 320</small> <p>Existing File: <a href="<?php echo e(asset('assets/img/products/' . $news->banner_image_mobile_low)); ?>" target="_blank"><?php echo e($news->banner_image_mobile_low); ?></a></p> </div> <div class="form-group"> <label for="headline">Alt Text: <span class="inline-color-red">*</span></label> <input class="form-input" type="text" id="alt_text" name="alt_text" value="<?php echo e(@$news->alt_text); ?>"> </div> <div class="form-group"> <label for="description">Meta Title: <span class="inline-color-red">*</span></label> <input class="form-input" type="text" id="meta_title" name="meta_title" value="<?php echo e(@$news->meta_title); ?>"> </div> <div class="form-group"> <label for="cta">Meta Description: <span class="inline-color-red">*</span></label> <input class="form-input" type="text" id="meta_description" name="meta_description" value="<?php echo e(@$news->meta_description); ?>"> </div> <div class="form-group"> <label for="cta">Content: <span class="inline-color-red">*</span></label> <textarea class="form-input" id="content" name="content"><?php echo e(@$news->content); ?></textarea> </div> <div class="form-group"> <label for="cta">Keywords: <span class="inline-color-red">*</span></label> <input class="form-input" type="text" id="keywords" name="keywords" value="<?php echo e(@$news->keywords); ?>"> </div> <div class="text-end mt-3"> <input id="btn-save" type="submit" class="primary__btn" > </div> </form> <?php /**PATH /var/www/html/gnet_live/resources/views/edit/edit-news.blade.php ENDPATH**/ ?>