Maintenance task

{{ $task->title }}

{{ $task->description ?: 'No description recorded.' }}

{{ $task->statusLabel() }}

Priority

{{ $task->priorityLabel() }}

Scheduled

{{ optional($task->scheduled_for)->format('d M Y') ?? 'Not set' }}

Due

{{ optional($task->due_at)->format('d M Y H:i') ?? 'Not set' }}

Assigned

{{ $task->assignedUser?->name ?: 'Unassigned' }}

Linked estate

Organisation

{{ $task->organisation?->name ?: $task->site?->organisation?->name ?: $task->camera?->site?->organisation?->name ?: 'No organisation' }}

Site

{{ $task->site?->name ?: $task->camera?->site?->name ?: 'No site' }}

Camera

@if ($task->camera) {{ $task->camera->name }} @else

No camera linked

@endif

Connectivity

@if ($task->camera)

Type

{{ str($task->camera->connectivity_type ?: 'unknown')->replace('_', ' ')->title() }}

Provider

{{ $task->camera->connectivity_provider ?: 'Not set' }}

Router

{{ $task->camera->router_model ?: 'Not set' }}

WAN IP

{{ $task->camera->wan_ip_address ?: 'Not set' }}

@else

Link a camera to show connectivity information.

@endif

Notes and completion

Task notes

{{ $task->notes ?: 'No task notes recorded.' }}

Recommendations

{{ $task->engineer_recommendations ?: 'No recommendations recorded.' }}

Completion notes

{{ $task->completion_notes ?: 'No completion notes recorded.' }}

Images and attachments

Uploaded maintenance images are stored on the Laravel public disk.

{{ $task->attachments->count() }} files
@if (auth()->user()?->canUploadMaintenanceTaskAttachments($task))
@csrf

JPG, PNG, or WEBP. Max {{ (int) ($maxUploadKb / 1024) }}MB each.

@error('attachments')

{{ $message }}

@enderror @error('attachments.*')

{{ $message }}

@enderror
@endif
@forelse ($task->attachments as $attachment) @empty

No images uploaded yet.

@endforelse
@push('scripts') @endpush