%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/digiprint/storage/framework/views/
Upload File :
Create Path :
Current File : /var/www/html/digiprint/storage/framework/views/e8d657e6e060a3fd3122ec1581d8ed7c8b297dad.php

<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h1>
                            <span>Technologies</span>
                            <span class="pull-right">
                                <?php if($technology && $technology->id): ?>
                                    <a class="btn btn-default"
                                       href="<?php echo e(route('dashboard.technologies.gallery', $technology->id)); ?>">
                                    <span>Gallery</span>
                                </a>
                                <?php endif; ?>
                                <a class="btn btn-success" href="<?php echo e(route('dashboard.technologies')); ?>">
                                <span>Back</span>
                            </a>
                            </span>
                        </h1>
                    </div>
                </div>

                <form class="form-horizontal" method="POST" autocomplete="off" enctype="multipart/form-data"
                      action="<?php echo e(route('dashboard.technologies.createOrUpdate', $id)); ?>">
                    <?php echo e(csrf_field()); ?>


                    <div class="form-group<?php echo e($errors->has('name') ? ' has-error' : ''); ?>">
                        <label for="name" class="col-md-3 control-label">Name</label>
                        <div class="col-md-6">
                            <input id="name" type="text" class="form-control" name="name"
                                   value="<?php echo e($technology->name); ?>" required autofocus>
                        </div>
                    </div>

                    <div class="form-group<?php echo e($errors->has('order') ? ' has-error' : ''); ?>">
                        <label for="order" class="col-md-3 control-label">Order</label>
                        <div class="col-md-6">
                            <input id="order" type="number" class="form-control" name="order"
                                   value="<?php echo e($technology->order); ?>" required>
                            <?php if($errors->has('order')): ?>
                                <span class="help-block">
                                    <strong><?php echo e($errors->first('order')); ?></strong>
                                </span>
                            <?php endif; ?>
                        </div>
                    </div>

                    <div class="form-group<?php echo e($errors->has('description') ? ' has-error' : ''); ?>">
                        <label for="description" class="col-md-3 control-label">Description</label>

                        <div class="col-md-6">
                            <textarea id="description" class="form-control" name="description" rows="11" required
                            ><?php echo e($technology->description); ?></textarea>
                            <?php if($errors->has('description')): ?>
                                <span class="help-block">
                                    <strong><?php echo e($errors->first('description')); ?></strong>
                                </span>
                            <?php endif; ?>
                        </div>
                    </div>

                    <div class="form-group<?php echo e($errors->has('file') ? ' has-error' : ''); ?>">
                        <label for="description" class="col-md-3 control-label">Image</label>

                        <div class="col-md-6">
                            <input type="file" name="file" id="file" accept="image/*" onchange="fileChanged(this)">
                            <?php if($errors->has('file')): ?>
                                <span class="help-block">
                                    <strong><?php echo e($errors->first('file')); ?></strong>
                                </span>
                            <?php endif; ?>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                            <?php if($technology->media()->count() > 0): ?>
                                <img class="img img-responsive full-width" id="image-preview-uploaded"
                                     src="<?php echo e(env('APP_URL') . 'uploads/' . $technology->media()->where('media_type', \Digiprint\Models\Media::MEDIA_TYPE_IMAGE_CATEGORY)->first()->file_name); ?>">
                            <?php endif; ?>
                            <img class="img img-responsive full-width" id="image-preview">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-8 col-md-offset-3">
                            <button type="submit" class="btn btn-primary">
                                Save
                            </button>
                        </div>
                    </div>
                </form>

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

<script>
  function fileChanged(input) {
    if (input.files && input.files[0]) {
      var reader = new FileReader();

      reader.onload = function (e) {
        $('#image-preview').attr('src', e.target.result);
        $('#image-preview-uploaded').css('display', 'none');
      };

      reader.readAsDataURL(input.files[0]);
    }
  }
</script>
<?php echo $__env->make('dashboard.layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Zerion Mini Shell 1.0