UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
eagleead
/
resources
/
views
/
ambiente
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
lesson-comments.blade.php
<div class="row" id="div-comment"> <div class="col-xs-12 col-md-12 @if($resource['resource_type_id'] == 18) col-lg-12 @else col-lg-8 @endif" id="div-my-video" style="margin-top: 30px;"> <div class="panel panel-default"> <div class="panel-body"> <br><h3>{!! trans('ambiente_lesson.titleComment') !!}</h3><br> <div id="newComment"> {!! Form::open(['method' => 'POST', 'class' => '', 'role' => 'form', 'url' => route('student.add.comment'), 'id' => 'create']) !!} {!! Form::hidden('resource_id', $resource['id']) !!} {!! Form::hidden('course_id', $resource['course_id']) !!} {!! Form::hidden('module_id', $resource['module_id']) !!} {!! Form::hidden('resource_type_id', $resource['resource_type_id']) !!} {!! Form::hidden('return_url', \Request::fullUrl()) !!} <div class="form-group"> {!! Form::textarea('comment', null, ['class' => 'form-control', 'style' =>'height: 80px', 'id' => 'comment']) !!} </div> <div>{!! Form::submit( trans('ambiente_lesson.btnComment'), ['class' => 'btn btn-success pull-right']) !!}</div> <div class="clearfix"></div> {!! Form::close() !!} </div> @foreach($comments as $comment) <ul> <li> <div class="row"> <div class="col-sm-1"> @if(isset($comment['user']['picture'])) <img width="45px" height="45px" src="/storage/profiles/pictures/{{$comment['user']['picture']}}" class="img-circle img-responsive"> @else <img width="45px" height="45px" src="https://via.placeholder.com/45x45" class="img-circle img-responsive"> @endif </div> <div class="col-sm-11"> <div class="well" style="margin-left: -20px;"> <p><b>{{ $comment['user']['name'] }} <span class="pull-right text-muted"><small>{{ $comment['human_date'] }}</small></span></b></p> <p>{{ $comment['comment'] }}</p><br> <button class="btn btn-default btn-sm reply" commentId="{{ $comment['id'] }}">{!! trans('ambiente_lesson.btnCommentReply') !!}</button> @if(Auth::user()->id == $comment['user']['id']) <button class="btn btn-danger btn-sm delete-all" commentId="{{ $comment['id'] }}">{!! trans('ambiente_lesson.btnCommentDelete') !!}</button> @endif </div> </div> </div> </li> <ul> @foreach($comment['comments'] as $answers) <li class="div-answers"> <div class="row"> <div class="col-sm-1"> @if(isset($comment['user']['picture'])) <img width="45px" height="45px" src="/storage/profiles/pictures/{{$comment['user']['picture']}}" class="img-circle img-responsive"> @else <img width="45px" height="45px" src="https://via.placeholder.com/45x45" class="img-circle img-responsive"> @endif </div> <div class="col-sm-11"> <div class="well" style="margin-left: -20px;"> <p><b>{{ $answers['user']['name'] }} <span class="pull-right text-muted"><small>{{ $answers['human_date'] }}</small></span></b></p> <p>{{ $answers['comment'] }}</p><br> @if(Auth::user()->id == $answers['user']['id']) <button class="btn btn-danger btn-sm delete-reply" commentId="{{ $answers['id'] }}">{!! trans('ambiente_lesson.btnCommentDelete') !!}</button> @endif </div> </div> </div> </li> @endforeach </ul> </ul> @endforeach <div class="row"><div class="col-sm-11 col-sm-offset-1"><div id="replayComment" style="margin-left: -20px;"><b>{!! trans('ambiente_lesson.txtAddComment') !!}</b><br></div></div></div> </div> </div> </div> </div> <script> $(document).on('click', '.reply', function () { let resourceId = '{{ $resource['id'] }}'; let courseId = '{{ $resource['course_id'] }}'; let moduleId = '{{ $resource['module_id'] }}'; let resourceTypeId = '{{ $resource['resource_type_id'] }}'; let commentId = $(this).attr('commentId'); let returnUrl = '{{ \Request::fullUrl() }}'; //exibir a div para add o comentario $("#replayComment").show(); $("#replayComment").append('<form action="{{ route('student.add.comment.reply') }}" method="POST">'); $("#replayComment form").append('<input type="hidden" name="resource_id" value="' + resourceId +'" />'); $("#replayComment form").append('<input type="hidden" name="course_id" value="' + courseId + '" />'); $("#replayComment form").append('<input type="hidden" name="module_id" value="' + moduleId + '" />'); $("#replayComment form").append('<input type="hidden" name="resource_type_id" value="' + resourceTypeId +'" />'); $("#replayComment form").append('<input type="hidden" name="comment_id" value="' + commentId + '" />'); $("#replayComment form").append('<input type="hidden" name="return_url" value="' + returnUrl + '" />'); $("#replayComment form").append('<textarea rows="3" name="comment" class="form-control"></textarea>'); $("#replayComment form").append('<br><input type="submit" id="savebutton" class="btn btn-success btn-sm" value="{!! trans('ambiente_lesson.btnCommentPublish') !!}" />'); //rolar até a div do comentario $("html, body").animate({ scrollTop: $(document).height() }, 500); $('.reply').prop('disabled', !$(this).disabled); }); $(document).on('click', '.delete-all', function () { let commentId = $(this).attr('commentId'); let returnUrl = '{{ \Request::fullUrl() }}'; $.ajax({ url: '{{ route('student.delete.comments.replies') }}', type: 'POST', data: {comment_id: commentId}, success: function (data) { window.location.reload(); } }); }); $(document).on('click', '.delete-reply', function () { let commentId = $(this).attr('commentId'); let returnUrl = '{{ \Request::fullUrl() }}'; $.ajax({ url: '{{ route('student.delete.reply') }}', type: 'POST', data: {comment_id: commentId}, success: function (data) { window.location.reload(); } }); }); </script>
Copyright © 2026 - UnknownSec