@extends('layouts.app') @section('content') @php $yes_no_options = ['Yes' => 'Yes', 'No' => 'No']; @endphp
@if ($message = Session::get('success')) @endif

Quotation

Project Estimate: {{ $template->title }}
Surjaa Enertech and Infra Corporation

@if($my_office)
State: {{ $my_office->state->name }}
GSTIN: {{ $my_office->gstin }}
Address: {{ $my_office->address }}
@endif
@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, 2) }} {{$item->gst}} {{ $item->total_quantity }} ₹{{ number_format($totalCost, 2) }}
Total Amount ₹{{ number_format($estimatedCost, 2) }}
{{-- Bank Details Display --}}

Payment Terms

@php $count = 1; @endphp @foreach($invoices->getAttributes() as $key => $value) @if($value != 0) @php $count++; @endphp @endif @endforeach
Sr. Payment Term Amount
{{ $count }} Payment {{ $count }} ₹{{ number_format($value, 2) }}

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.]/', '', $template->capacity); $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.

@endsection @section('scripting') @endsection