@extends('layouts.app') @section('title', 'Tasks') @section('page-title', 'Tasks') @section('content')
| # | Task Title | @if(auth()->user()->canManageTasks() || auth()->user()->isMarketing())Assigned To | @endifPriority | Planned Start | Planned End | Actual Start | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $task->id }} | {{ Str::limit($task->title, 40) }} @if($task->isOverdue()) OVERDUE @endif | @if(auth()->user()->canManageTasks() || auth()->user()->isMarketing())
{{ strtoupper(substr($task->assignedUser->name, 0, 1)) }}
{{ $task->assignedUser->name }}
|
@endif
{{ $task->priority }} | {{ $task->planned_start->format('d M Y') }} | {{ $task->planned_end->format('d M Y') }} | {{ $task->actual_start ? $task->actual_start->format('d M Y') : '—' }} | {{ str_replace('_', ' ', ucfirst($task->status)) }} |
{{-- Quick action buttons based on status --}}
@if($task->assigned_to === auth()->id() || auth()->user()->canManageTasks())
@if($task->status === 'pending')
@elseif($task->status === 'in_progress')
@elseif($task->status === 'rejected')
@endif
@endif
@if(!in_array($task->status, ['approved', 'completed']))
@endif
@if(auth()->user()->canManageTasks())
@endif
|
| No tasks found. | ||||||||