@php use Illuminate\Support\Facades\Log; $settings_data = \App\Models\Utility::settingsById($proposal->created_by); Log::info('Settings Data Retrieved:', ['settings_data' => $settings_data]); $addressParts = array_filter([ $settings_data['company_city'] ?? '', $settings_data['company_state'] ?? '', $settings_data['company_zipcode'] ?? '', ]); Log::info('Address Parts Generated:', ['addressParts' => $addressParts]); $logo = \App\Models\Utility::get_file('uploads/logo'); $company_logo = \App\Models\Utility::GetLogo(); $companyState = strtolower(trim($settings_data['company_state'] ?? '')); $billingState = strtolower(trim($customer->billing_state ?? '')); $isSameState = !empty($companyState) && !empty($billingState) && $companyState === $billingState; @endphp @php $proposal_logo = \App\Models\Utility::getValByName('proposal_logo'); $img = \App\Models\Utility::get_file('proposal_logo/') . $proposal_logo; @endphp
@if ($settings_data['SITE_RTL'] == 'on') @endif{{ $settings['company_name'] ?? '' }}
{{ $settings_data['company_address'] ?? '' }}
{{ implode(' , ', $addressParts) ?: '' }}
{{ __('Tel:') }} {{ $settings['company_telephone'] ?? '' }}, {{ __('E-Mail:') }} {{ $settings['mail_from_address'] ?? '' }}
@if($settings['vat_gst_number_switch'] == 'on') @if(!empty($settings['tax_type']) && !empty($settings['vat_number'])){{$settings['tax_type'].' '. __('Number')}} : {{$settings['vat_number']}}
@endif @endif| {{ __('IRN') }} | : | {{ $proposal->irn ?? '' }} | ||||||
| {{ __('Ack No') }} | : | {{ \App\Models\Utility::proposalNumberFormat($settings,$proposal->proposal_id) }} | {{ __('Ack Date') }} | : | {{ \App\Models\Utility::dateFormat($settings, $proposal->issue_date) }} | @php use Carbon\Carbon; $issueDate = Carbon::parse($proposal->issue_date); $validityDate = $issueDate->copy()->addDays(15); @endphp{{ __('Valid To') }} | : | {{ \App\Models\Utility::dateFormat($settings, $validityDate) }} |
{{ __('GSTIN/UIN:') }} {{ $customer->tax_number ?? '' }}
{{ __('PAN NO:') }} {{ $settings_data['pan_number'] ?? '' }}
{{ $customer->billing_name }}
{{ $customer->billing_address ?? '' }}
{{ $customer->billing_city ?? '' }},
{{ __('State Name :') }} {{ $customer->billing_state ?? '' }}- {{ $customer->billing_zip ?? '' }}
{{ __('GSTIN NO:') }} {{ $customer->tax_number ?? '' }}
-
@endif
{{ $customer->shipping_name }}
{{ $customer->shipping_address ?? '' }}
{{ $customer->shipping_city ?? '' }},
{{ __('State Name :') }} {{ $customer->shipping_state ?? '' }}- {{ $customer->billing_zip ?? '' }}
{{ __('GSTIN NO:') }} {{ $customer->tax_number ?? '' }}
-
@endif| Proposal No | : | {{ \App\Models\Utility::proposalNumberFormat($settings,$proposal->proposal_id) }} |
| Date | : | {{ \App\Models\Utility::dateFormat($settings, $proposal->send_date ?? $proposal->issue_date) }} |
| E-way Bill No | : | {{ $proposal->eway_bill_no ?? '' }} |
| Delivery Distance | : | {{ $proposal->delivery_note_no ?? '' }} |
| Buyer Order No | : | {{ $proposal->buyer_order_no ?? '' }} |
| {{ __('S.No') }} | {{ __('Description') }} | {{ __('HSN/SAC Code') }} | {{ __('Qty') }} | {{ __('Unit') }} | {{ __('(Incl)Rate') }} | {{ __('Rate') }} | {{ __('Disc') }} | {{ __('Amount') }} | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->name ?? '' }} | {{ $item->expense_chartaccount_code ??'-' }} | {{ $item->quantity ?? 0 }} | {{ $unitDisplay }} | {{ number_format($item->price ?? 0, 2) }} | {{ number_format($item->price ?? 0, 2) }} | {{ $item->discount != 0 ? number_format($item->discount ?? 0, 2) : '-' }} | {{ number_format($itemTotal, 2) }} | |
| No items found | |||||||||
| {{ __('TOTAL') }} | {{ number_format($totalAmount, 2) }} | ||||||||
| Bank Name | : | {{ $account->bank_name ?? '' }} |
| Ac/No | : | {{ $account->holder_name ?? '' }} |
| Branch & IFS Code | : | {{ $account->branch_name ?? '' }} {{ $account->ifs_code ?? '' }} |
| No bank details available. | ||
| Basic Amount | {{ number_format($totalAmount, 2) }} |
Terms & Condition:
For {{ $settings['company_name'] ?? '' }}
Authorized Signatory
SUBJECT TO {{ strtoupper($settings['company_state'] ?? 'YOUR STATE') }} JURISDICTION
This is a Computer Generated Invoice