<?php echo $__env->make('Admin.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>



<div class="main-content">
    <div class="container">

        <br>
        <br>
        <br>
        <br>

        <?php if($errors->any()): ?>
        <div class="alert alert-danger">
          <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
    <?php endif; ?>
    <div class="row">
        <div class="col-md-12">
            <div class="card card-shadow mb-4">
                <div class="card-header">
                    <div class="card-title" style="float: left;">
                        Edit Item
                    </div> 
                    <div class="card-title" style="float: right;">
                        <a href="<?php echo e(route('item-add.index')); ?>" class="btn btn-warning">View</a>
                        <a href="<?php echo e(url('/Admin-dashboard')); ?>" class="btn btn-danger">X</a>
                    </div>
                </div>
                <div class="card-body">

                    <form method="post" class=" right-text-label-form feedback-icon-form" action="<?php echo e(route('item-add.update',[$data->id])); ?>" enctype="multipart/form-data">
                       <?php echo method_field('PATCH'); ?>
                       <?php echo csrf_field(); ?>
                       


                       <div class="form-group row">
                        <label class="col-sm-4 control-label" for="username1">SL</label>
                        <div class="col-sm-5">
                            <input type="number" class="form-control" id="sl" name="sl" placeholder="ex:1" value="<?php echo e($data->sl); ?>" />
                            <input type="hidden" class="form-control" id="admin_id" name="admin_id"  value="<?php echo e(Auth('admin')->user()->id); ?>" />
                        </div>
                    </div>



                    <div class="form-group row">
                        <label class="col-sm-4 control-label" for="username1">Item name</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="item_name" name="item_name" placeholder="Item name" value="<?php echo e($data->item_name); ?>"/>
                        </div>
                    </div>


                    <div class="form-group row">
                        <label class="col-sm-4 control-label" for="picture1">Picture</label>
                        <div class="col-sm-5">
                            <input type="file" class="form-control" id="image" name="image" />
                            <br>
                            <div uk-lightbox="animation: fade">
                             <a href="<?php echo e(asset('/public/itemImage')); ?>/<?php echo e($data->image); ?>"> 
                                <img src="<?php echo e(asset('public/itemImage')); ?>/<?php echo e($data->image); ?>" style="height: 80px">
                            </a>
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <label class="col-sm-4 control-label" for="picture1">Banner</label>
                    <div class="col-sm-5">
                        <input type="file" class="form-control" id="banner" name="banner" />
                        <br>
                        <div uk-lightbox="animation: fade">
                         <a href="<?php echo e(asset('/public/itemImage')); ?>/<?php echo e($data->banner); ?>"> 
                            <img src="<?php echo e(asset('public/itemImage')); ?>/<?php echo e($data->banner); ?>" style="height: 80px">
                        </a>
                    </div>
                </div>
            </div>


                                     


                                    <div class="form-group row">
                                        <div class="col-sm-8 ml-auto">
                                            <button type="submit" class="btn btn-info" name="signup1" value="Sign up">update</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php echo $__env->make('Admin.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u568543278/domains/firm2door.com/public_html/ecommerce-3/resources/views/Admin/item/modal.blade.php ENDPATH**/ ?>