@extends('layouts.sales.sales') @section('title', 'Assign Team') @section('content')
Assign Project
{{-- TAB 1 --}}

Customer Quote Details
{{-- -Initial Documents --}}
@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 ================= --}}
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))
@csrf
@endif {{-- EYE --}} @if($id == 3) @elseif($filePath) @else @endif {{-- DOWNLOAD --}} @if(in_array($id, $fileDocs) && $filePath) @else @endif
@endforeach
{{-- ================= Colour Confirmation ================= --}}
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 ================= --}}
Design
@foreach($designDocs as $id => $name) @php $col = $docTypeMap[$id] ?? null; $filePath = ($col && $projectDocs) ? $projectDocs->$col : null; @endphp
{{ $id }} {{ $name }}
{{-- UPLOAD --}}
@csrf
{{-- 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
Roof Sheeting
Wall Sheeting
Gable Sheeting
{{-- SECTION 5: Openings --}}

Openings + Brick Wall

Sidewall Openings (2 rows)

Endwall Openings (2 rows)

Framed Openings (Table)
@forelse($framedRows as $row) @empty @endforelse
No. Size (HxW) Location Usage Action
{{-- SECTION 6: Additions + Canopy --}}

Trims / Gutters / Eave

Canopies (Repeatable)
@forelse($canopies as $c) @empty @endforelse
No. Wall Length (m) Width (m) Clr. Ht (m) Soffit Downspouts Return Kickouts Action
{{-- 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
@forelse($cranes as $c) @empty {{-- Start with 1 empty row --}} @endforelse
No. Type Qty Capacity (MT) Span (m) Hook Ht (m) Run (m) BM & BKT By Rails & CRN By

{{-- 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)
@forelse($wallLiners as $w) @empty @endforelse
Length (m) Height (m) Type Thickness GA Colour

{{-- ROOF LINER --}}
Interior Roof Liner (Repeatable)
@forelse($roofLiners as $r) @empty @endforelse
Length (m) Height (m) Type Thickness GA Colour

{{-- PARTITIONS --}}
Partitions (Longitudinal / Transverse)
@forelse($partitions as $p) @empty @endforelse
Orientation Length (m) Height (m) Sheeted Type Thickness Color

{{-- ANCHOR + VALLEY --}}
Anchor Bolts / Valley Gutters
{{-- SECTION 10: Accessories + Insulation + Statutory --}}

{{-- STANDARD ACCESSORIES --}}
Standard Accessories

{{-- SLIDE DOORS --}}
Slide Doors (Repeatable)
@forelse($slideDoors as $d) @empty @endforelse
Single/Double Width (m) Height (m) Qty

{{-- ROLL UP DOORS --}}
Roll Up Doors (Repeatable)
@forelse($rollDoors ?? [] as $r) @empty @endforelse
Manual/Electric Width (m) Height (m) Qty

{{-- SKYLIGHTS / RIDGE / CURBS / JACKS --}}
Skylights / Ridge Vent / Roof Curbs / Roof Jacks

{{-- INSULATION --}}
Insulation

{{-- STATUTORY --}}
Statutory Requirements
{{-- TAB 3 --}}

{{-- TAB 4 --}}
Project Cost Breakdown
Final Quote Value
Rs {{ $project->project_cost ?? '0.00' }}
Total Cost
Rs {{ $totalCost ?? '0.00' }}
@if(isset($project) && $project->costStages->count()) @foreach($project->costStages as $stage)
@endforeach @else
@endif
{{-- TAB 5 --}}

@if($project && $project->digital_signature) Signature @else

No signature available.

@endif
{{-- TAB 6 --}}
Design Files
@csrf
@if(isset($design_files) && $design_files->count() > 0) @foreach($design_files as $index => $file) @endforeach @else @endif
ID File Name Download Remove
{{ $index + 1 }} {{ $file->file_name }}
No design files uploaded.
Factory Designs
@if($project->designs->count()) View Designs ({{ $project->designs->count() }}) @else No Design @endif
{{-- TAB 7: Site Images --}}
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 --}}
{{-- TAB 8 --}}
@endsection