@extends('layouts.app') @section('content') @php $statuses = [1 => 'Negotiate', 2 => 'Accept Quotation']; @endphp

Quotation

Project Estimate: {{ $template->title }}

Name: {{ $account->name }}

Email: {{ $account->primary_email }}

Phone: {{ $account->primary_phone }}

Surjaa Enertech and Infra Corporation

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

Date: {{ date('d M, Y', strtotime($project->created_at)) }}

@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 --}}
@if (count($invoices) > 0)

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 @endif

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.

Signed and Accepted

Name: ______________

Phone: ______________

Date: ______________

Salesperson: ______________

Notes:


@if(!empty($project->status))
Please Take Action!
{!! Form::open(['id' => 'dataForm', 'name' => 'dataForm', 'class'=>'form-horizontal']) !!} {{csrf_field()}} {!! Form::hidden('project_id', $project->id, ['id'=>'project_id']); !!}
{!! Form::select('status', $statuses, '', ['class'=>'standardSelect form-control', 'title'=>'Select Status', 'data-live-search'=>'true', 'id'=>'status' , 'data-style'=>'btn-sp', 'data-dropup-auto'=>'false', 'data-size'=>'5']) !!}
{!! Form::text('remarks', '', ['class'=>'form-control', 'placeholder'=>'Enter Remarks', 'id'=>'remarks']) !!}
{!! Form::submit('Submit', ['class'=>'btn btn-primary btn-sm', 'id'=>'saveBtn']); !!}
{!! Form::close(); !!}
@else

Your response has been submitted.

@endif
@stop @section('scripting') @endsection