@foreach ($orders as $key=>$item)
|
{{strtoupper($distributor['distributor_name'])}}
|
SALES
INVOICE
|
Address:{{ (!empty($distributor['distributor_address']) ? $distributor['distributor_address'] : '-') }}
Phone:{{ (!empty($distributor['distributor_phone']) ? $distributor['distributor_phone'] : '-')}}
|
Bill
No :
{{!empty($item['order_number'])?$item['order_number']:'-'}}
Date
:{{date('l',strtotime($item['order_date']))}},{{date('d-m-Y',strtotime($item['order_date']))}}
Booker:{{$item['employee_name']}}
|
|
| Party Name |
{{-- {{$item['retailer_name']}}
| --}}
{{$item['retailer_name']}} |
| Address/Phone: |
{{ (!empty($item['retailer_address']) ? $item['retailer_address'].'/'.$item['retailer_phone'] : 'N/A') }}
|
CNIC/NTN: |
{{ (!empty($item['cnic']) ? $item['cnic'] : 'N/A') }}
|
{{-- Booker: |
{{$item['employee_name']}}
| --}}
|
| Code |
Product Name |
CTN |
BOX/PCS |
{{-- Scheme | --}}
T.P |
Gr AMT. |
T.O |
T.DISC |
@if($item['showDiscount'])
SPC.DISC |
@endif
Tax |
Net AMT. |
@foreach ($item['contents'] as $contents)
| {{$contents['item_sku']}} |
{{$contents['item_name']}} |
{{$primaryUnit}} |
{{$secondaryUnit}} |
{{-- - | --}}
{{ ($tradePrice) ? Helper::numberFormat($tradePrice) : '-'}} |
{{ ($grossAmount) ? Helper::numberFormat($grossAmount) : '-' }} |
{{ ($tradeOffer) ? Helper::numberFormat($tradeOffer) : '-' }} |
{{ ( $contents['merchant_discount'] != '-') ? $contents['merchant_discount'].'%': '-' }}
|
@if($item['showDiscount'])
{{ ($disc) ? $disc : '-' }}
|
@endif
{{ (isset($contents['total_tax_amount']))? $contents['total_tax_amount'] : 0 }} |
{{ ($netAmountFP) ? Helper::numberFormat($netAmountFP) : '-' }} |
@endforeach
| TOTAL |
|
{{$totalPrimaryUnit}} |
{{$totalSecondaryUnit}} |
{{-- - | --}}
{{Helper::numberFormat($totalTradePrice)}} |
{{Helper::numberFormat($totalGrossAmount)}} |
{{Helper::numberFormat($totalTradeOffer)}} |
- |
@if($item['showDiscount'])
{{Helper::numberFormat($totalDiscountAmount)}} |
@endif
{{Helper::numberFormat($totalTaxAmount)}} |
{{Helper::numberFormat($totalNetAmount)}} |
Salesman Signature
|
Receiver Signature
|
|
|
|
Previous Balance :
|
Rs
{{!empty($item['previous_balance']) ? Helper::numberFormat($item['previous_balance']) : 0}}
|
| Net AMT: |
Rs
{{ number_format($totalNetAmount + $item['previous_balance']) }}
|
|
@if($pageBreak % 2 != 0)
@endif
@endforeach