@extends('layouts.app') @section('content')
@csrf

Technical Commercial Offer

{{-- --}} @php $project_cats = [1 => 'OnGrid', 2 => 'OffGrid', 3 => 'Hybrid']; @endphp @php $selectedGstin = $my_offices->firstWhere('id', $lead->office_id); @endphp
Project Estimate: {{ $projec->type }} {{ $project->category }}Project Estimate: {{ $projectCapacity }} On-Grid{{ $project_cats[$lead->project_cats_id] ?? 'Unknown' }}

Name: {{ $lead->site_name }}

Address: {{ $lead->address }}

City: {{ $lead->city }}, {{ $lead->state }}

Gst-In: {{ $lead->gstin }}

Surjaa Enertech and Infra Corporation

@if($selectedGstin)
State: {{ $selectedGstin->state->name }}
GSTIN: {{ $selectedGstin->gstin }}
Address: {{ $selectedGstin->address }}
@endif

Date: {{ now()->format('d/m/Y') }}

@php $estimatedCost = 0; $gst12 = 0; $gst18 = 0; $gst28 = 0; @endphp @foreach ($bomItems as $item) @php $totalCost = $item->total_price; $estimatedCost += $totalCost; // GST Calculation if (in_array(strtolower($item->product->category->name), ['module', 'inverter'])) { $gst12 += $totalCost * 0.12; } elseif (in_array(strtolower($item->product->category->name), ['bos', 'structure', 'inc'])) { $gst18 += $totalCost * 0.18; } elseif (in_array(strtolower($item->product->category->name), ['battery','storage'])) { $gst28 += $totalCost * 0.28; } @endphp @endforeach {{-- Total Row --}}
Description Price per unit GST (in %) Quantity Total Cost
{{ $item->product->name }}
{{ $item->product->description }}
₹{{ number_format($item->final_price) }} {{$item->gst}} {{ $item->total_quantity }} ₹{{ number_format($totalCost, 2) }}
Total Amount ₹{{ number_format($estimatedCost, 2) }}
{{-- Bank Details Display --}} {{--

ADDITIONAL SERVICES (Extra Charges Apply)

@foreach ($services as $service) @endforeach
{{ $service->name }} ({{ $service->description }}) ₹{{ $service->price ?? '-' }} 18% {{ $service->note }}
--}}

ADDITIONAL SERVICES (Extra Charges Apply)

Netmetering (Includes paperwork for Safety, Feasibility, Agreement, etc.) ₹ - 18% Liaison fees included, client pays dept. fees
Annual Maintenance Contract
4 Quarterly Assessments per year, 12 Call Support
₹ - 18% Client has not opted
{{--

PAYMENT TERMS

--}} {{-- @foreach ($paymentTerms as $term) @endforeach
{{ $term->title }}
{{ $term->description }}
₹{{ number_format($term->amount, 2) }}
--}}

@if ($invoices->count())

Payment Terms

@foreach ($invoices as $index => $invoice) @endforeach
S no. Invoice Number Due Date Amount
{{ $index + 1 }} {{ $invoice->id }} {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d M, Y') }} ₹{{ number_format($invoice->invoice_amount, 2) }}
@else

Payment Terms

No invoices available for this lead.

@endif




{{--

DELIVERY SCHEDULE

@foreach ($deliverySchedule as $schedule) @endforeach
{{ $schedule->milestone }} {{ $schedule->duration }}
--}}

DELIVERY SCHEDULE

Design Finalization Week 1
Structure Fabrication Week 1 and 2
Structure and BOS Installation Week 1, 2, and 3
Module and Inverter Installation Week 3 and 4
Testing and Handover Week 4

PROJECT SUMMARY

@php $cost = is_numeric($estimatedCost) ? $estimatedCost : 0; // Remove "kw", "KW", spaces, etc. and cast to float $cleanedCapacity = preg_replace('/[^0-9.]/', '', $projectCapacity); $capacityKW = is_numeric($cleanedCapacity) ? (float) $cleanedCapacity : 1; $capacityWatts = $capacityKW * 1000; $perWattCost = $capacityWatts > 0 ? ($cost / $capacityWatts) : 0; @endphp
Estimated Per Watt Project Cost: ₹ {{ number_format($perWattCost, 2) }}
Breakeven / ROI projected: 2.17 years
IRR% (estimated): 37%
Solar Module Warranty: 10 years
Generation Guarantee: 25 years
Solar Inverter Warranty: 10 years
Surjaa Warranty: {{ $lead->warranty }} {{ $lead->warranty > 1 ? 'years' : 'year' }}

Power Grid | Solar | Wind | Hydro | Telecom | Energy Storage | O&M | Infrastructure

All disputes subject to Faridabad courts only. E.&O.E.

Signed and Accepted

Name: ______________

Phone: ______________

Date: ______________

Salesperson: ______________

Notes:


@endsection