@extends('layouts.dashboard') @section('title', 'Proj Mgr - ' . $task->title) @section('content') @php $userRoleNames = auth()->user() ? auth()->user()->roles->pluck('name')->map(fn($r) => strtolower($r))->all() : []; $isMasterAdmin = in_array('master admin', $userRoleNames) || in_array('master_admin', $userRoleNames); $isTeamMember = $task->project->created_by === auth()->id() || $task->project->project_manager_id === auth()->id() || $task->project->teamMembers->contains('id', auth()->id()); $canEditTask = $isMasterAdmin || $isTeamMember; @endphp
No attachments.
@endifClick any status to save immediately. Approving will redirect you to the project page.
{{ $task->serviceCall->notes }}
{{ $task->assignedUser->name }}
{{ ucfirst($task->assignedUser->role) }}
Unassigned
@endif{{ \Carbon\Carbon::parse($task->start_date)->format('M j, Y') }}
{{ \Carbon\Carbon::parse($task->due_date)->format('M j, Y') }} @if(\Carbon\Carbon::parse($task->due_date)->isPast() && $task->status !== 'approved') (Overdue) @endif
{{ $task->estimated_hours }} hours
{{ $task->creator->name }}
{{ $task->created_at->diffForHumans() }}
{{ $taskTypeLabels[$task->task_type] ?? ucfirst($task->task_type) }}
Supported formats: JPG, PNG, GIF, WebP, MP4, MOV, AVI, WebM, PDF
Maximum size: 100MB per file โข Multiple files: Supported
Attached Files ()