{{ ucfirst(str_replace('_', ' ', $task->status)) }}

{{ $task->title }}

{{ \Carbon\Carbon::parse($task->scheduled_at)->format('d M, Y') }} {{ ucfirst($task->type) }} Task

Task Details

@if($task->location_name || ($task->latitude && $task->longitude))
Location

{{ $task->location_name ?? 'Location not specified' }} @if($task->latitude && $task->longitude) Open in Maps @endif

@endif @if($task->client)
Client

{{ $task->client->fullName() }}

@if($task->client->phone) +{{ $task->client->phone }} @endif
@endif @if($task->assignedUser)
Assigned To

{{ $task->assignedUser->fullName() }}

@endif

Description

{{ $task->description ?? 'No description provided for this task.' }}

Update Status

@csrf
@if($task->latitude && $task->longitude)

Location Map

@endif
Open in App @if($task->client && $task->client->phone) Call Client @endif