%PDF- %PDF-
Direktori : /var/www/html/sljcon/storage/framework/views/ |
Current File : /var/www/html/sljcon/storage/framework/views/23023367d58132b6ca1da4a68494bde36ed2220a.php |
<?php $__env->startSection('content'); ?> <head> <title>SLJCON - Condividi la tua Esperienza</title> </head> <div class="page_breadcrumb_area"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="page_breadcrumb_inner"> <div class="page_breadcrumb_title"> <h2> <span class="trail-item trail-end">condividi la tua esperienza</span> </h2> </div> </div> <div class="breadcrumb_area"> <div class="breadcrumb-trail breadcrumbs"> <ul class="trail-items"> <li class="trail-item trail-begin"> <a href="<?php echo e(url('/')); ?>" rel="home"><span>Home</span></a> </li> <li class="trail-item trail-end"> <span>Condividi la tua Esperienza</span> </li> </ul> </div> </div> </div> </div> </div> </div> <div class="container"> <div class="row"> <?php if($msg): ?> <div class="col-md-12 p_bottom_30 p_top_30"> <div class="alert alert-success"> <div class="alert--inner text-center"><?php echo e($msg); ?></div> </div> </div> <?php else: ?> <div class="col-md-12 m_top_30"> <?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; ?> <form class="form-horizontal" method="POST" autocomplete="off" enctype="multipart/form-data" action="<?php echo e(route('testimonial.store')); ?>"> <?php echo e(csrf_field()); ?> <div class="center m_top_30 m_bottom_30"> <h2>CONDIVIDI LA TUA ESPERIENZA</h2> </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="5" required autofocus><?php echo e(old('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('fullName') ? ' has-error' : ''); ?>"> <label for="fullName" class="col-md-3 control-label">Full Name</label> <div class="col-md-6"> <input id="fullName" type="text" class="form-control" name="fullName" required value="<?php echo e(old('fullName')); ?>"/> <?php if($errors->has('fullName')): ?> <span class="help-block"> <strong><?php echo e($errors->first('fullName')); ?></strong> </span> <?php endif; ?> </div> </div> <div class="form-group<?php echo e($errors->has('jobPosition') ? ' has-error' : ''); ?>"> <label for="jobPosition" class="col-md-3 control-label">Job Position</label> <div class="col-md-6"> <input id="jobPosition" type="text" class="form-control" name="jobPosition" required value="<?php echo e(old('jobPosition')); ?>" placeholder="CEO XYZ.com"/> <?php if($errors->has('jobPosition')): ?> <span class="help-block"> <strong><?php echo e($errors->first('jobPosition')); ?></strong> </span> <?php endif; ?> </div> </div> <div class="form-group<?php echo e($errors->has('file') ? ' has-error' : ''); ?>"> <label for="file" class="col-md-3 control-label">Profile 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"> <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> <?php endif; ?> </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('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>