@php $logo_path = \App\Models\Utility::get_file('/'); @endphp
@if (count($tasks) > 0) @foreach ($tasks as $task) @php $permissions = \Auth::user()->getPermission($task->project_id); @endphp
{{ \App\Models\ProjectTask::$priority[$task->priority] }}
@if (str_replace('%', '', $task->taskProgress()['percentage']) > 0) {{ $task->taskProgress()['percentage'] }} @endif
@if (isset($permissions) && in_array('show task', $permissions)) {{ $task->title }} @else {{ $task->title }} @endif
@if (count($task->taskFiles) > 0)
{{ count($task->taskFiles) }}
@endif @if (count($task->comments) > 0)
{{ count($task->comments) }}
@endif @if ($task->checklist->count() > 0)
{{ $task->countTaskChecklist() }}
@endif
@if (!empty($task->end_date) && $task->end_date != '0000-00-00') end_date) < time()) class="text-danger" @endif>{{ \App\Models\Utility::getDateFormated($task->end_date) }} @endif
@if ($users = $task->users())
@foreach ($users as $key => $user) @if ($key < 3) @if ($user->avatar) @else img_avatar }} title="{{ $user->name }}"> @endif @else @break @endif @endforeach @if (count($users) > 3) @endif
@endif
@endforeach @else
{{ __('No tasks found') }}
@endif