@extends('layouts/layoutMaster') @section('title', 'Proposal') @section('vendor-style') @vite('resources/assets/vendor/libs/flatpickr/flatpickr.scss') @endsection @section('page-style') @vite('resources/assets/vendor/scss/pages/app-invoice.scss') @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/flatpickr/flatpickr.js', 'resources/assets/vendor/libs/cleavejs/cleave.js', 'resources/assets/vendor/libs/cleavejs/cleave-phone.js' ]) @endsection {{-- @section('page-script') @vite([ 'resources/assets/js/offcanvas-add-payment.js', 'resources/assets/js/offcanvas-send-invoice.js' ]) @endsection --}} @section('content')

Proposal

{{--

Proforma Invoice

--}} @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 {{-- {{ dd($data) }} --}} @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: {{ $proposal->date }}
Open Till: {{ $proposal->open_till }}
@endif
@if($company)

{{ $company->company_name }}

Plot No: {{ $company->billing_address }},{{ $company->city->name }},{{ $company->state->name }},{{ $company->country->name }},{{ $company->billing_zipcode }}

Phone: {{ $company->phone }}

Email: {{ $company->email }}

GST: {{ $company->gst }}

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

@endif
@if($data->state != 12) @else @endif @php $i = 1; @endphp @foreach ($proposalItem as $items) @if($items->sgst != NULL) @else @endif @endforeach
No Product Description Quantity RateIGSTCGST SGSTTotal
{{ $i++ }} {{ $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 : ₹{{ $proposal->subtotal }}

Discount : -₹{{ $proposal->discount_value }}

Tax : ₹{{ $proposal->tax_total }}

Total : ₹{{ $proposal->overall_total }}


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

@include('_partials/_offcanvas/offcanvas-send-invoice') @include('_partials/_offcanvas/offcanvas-add-payment') @endsection