{{ __('POS')}}

@if (!empty($settings['company_name']) && !empty($settings['company_email']) && !empty($settings['company_address'])) @endif

{{ __(' FROM')}}:
@if(!empty($settings['company_name'])){{$settings['company_name']}}@endif
@if(!empty($settings['company_email'])){{$settings['company_email']}}@endif
@if(!empty($settings['company_telephone'])){{$settings['company_telephone']}}@endif
@if(!empty($settings['company_address'])){{$settings['company_address']}}@endif @if(!empty($settings['company_city']))
{{$settings['company_city']}}, @endif @if(!empty($settings['company_state'])){{$settings['company_state']}}@endif @if(!empty($settings['company_country']))
{{$settings['company_country']}}@endif @if(!empty($settings['company_zipcode'])) - {{$settings['company_zipcode']}}@endif

@if(!empty($settings['registration_number'])){{__('Registration Number')}} : {{$settings['registration_number']}} @endif
@if(!empty($settings['tax_type']) && !empty($settings['vat_number'])){{$settings['tax_type'].' '. __('Number')}} : {{$settings['vat_number']}}
@endif

{{ __('Number: ')}} {{\workdo\Pos\Entities\Pos::posNumberFormat($pos->pos_id)}}
{{ __('POS Date:')}} {{company_date_formate($pos->pos_date)}}
@if($settings['pos_shipping_display']=='on') @endif
{{ __('Bill 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_city)?$customer->billing_city:'' .', '}},{{!empty($customer->billing_state)?$customer->billing_state:'',', '}},{{!empty($customer->billing_country)?$customer->billing_country:''}}
{{!empty($customer->billing_zip)?$customer->billing_zip:''}}

{{__('Ship 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_city)?$customer->shipping_city:'' . ', '}},{{!empty($customer->shipping_state)?$customer->shipping_state:'' .', '}},{{!empty($customer->shipping_country)?$customer->shipping_country:''}}
{{!empty($customer->shipping_zip)?$customer->shipping_zip:''}}

@if(isset($pos->itemData) && count($pos->itemData) > 0) @foreach($pos->itemData as $key => $item) @endforeach @else @endif
{{__('Item')}} {{__('Quantity')}} {{__('Price')}} {{__('Tax')}} (%) {{__('Tax Amount')}} {{__('Total')}}
{{$item->name}} {{$item->quantity}} {{currency_format_with_sym($item->price)}} @php $totalTaxRate = 0; $totalTaxPrice=0; @endphp @if(!empty($item->itemTax)) @foreach($item->itemTax as $taxes) @php $res = str_ireplace( array( '%' ), ' ', $taxes['rate']); $taxPrice=\workdo\Pos\Entities\Pos::taxRate($res,$item->price,$item->quantity); $totalTaxPrice+=$taxPrice; @endphp {{$taxes['name']}} ({{$taxes['rate']}})
@endforeach @else - @endif
{{currency_format_with_sym($totalTaxPrice)}} {{currency_format_with_sym(($item->price*$item->quantity)+$totalTaxPrice)}}
- - -

-

-

- -
-
{{__('Total')}} {{$pos->totalQuantity}} {{currency_format_with_sym($pos->totalRate)}} - {{currency_format_with_sym($pos->totalTaxPrice) }} {{currency_format_with_sym($posPayment->amount)}}
@if(!empty($posPayment->discount)) @else @endif @if(!empty($posPayment->discount)) @else @endif
{{__('Subtotal')}}: {{currency_format_with_sym($posPayment->amount)}}
{{__('Discount')}}:{{currency_format_with_sym($posPayment->discount)}}0
{{__('Total')}}:{{currency_format_with_sym($posPayment->amount - $posPayment->discount)}}{{currency_format_with_sym($posPayment->amount)}}
@if(!isset($preview)) @include('pos::pos.script'); @endif