69 lines
2.0 KiB
PHP
69 lines
2.0 KiB
PHP
<div class="col-xxl-4 col-xl-4 col-lg-12">
|
|
<div class="card p-0 m-0">
|
|
<div class="card-block p-2 m-0">
|
|
<h4 class="project-option-title">{{ __('Document Comments') }}</h4>
|
|
<form action="{{ route('comments.store') }}" method="POST">
|
|
@csrf
|
|
<input type="hidden" name="workflow_document_id" value="{{$workflow_document->id}}">
|
|
<input type="hidden" name="tab" value="view_workflow_tab">
|
|
<textarea class="form-control" name="comment" rows="3" placeholder="{{ __('Enter Comment') }}"></textarea>
|
|
<button type="submit" class="btn-primary float-right">{{ __('Save') }}</button>
|
|
</form>
|
|
</div>
|
|
<div class="card-block comment-block">
|
|
<div class="container-fluid justify-content-center border-left border-right">
|
|
@if(isset($comments))
|
|
@foreach($comments as $comment)
|
|
<div class="d-flex py-2">
|
|
<div class="second py-1 px-1">
|
|
<span class="text-body">{!! $comment->comment !!}</span>
|
|
<div class="d-flex justify-content-between py-1 pt-2">
|
|
<div>
|
|
<img src="{{asset('uploads/user_folder/'.$comment->user->getProfilePicture())}}" width="30">
|
|
<span class="text-user">{{$comment->user->getFullName()}}</span>
|
|
<span class="text-user small">{{ dataTranslation($comment->user->getDepartmentName()) }}</span>
|
|
</div>
|
|
</div>
|
|
<div><span class="text-date float-right">{{ $comment->created_at->format('d-m-Y H:m') }}</span></div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
.comment-block {
|
|
background-color: #f1f4f5;
|
|
padding:0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.second {
|
|
width: 100%;
|
|
background-color: white;
|
|
border-radius: 4px;
|
|
box-shadow: 5px 5px 1px #aaa;
|
|
}
|
|
|
|
.text-body {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #56575b
|
|
}
|
|
|
|
.text-user {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
margin-left: 6px;
|
|
color: #56575b
|
|
}
|
|
|
|
.text-date {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-align: right;
|
|
color: #828386
|
|
}
|
|
</style> |