@extends('layouts.admin') @section('page-title') {{__('Tasks')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
@if(@$view == 'grid') @else @endif
@endsection @section('content')
@if(count($tasks) > 0) @foreach($tasks as $task)
{{ \App\Models\ProjectTask::$priority[$task->priority] }}
@if(str_replace('%','',$task->taskProgress()['percentage']) > 0){{ $task->taskProgress()['percentage'] }}@endif
{{ $task->name }}
@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>{{ Utility::getDateFormated($task->end_date) }}@endif
@endforeach @else
{{__('No tasks found')}}
@endif
@endsection @push('script-page') @endpush