@extends('layouts.app', ['page' => __('View Proposal'), 'pageSlug' => 'Proposal']) {{-- --}} @section('content')
{{-- --}} Print PDF Share Mail {{-- Print --}}

Proposal Number : {{$model->proposal_number}}

Proposal Date : {{$model->propsal_date}}

NK DECIBELS

Address : House No : 05,
Velachery,
Chennai - 600042.

Email : admin@gmail.com

Phone : 908976555

Website : https://nkdecibels.com

Proposal for : {{ $model->customer_name }}

Service Address

@if ($model->customer_service_address != "") @foreach(explode(',', $model->customer_service_address) as $info) {{$info}}
@endforeach

{{ $model->service_city }},

{{ $model->service_state }}.

@endif {{--{{ $model->customer_service_address }}, --}}Email : {{ $model->customer_email }},
Phone : {{ $model->customer_phone }}

{{--

We have a proposed pricing for {{ $model->customer_name }}. Products/Services and price are enlisted below. If you have any question regarding this proposal, please let us know. Thank you!

--}} {{--
--}} @php $i = 1; $sub_total = 0; $igstVal=0; @endphp @forelse($proposaldetails as $proposaldetail) @php // echo'
';
                                // print_r($proposaldetail);exit;

                        $sub_total += $proposaldetail -> quantity * $proposaldetail -> price;
                @endphp
                
@php $billing_state_cgst=""; $billing_state_igst=""; $price=$proposaldetail->price; $gst=$proposaldetail->gst; $qty=$proposaldetail->quantity; $noqty=$qty*$price; $igst=($noqty*$gst)/100; $cgst=$igst/2; $igstVal+=$igst; if($model->billing_state == "Tamil Nadu"){ $billing_state_cgst= $igstVal/2; }else{ $billing_state_igst=$igstVal; } @endphp @empty

No Products Added

@endforelse @php $discount_str = ""; $discount_amount_total = 0; if($model->discount_type == 1) { $discount_str = $model->discount.'%'; $discount_amount_total = $sub_total * ($model->discount / 100); } else { $discount_str = "Flat Rs.".$model->discount; $discount_amount_total = $model->discount; } @endphp
SNO Product Name Qty Unit Price pdf Total
{{ $i++ }} {{ $proposaldetail -> product_name }} {{ $proposaldetail -> quantity }} ₹ {{ $proposaldetail -> price }} {{ $proposaldetail -> pdf }} ₹ {{ $proposaldetail -> quantity * $proposaldetail -> price }}
SUB TOTAL ₹ {{ $sub_total }}
Discount({{$discount_str}}) - ₹{{ $discount_amount_total }}
Other Tax(%) + ₹{{ $model->tax }}
cgst sgst igst Shipping/Other (+) + ₹{{ $model->shipping_other }}
{{ $billing_state_cgst }} {{ $billing_state_cgst }} {{ $billing_state_igst }} Gst + ₹{{ $igstVal }}
Grand Total ₹{{ $model->total }}

Additional Notes:

We have a proposed pricing for {{ $model->customer_name }}. Products/Services and price are enlisted below. If you have any question regarding this proposal, please let us know. Thank you!

Terms and Conditions :

We have a proposed pricing for {{ $model->customer_name }}. Products/Services and price are enlisted below. If you have any question regarding this proposal, please let us know. Thank you!

@endsection {{-- convert to pdf and print using js --}}