{{__('POS')}}
{{ Auth::user()->posNumberFormat($pos->pos_id) }}
{{__('Billed To')}} :
@if(!empty($customer->billing_name))
{{!empty($customer->billing_name)?$customer->billing_name:''}}
{{!empty($customer->billing_address)?$customer->billing_address:''}}
{{!empty($customer->billing_city)?$customer->billing_city:'' .', '}}
{{!empty($customer->billing_state)?$customer->billing_state:'',', '}},
{{!empty($customer->billing_zip)?$customer->billing_zip:''}}
{{!empty($customer->billing_country)?$customer->billing_country:''}}
{{!empty($customer->billing_phone)?$customer->billing_phone:''}}
@if($settings['vat_gst_number_switch'] == 'on')
{{__('Tax Number ')}} : {{!empty($customer->tax_number)?$customer->tax_number:''}}
@endif
@else
-
@endif
@if(App\Models\Utility::getValByName('shipping_display')=='on')
{{__('Shipped To')}} :
@if(!empty($customer->shipping_name))
{{!empty($customer->shipping_name)?$customer->shipping_name:''}}
{{!empty($customer->shipping_address)?$customer->shipping_address:''}}
{{!empty($customer->shipping_city)?$customer->shipping_city:'' . ', '}}
{{!empty($customer->shipping_state)?$customer->shipping_state:'' .', '}},
{{!empty($customer->shipping_zip)?$customer->shipping_zip:''}}
{{!empty($customer->shipping_country)?$customer->shipping_country:''}}
{{!empty($customer->shipping_phone)?$customer->shipping_phone:''}}
@else
-
@endif
@endif
{{__('Issue Date')}} :
{{\Auth::user()->dateFormat($pos->purchase_date)}}
| # |
{{__('Items')}} |
{{__('Quantity')}} |
{{__('Price')}} |
{{__('Tax')}} |
{{__('Tax Amount')}} |
{{__('Total')}} |
@php
$totalQuantity=0;
$totalRate=0;
$totalTaxPrice=0;
$totalDiscount=0;
$taxesData=[];
@endphp
@foreach($iteams as $key =>$iteam)
@if(!empty($iteam->tax))
@php
$taxes=App\Models\Utility::tax($iteam->tax);
$totalQuantity+=$iteam->quantity;
$totalRate+=$iteam->price;
$totalDiscount+=$iteam->discount;
foreach($taxes as $taxe){
$taxDataPrice=App\Models\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
| {{$key+1}} |
{{!empty($iteam->product())?$iteam->product()->name:''}} |
{{$iteam->quantity}} |
{{\Auth::user()->priceFormat($iteam->price)}} |
@if(!empty($iteam->tax))
@php
$totalTaxRate = 0;
$totalTaxPrice = 0;
@endphp
@foreach($taxes as $tax)
@php
$taxPrice=App\Models\Utility::taxRate($tax->rate,$iteam->price,$iteam->quantity);
$totalTaxPrice+=$taxPrice;
@endphp
{{$tax->name .' ('.$tax->rate .'%)'}}
@endforeach
@else
-
@endif
|
{{\Auth::user()->priceFormat($totalTaxPrice)}} |
{{\Auth::user()->priceFormat(($iteam->price*$iteam->quantity) + $totalTaxPrice)}} |
@endforeach
| {{__(' Sub Total')}} |
|
|
|
|
|
{{\Auth::user()->priceFormat($posPayment['amount'])}} |
| {{__('Discount')}} |
|
|
|
|
|
{{\Auth::user()->priceFormat($posPayment['discount'])}} |