@extends('layout.default') @section('title', $__t('Tasks')) @section('activeNav', 'tasks') @section('viewJsName', 'tasks') @push('pageScripts') @endpush @push('pageStyles') @endpush @section('content')

@yield('title') {{ $__t('Add') }}

@include('components.userfields_thead', array( 'userfields' => $userfields )) @foreach($tasks as $task) @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $task->id) )) @endforeach
{{ $__t('Task') }} {{ $__t('Due') }} Hidden category {{ $__t('Assigned to') }} Hidden status
@if($task->done == 0) name) }}" data-task-id="{{ $task->id }}" data-task-name="{{ $task->name }}"> @else name) }}" data-task-id="{{ $task->id }}" data-task-name="{{ $task->name }}"> @endif {{ $task->name }} {{ $task->due_date }} @if($task->category_id != null) {{ FindObjectInArrayByPropertyValue($taskCategories, 'id', $task->category_id)->name }} @else {{ $__t('Uncategorized') }}@endif @if($task->assigned_to_user_id != null) {{ GetUserDisplayName(FindObjectInArrayByPropertyValue($users, 'id', $task->assigned_to_user_id)) }} @endif @if($task->done == 1) text-muted @endif @if(!empty($task->due_date) && $task->due_date < date('Y-m-d')) overdue @elseif(!empty($task->due_date) && $task->due_date < date('Y-m-d', strtotime("+$nextXDays days"))) duesoon @endif
@stop