@lang('messages.date'): {{ @format_date($purchase->transaction_date) }}
@lang('purchase.supplier'):
{{ $purchase->contact->supplier_business_name }}
{{ $purchase->contact->name }}
@if(!empty($purchase->contact->landmark))
{{$purchase->contact->landmark}}
@endif
@if(!empty($purchase->contact->city) || !empty($purchase->contact->state) || !empty($purchase->contact->country))
{{implode(',', array_filter([$purchase->contact->city, $purchase->contact->state, $purchase->contact->country]))}}
@endif
@if(!empty($purchase->contact->tax_number))
@lang('contact.tax_no'): {{$purchase->contact->tax_number}}
@endif
@if(!empty($purchase->contact->mobile))
@lang('contact.mobile'): {{$purchase->contact->mobile}}
@endif
@if(!empty($purchase->contact->email))
Email: {{$purchase->contact->email}}
@endif
@lang('business.business'):
{{ $purchase->business->name }}
{{ $purchase->location->name }}
@if(!empty($purchase->location->landmark))
{{$purchase->location->landmark}}
@endif
@if(!empty($purchase->location->city) || !empty($purchase->location->state) || !empty($purchase->location->country))
{{implode(',', array_filter([$purchase->location->city, $purchase->location->state, $purchase->location->country]))}}
@endif
@if(!empty($purchase->business->tax_number_1))
{{$purchase->business->tax_label_1}}: {{$purchase->business->tax_number_1}}
@endif
@if(!empty($purchase->business->tax_number_2))
{{$purchase->business->tax_label_2}}: {{$purchase->business->tax_number_2}}
@endif
@if(!empty($purchase->location->mobile))
@lang('contact.mobile'): {{$purchase->location->mobile}}
@endif
@if(!empty($purchase->location->email))
@lang('business.email'): {{$purchase->location->email}}
@endif
@lang('purchase.ref_no'): #{{ $purchase->invoice_no }}
@lang('messages.date'): {{ @format_date($purchase->transaction_date) }}
@php
$hide_tax = '';
if( session()->get('business.enable_inline_tax') == 0){
$hide_tax = 'hide';
}
@endphp
# |
@lang('sale.product') |
@lang('sale.qty') |
@lang('sale.unit_price') |
@lang('sale.tax') |
@lang('sale.price_inc_tax') |
@lang('sale.subtotal') |
@php
$total_before_tax = 0.00;
@endphp
@foreach($purchase->purchase_lines as $purchase_line)
{{ $loop->iteration }} |
{{ $purchase_line->product->name }}
@if( $purchase_line->product->type == 'variable')
- {{ $purchase_line->variations->product_variation->name}}
- {{ $purchase_line->variations->name}}
@endif
|
{{ $purchase_line->quantity }} |
{{ $purchase_line->purchase_price}}
|
{{ $purchase_line->item_tax }} @if($purchase_line->tax_id) ( {{ $taxes[$purchase_line->tax_id]}} ) @endif |
{{ $purchase_line->purchase_price_inc_tax }} |
{{ $purchase_line->purchase_price_inc_tax * $purchase_line->quantity }} |
@php
$total_before_tax += ($purchase_line->quantity * $purchase_line->purchase_price);
@endphp
@endforeach
@lang('purchase.net_total_amount'): |
|
{{ $total_before_tax }} |
@lang('purchase.discount'): |
(-)
@if($purchase->discount_type == 'percentage')
({{$purchase->discount_amount}} %)
@endif
|
@if($purchase->discount_type == 'percentage')
{{$purchase->discount_amount * $total_before_tax / 100}}
@else
{{$purchase->discount_amount}}
@endif
|
@lang('lang_v1.total_credit_amt'): |
|
{{ $purchase->final_total }} |
@lang('purchase.additional_notes'):
@if($purchase->additional_notes)
{{ $purchase->additional_notes }}
@else
--
@endif
{{-- Barcode --}}