@extends('layouts/layoutMaster') @section('title', 'Proposal') @section('page-script') @vite('resources/js/print-invoice.js') @endsection @section('content')

Proposal

@php if(!empty($dealer)){ $data = $dealer; $city = \App\Models\City::where('id', $data->city)->value('name'); $state = \App\Models\State::where('id', $data->state)->value('name'); $country = \App\Models\Country::where('id', $data->country)->value('name'); } else { $data = $lead; $city = \App\Models\City::where('id', $data->city)->value('name'); $state = \App\Models\State::where('id', $data->state)->value('name'); $country = \App\Models\Country::where('id', $data->country)->value('name'); } @endphp @if($data)
{{ $data->name }}

{{ $data->office_address ?? $data->address }}

{{ $city }},{{ $state }},{{ $country }},{{ $data->zipcode }}

{{ $data->email }}

{{ $data->phone_no ?? $data->phone }}

@endif @if($proposal)

Date: {{ \Carbon\Carbon::parse($proposal->date)->format('d-m-Y') }}

Open Till: {{ \Carbon\Carbon::parse($proposal->open_till)->format('d-m-Y') }}

@endif
@if($company) Company Logo
{{ $company->company_name }}

Plot No: {{ $company->billing_address }}

Phone: {{ $company->phone }}

Email: {{ $company->email }}

GST: {{ $company->gst }}

CIN No: {{ $company->cin_no }}

@endif
@if($data->state != 12) @else @endif @foreach($proposalItem as $index => $items) @if($items->sgst != NULL) @else @endif @endforeach
NO PRODUCT DESCRIPTION QUANTITY RATEIGSTCGST SGSTTOTAL
{{ $index + 1 }} {{ $items->product->name }} {{ $items->descriptions }} {{ number_format($items->quantity, 2) }} {{ number_format($items->rates, 2) }}{{ number_format($items->cgst, 2) }} {{ number_format($items->sgst, 2) }}{{ number_format($items->igst, 2) }}{{ number_format($items->totals, 2) }}
Sub Total: ₹{{ number_format($proposal->subtotal, 2) }}
Discount: -₹{{ number_format($proposal->discount_value, 2) }}
Tax: ₹{{ number_format($proposal->tax_total, 2) }}
Total: ₹{{ number_format($proposal->overall_total, 2) }}

Note: It was a pleasure working with you and your team. We hope you will keep us in mind for future. Thank You!

@endsection