Server IP : 173.249.157.85 / Your IP : 52.15.61.81 Web Server : Apache System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : econtech ( 1005) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/econtech/public_html/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?> <div class="main-panel"> <div class="content-wrapper"> <div class="col-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h4 class="card-title">Edit Project</h4> <!-- <p class="card-description"> Create User </p> --> <form class="forms-sample" method="POST" action="<?php echo e(route('projects.update',['id'=>$project->id])); ?>" enctype="multipart/form-data"> <?php echo e(csrf_field()); ?> <div class="form-group"> <label for="exampleInputName1">Name</label> <input type="text" class="form-control" id="exampleInputName1" value="<?php echo e($project->title); ?>" name="title" required="required"> </div> <div class="form-group"> <label for="exampleInputName1">Contractor</label> <input type="text" class="form-control" id="exampleInputName1" value="<?php echo e($project->contractor); ?>" name="contractor" required="required"> </div> <div class="form-group"> <label for="exampleInputName1">Consultant</label> <input type="text" class="form-control" id="exampleInputName1" value="<?php echo e($project->consultant); ?>" name="consultant" required="required"> </div> <div class="form-group"> <label for="exampleInputName1">Year</label> <input type="text" class="form-control" id="exampleInputName1" value="<?php echo e($project->year); ?>" name="year" required="required"> </div> <div class="form-group"> <label for="exampleInputName1">Product Supplied</label> <input type="text" class="form-control" id="exampleInputName1" value="<?php echo e($project->product_supplied); ?>" name="product_supplied" required="required"> </div> <div class="row"> <div class="col-md-6"> <div class="form-group row"> <label for="example-tel-input" class="col-2 col-form-label">Image</label> <div class="col-10"> <input type="file" name="image" id="file" /> <label for="file" class="btn-2">Click to upload</label><br> <?php if(isset($project->image)): ?> <img src="<?php echo e(asset($project->image)); ?>" width="70px" class="img-thumbnail"> <?php else: ?> No Image <?php endif; ?> </div> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label>Gallery</label> <div class="kt-radio-inline"> <label class="kt-radio"> <input type="radio" name="gallery" value="1" <?php if($project->gallery==1): ?> checked <?php endif; ?>> Yes <span></span> </label> <label class="kt-radio"> <input type="radio" name="gallery" value="0" <?php if($project->gallery==0): ?> checked <?php endif; ?>> No <span></span> </label> </div> </div> </div> </div> <div class="kt-portlet__foot"> <div class="kt-form__actions"> <button type="submit" class="btn btn-primary">Submit</button> </div> </div> <!-- <button class="btn btn-light">Cancel</button> --> </form> </div> <?php if($project->gallery==1): ?> <div class="card-body"> <a href="<?php echo e(route('media.create',['id'=>$project->id])); ?>" style="float: right;" class="btn btn-info">Add Gallery</a> <h4 class="card-title">Gallery Table</h4> <table class="table table-hover"> <thead> <tr> <th>ID</th> <th>Image</th> <th>Actions</th> </tr> </thead> <tbody> <?php $__currentLoopData = $project->medias; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $media): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($media->id); ?></td> <td> <img src="<?php echo e(asset($media->image)); ?>" class="img-thumbnail" width="50px"> </td> <td> <a href="<?php echo e(route('media.edit',['id'=>$media->id])); ?>" class="btn btn-success edit" title="Edit"><i class="fas fa-edit"></i></a> <a href="javascript:void(0)" class="trigger-btn btn btn-danger delete" id="<?php echo e($media->id); ?>" data-toggle="modal" url="<?php echo e(url('/')); ?>" page="media"><i class="fas fa-trash"></i></a> </td> </tr> <div id="myModal" class="modal fade"> <div class="modal-dialog modal-confirm"> <div class="modal-content"> <div class="modal-header"> <div class="icon-box"> <i class="fas fa-trash"></i> </div> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> <h4 class="modal-title">Are you sure?</h4> <!-- <div class="modal-body"> <p>Do you really want to delete these records? This process cannot be undone.</p> </div> --> <form id="form" action="" method="GET"> <?php echo e(csrf_field()); ?> <?php echo e(method_field('DELETE')); ?> <div class="modal-body"> <p id="msg"></p> </div> <div class="modal-footer"> <button type="button" class="btn btn-info" data-dismiss="modal">Cancel</button> <button type="submit" class="btn btn-danger">Delete</button> </div> </form> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> CKEDITOR.replace( 'editor1' ); </script> <script> CKEDITOR.replace( 'editor2' ); </script> <script> CKEDITOR.replace( 'editor3' ); </script> <script> CKEDITOR.replace( 'editor4' ); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.new_dashboard', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>