@extends('layouts.app') @section('content')
Step 5 & 6: Installation Management
@if($application->status === 'meter_assigned')
Schedule Installation

Customer: {{ $application->full_name }}

Meter #: {{ $application->meter_number }}

Address: {{ $application->formatted_address }}

@csrf
@error('assigned_installer')
{{ $message }}
@enderror
@error('installation_scheduled_date')
{{ $message }}
@enderror
Cancel
@else
Installation Details

Customer: {{ $application->full_name }}

Assigned Installer: {{ $application->installer->name ?? 'N/A' }}

Scheduled Date: {{ $application->installation_scheduled_date ? \Carbon\Carbon::parse($application->installation_scheduled_date)->format('M d, Y') : 'N/A' }}

Current Status: @switch($application->installation_status) @case('pending') Pending @break @case('in_progress') In Progress @break @case('completed') Completed @break @case('failed') Failed @break @endswitch

@csrf
@error('installation_status')
{{ $message }}
@enderror
@error('installation_notes')
{{ $message }}
@enderror
Cancel
@if($application->status === 'installation_pending')
Download Installation Document for Installer @endif @endif
@endsection