@foreach ($discussionReplies as $key=>$reply)
@if ($key == 0)
{{ $discussion->title }}
{{ ucwords($discussion->category->name) }}
{!! Form::hidden('project_id', $project->id, ['id' => 'project_id']) !!}
@endif
@if ($key != 0 && is_null($discussion->best_answer_id) && $discussion->user_id == $user->id)
@elseif($discussion->best_answer_id == $reply->id)
@endif
@if(count($reply->files) > 0)
{{--
--}}
@forelse($reply->files as $file)
-
{{ $file->filename }}
{{ $file->created_at->diffForHumans() }}
@if(is_null($file->external_link))
@endif
@empty
-
@lang('messages.noFileUploaded')
@endforelse
{{--
--}}
@endif
@endforeach