@php $addContractDiscussionPermission = user()->permission('add_contract_discussion'); $editContractDiscussionPermission = user()->permission('edit_contract_discussion'); $deleteContractDiscussionPermission = user()->permission('delete_contract_discussion'); @endphp
@if ($addContractDiscussionPermission == 'all' || $addContractDiscussionPermission == 'added')
{{ user()->name }}
@lang('app.cancel') @lang('app.submit')
@endif
@if ($viewDiscussionPermission != 'none') @forelse ($contract->discussion as $discussion)

{{ $discussion->user->name }}

{{ $discussion->created_at->diffForHumans() }}

{!! $discussion->message !!}
@empty
- @lang('messages.noCommentFound') -
@endforelse @endif