@extends('layouts.app') @section('content')
Go Back

Task: {{$task->name??'-'}}

Project: {{ $project->name??'-' }}

@if(auth()->user()->roles[0]->hasPermissionTo('task-delete') == true)
@method('DELETE') @csrf
@endif @if(auth()->user()->roles[0]->hasPermissionTo('project-edit') == true) @endif
{!!$task->description??'-'!!}
    @foreach($task->users as $user)
  • {{$user->name}}
  • @endforeach
@if(auth()->user()->roles[0]->hasPermissionTo('comment-list') == true) @foreach($task->comments()->orderBy('id')->get() as $comment)

{{$comment->author->name}}

{{$comment->author->email}}

{{$comment->created_at}}
{!!$comment->description!!}
@if(auth()->user()->roles[0]->hasPermissionTo('comment-edit') == true && (!$comment->author->roles[0]->hasPermissionTo('comment-edit') || auth()->user()->id == $comment->author->id)) @endif @if(auth()->user()->roles[0]->hasPermissionTo('comment-delete') == true && (!$comment->author->roles[0]->hasPermissionTo('comment-delete') || auth()->user()->id == $comment->author->id))
@method('DELETE') @csrf
@endif
@if(auth()->user()->roles[0]->hasPermissionTo('comment-edit') == true && (!$comment->author->roles[0]->hasPermissionTo('comment-edit') || auth()->user()->id == $comment->author->id)) @endif
@endforeach @endif @if(auth()->user()->roles[0]->hasPermissionTo('comment-create') == true)
@csrf

Comment

@endif
@if(auth()->user()->roles[0]->hasPermissionTo('task-edit') == true) @endif @endsection @section('afterScript') @endsection