@php
$docTypeMap = [
1 => 'techno_commercial',
2 => 'agreement_po',
4 => 'order_acceptance',
7 => 'dbr',
8 => 'customer_approval_drawings',
];
$fileDocs = [1, 2, 4, 7, 8];
$initialDocs = [
1 => 'Techno - Commercial Offer',
2 => 'Agreement / PO (From Client to Meking)',
3 => 'CIF Form',
4 => 'Order Acceptance Form',
];
$colourDocs = [
5 => 'Structure Colour Confirmation Sheet',
6 => 'Sheeting Colour Confirmation Sheet',
];
$designDocs = [
7 => 'DBR',
8 => 'Customer Approval Drawings',
];
@endphp
{{-- ================= Initial Documents ================= --}}
@foreach($initialDocs as $id => $name)
@php
$col = $docTypeMap[$id] ?? null;
$filePath = ($col && $projectDocs) ? $projectDocs->$col : null;
@endphp
{{ $id }}
{{ $name }}
{{-- UPLOAD --}}
@if(in_array($id, $fileDocs))
@endif
{{-- EYE --}}
@if($id == 3)
@elseif($filePath)
@else
@endif
{{-- DOWNLOAD --}}
@if(in_array($id, $fileDocs) && $filePath)
@else
@endif
@endforeach
{{-- ================= Colour Confirmation ================= --}}
@foreach($colourDocs as $id => $name)
{{ $id }}
{{ $name }}
{{-- EYE — blade pages only, no file --}}
@if($id == 5)
@elseif($id == 6)
@endif
{{-- DOWNLOAD — not applicable --}}
@endforeach
{{-- ================= Design ================= --}}
@foreach($designDocs as $id => $name)
@php
$col = $docTypeMap[$id] ?? null;
$filePath = ($col && $projectDocs) ? $projectDocs->$col : null;
@endphp
{{ $id }}
{{ $name }}
{{-- UPLOAD --}}
{{-- EYE --}}
@if($filePath)
@else
@endif
{{-- DOWNLOAD --}}
@if($filePath)
@else
@endif
@endforeach
{{-- TAB 2: Material Details (FULL PEB SPECS) --}}
{{-- SECTION 1: Header + Loads --}}
{{-- TAB 1: Header + Loads --}}
Project Header
Loads
{{-- SECTION 2: Geometry --}}
Main Building Geometry
Levels
{{-- SECTION 3: Frames + Bracing --}}
Frames / Columns
Bracing
{{-- SECTION 4: Sheeting --}}
Roof / Wall / Gable Sheeting
{{-- SECTION 5: Openings --}}
Openings + Brick Wall
Sidewall Openings (2 rows)
Endwall Openings (2 rows)
Framed Openings (Table)
{{-- SECTION 6: Additions + Canopy --}}
Trims / Gutters / Eave
Canopies (Repeatable)
{{-- SECTION 7: Extensions + Fascia --}}
Roof Extensions
{{-- EAVE --}}
Roof Extension at Eave
Total Length: 0 m
Total Width: 0 m
{{-- RAKE --}}
Roof Extension at Rake
Total Length: 0 m
Total Width: 0 m
{{-- FASCIA --}}
Fascia
{{-- SECTION 8: Cranes + Mezz --}}
{{-- CRANES --}}
Cranes (Up to 3)
Rows: 0/3
{{-- MEZZ 1 --}}
Mezzanine 1
{{-- MEZZ 2 --}}
Mezzanine 2
{{-- Stair / Handrail / Deck --}}
Staircases / Handrails / Deck Sheet
{{-- SECTION 9: Liners + Anchor/Gutters --}}
{{-- WALL LINER --}}
Interior Wall Liner (Repeatable)
{{-- ROOF LINER --}}
Interior Roof Liner (Repeatable)
{{-- PARTITIONS --}}
Partitions (Longitudinal / Transverse)
{{-- ANCHOR + VALLEY --}}
Anchor Bolts / Valley Gutters
{{-- SECTION 10: Accessories + Insulation + Statutory --}}
{{-- STANDARD ACCESSORIES --}}
Standard Accessories
{{-- SLIDE DOORS --}}
Slide Doors (Repeatable)
{{-- ROLL UP DOORS --}}
Roll Up Doors (Repeatable)
{{-- SKYLIGHTS / RIDGE / CURBS / JACKS --}}
Skylights / Ridge Vent / Roof Curbs / Roof Jacks
{{-- INSULATION --}}
Insulation
{{-- STATUTORY --}}
Statutory Requirements
@if($project && $project->digital_signature)

@else
No signature available.
@endif
Add Site Gallery Images
{{-- Caption --}}
{{-- File Upload --}}
You can upload multiple images.
{{-- Action Buttons --}}
@if(!empty($siteImages) && $siteImages->count() > 0)
Existing Site Images
@foreach($siteImages as $img)
{{-- Caption --}}
{{ $img->caption ?? 'No caption' }}
@endforeach
@endif
{{-- Back / Next Buttons at Bottom --}}