@extends('layouts.app') @section('title', 'New Works Order') @section('breadcrumb') Jobs {{ $job->job_number }} New Works Order @endsection @section('content')
@csrf @if($errors->any())
@endif {{-- Header --}}

New Works Order

{{ $job->job_number }} — {{ $job->contact?->full_name ?? 'No client' }}
{{-- Work Order Details (two-column layout matching reference) --}}

Work Order Details

{{-- Left Column --}}
{{-- Right Column --}}
{{-- Scope of Works --}}

Scope of Works

{{-- Faults Section --}}

Faults

@for($i = 1; $i <= 5; $i++) @endfor
# Fault Type Cost ($)
Fault {{ $i }}
Total Fault Cost $0.00
@php $threshold = \App\Models\AppSetting::get('work_order_fault_threshold', 300); @endphp

If total fault cost exceeds ${{ number_format($threshold, 0) }}, the work order will require manager approval before processing.

{{-- Notes --}}
Cancel
@endsection