@extends('layouts.app') @section('title', 'Installation') @section('breadcrumb')Installation {{ $installation->job?->job_number }}@endsection @section('content')

Installation — {{ $installation->job?->job_number }}

@php $sc = match($installation->status) { 'scheduled' => 'blue', 'in_progress' => 'yellow', 'completed' => 'green', 'on_hold' => 'orange', default => 'gray' }; @endphp {{ ucwords(str_replace('_', ' ', $installation->status)) }}

{{ $installation->job?->contact?->full_name }}

{{ $installation->progress_pct ?? 0 }}%
Overall progress
@if($installation->today_progress)

Today's Progress

{{ $installation->today_progress }}

@endif

Installation Tasks

@forelse($installation->tasks as $task)
{{ $task->task }}
{{ $task->room_area }} · {{ $task->assignedTo?->name ?? 'Unassigned' }}
@php $sc = match($task->status) { 'completed' => 'green', 'in_progress' => 'yellow', 'pending' => 'gray', default => 'gray' }; @endphp {{ ucwords(str_replace('_', ' ', $task->status)) }}
{{ $task->progress_pct ?? 0 }}% complete
@empty

No tasks assigned

@endforelse
@if($installation->notes)

Notes

{{ $installation->notes }}

@endif

Installation Details

Lead Installer
{{ $installation->leadInstaller?->name ?? '—' }}
Start Date
{{ $installation->start_date?->format('d M Y') ?? '—' }}
Est. Completion
{{ $installation->estimated_completion?->format('d M Y') ?? '—' }}
@if($installation->actual_completion)
Actual Completion
{{ $installation->actual_completion->format('d M Y') }}
@endif
Working Hours
{{ $installation->working_hours ?? '—' }}
Days on Site
{{ $installation->days_on_site ?? '—' }}
@if($installation->quality_score)
Quality Score
{{ $installation->quality_score }}/100
@endif
@if($installation->status !== 'completed')
@csrf
@else
Completed {{ $installation->actual_completion?->format('d M Y') }}
@endif Edit Installation
@include('partials.document-panel', [ 'documents' => $installation->documents, 'documentableType' => 'Installation', 'documentableId' => $installation->id, ])
@endsection