{{__('Proposal')}}


@if(!empty($customer->billing_name))
{{__('Billed To')}} :
{{!empty($customer->billing_name)?$customer->billing_name:''}}
{{!empty($customer->billing_phone)?$customer->billing_phone:''}}
{{!empty($customer->billing_address)?$customer->billing_address:''}}
{{!empty($customer->billing_zip)?$customer->billing_zip:''}}
{{!empty($customer->billing_city)?$customer->billing_city:'' .', '}} {{!empty($customer->billing_state)?$customer->billing_state:'',', '}} {{!empty($customer->billing_country)?$customer->billing_country:''}}
@endif @if(\Utility::companyData($proposal->created_by,'shipping_display')=='on')
{{__('Shipped To')}} :
{{!empty($customer->shipping_name)?$customer->shipping_name:''}}
{{!empty($customer->shipping_phone)?$customer->shipping_phone:''}}
{{!empty($customer->shipping_address)?$customer->shipping_address:''}}
{{!empty($customer->shipping_zip)?$customer->shipping_zip:''}}
{{!empty($customer->shipping_city)?$customer->shipping_city:'' . ', '}} {{!empty($customer->shipping_state)?$customer->shipping_state:'' .', '}},{{!empty($customer->shipping_country)?$customer->shipping_country:''}}
@endif
{!! DNS2D::getBarcodeHTML(route('proposal.link.copy',\Illuminate\Support\Facades\Crypt::encrypt($proposal->id)), "QRCODE",2,2) !!}
{{__('Status')}} :
@if($proposal->status == 0) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 1) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 2) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 3) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 4) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @endif
{{__('Issue Date')}} :
{{$user->dateFormat($proposal->issue_date)}}

@if(!empty($customFields) && count($proposal->customField)>0) @foreach($customFields as $field)
{{$field->name}} :
{{!empty($proposal->customField)?$proposal->customField[$field->id]:'-'}}

@endforeach @endif
{{__('Product Summary')}}
{{__('All items here cannot be deleted.')}}
@php $totalQuantity=0; $totalRate=0; $totalTaxPrice=0; $totalDiscount=0; $taxesData=[]; @endphp @foreach($iteams as $key =>$iteam) @if(!empty($iteam->tax)) @php $taxes=\Utility::tax($iteam->tax); $totalQuantity+=$iteam->quantity; $totalRate+=$iteam->price; $totalDiscount+=$iteam->discount; foreach($taxes as $taxe){ $taxDataPrice=\Utility::taxRate($taxe->rate,$iteam->price,$iteam->quantity); if (array_key_exists($taxe->name,$taxesData)) { $taxesData[$taxe->name] = $taxesData[$taxe->name]+$taxDataPrice; } else { $taxesData[$taxe->name] = $taxDataPrice; } } @endphp @endif @endforeach @if(!empty($taxesData)) @foreach($taxesData as $taxName => $taxPrice) @endforeach @endif
# {{__('Product')}} {{__('Quantity')}} {{__('Rate')}} {{__('Tax')}} {{__('Discount')}} {{__('Description')}} {{__('Price')}}
{{__('after tax & discount')}}
{{$key+1}} {{!empty($iteam->product)?$iteam->product->name:''}} {{$iteam->quantity}} {{\App\Models\Utility::priceFormat($settings,$iteam->price)}} @if(!empty($iteam->tax)) @php $totalTaxRate = 0;@endphp @foreach($taxes as $tax) @php $taxPrice=\Utility::taxRate($tax->rate,$iteam->price,$iteam->quantity); $totalTaxPrice+=$taxPrice; @endphp @endforeach
{{$tax->name .' ('.$tax->rate .'%)'}} {{\App\Models\Utility::priceFormat($settings,$taxPrice)}}
@else - @endif
{{\App\Models\Utility::priceFormat($settings,$iteam->discount)}} {{!empty($iteam->description)?$iteam->description:'-'}} {{\App\Models\Utility::priceFormat($settings,$iteam->price*$iteam->quantity)}}
{{__('Total')}} {{$totalQuantity}} {{\App\Models\Utility::priceFormat($settings,$totalRate)}} {{\App\Models\Utility::priceFormat($settings,$totalTaxPrice)}} {{\App\Models\Utility::priceFormat($settings,$totalDiscount)}}
{{__('Sub Total')}} {{\App\Models\Utility::priceFormat($settings,$proposal->getSubTotal())}}
{{__('Discount')}} {{\App\Models\Utility::priceFormat($settings,$proposal->getTotalDiscount())}}
{{$taxName}} {{ \App\Models\Utility::priceFormat($settings,$taxPrice) }}
{{__('Total')}} {{\App\Models\Utility::priceFormat($settings,$proposal->getTotal())}}