Sindbad~EG File Manager

Current Path : /home/webg5288/laravel/compro/storage/framework/views/
Upload File :
Current File : //home/webg5288/laravel/compro/storage/framework/views/4d827d1472640f3ec17533bbd9831f9b94623233.php


<?php $__env->startSection('title', 'Edit Category'); ?>

<?php $__env->startSection('breadcrumbs', 'Categories' ); ?>

<?php $__env->startSection('second-breadcrumb'); ?>
    <li>Edit</li>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-body">
                    <div class="col-12 mb-3">
                        <h3 align="center"></h3>
                    </div>
                    <form action="<?php echo e(route('categories.update', [$category->id])); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <input type="hidden" name="_method" value="PUT">
                        <div class="col-10">
                            <div class="mb-3">
                                <label for="category" class="font-weight-bold">Category Name</label>
                                <input type="text" name="name" placeholder="Category name..." class="form-control <?php echo e($errors->first('name') ? "is-invalid" : ""); ?>" value="<?php echo e($category->name); ?>" required>
                                <div class="invalid-feedback"> <?php echo e($errors->first('name')); ?></div>
                            </div>
                            <div class="mb-3">
                                <label for="slug" class="font-weight-bold">Category Slug</label>
                                <input type="text" name="slug" placeholder="Category Slug..." class="form-control <?php echo e($errors->first('slug') ? "is-invalid" : ""); ?>" value="<?php echo e($category->slug); ?>">
                                <div class="invalid-feedback"> <?php echo e($errors->first('slug')); ?></div>
                            </div>
                            <div class="mb-3">
                                <label for="description" class="font-weight-bold">Category Description</label>
                                <textarea type="text" name="description" placeholder="Category Description..." class="form-control <?php echo e($errors->first('description') ? "is-invalid" : ""); ?>" value="<?php echo e($category->description); ?>"></textarea>
                                <div class="invalid-feedback"> <?php echo e($errors->first('description')); ?></div>
                            </div>
                            <div class="mb-3">
                                <label for="image" class="font-weight-bold d-flex">Image</label>
                                <?php if($category->image): ?>
                                    
                                    <img src="<?php echo e(asset('category_image/'.$category->image)); ?>" alt="" width="120px">
                                <?php else: ?>   
                                    No Image
                                <?php endif; ?>
                                <input type="file" name="image" class="form-control mt-2" >
                                <small class="text-muted">Kosongkan jika tidak ingin mengubah gambar.</small>
                            </div>
                            <div class="mb-3 mt-4">
                                <a href="<?php echo e(route('categories.index')); ?>" class="btn btn-md btn-secondary">Back</a>
                                <button type="submit" class="btn btn-md btn-success">Save</button>
                            </div>

                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\DEVELOP\LARAVEL SOURCE\compro\resources\views/categories/edit.blade.php ENDPATH**/ ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists