@lang('lang_v1.sell_return') (@lang('purchase.ref_no'): {{ $purchase->invoice_no }})

@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) }}
@lang('Invoice No'): {{ $purchase->old_invoice }}
@php $hide_tax = ''; if( session()->get('business.enable_inline_tax') == 0){ $hide_tax = 'hide'; } @endphp
@php $total_before_tax = 0.00; @endphp @foreach($purchase->purchase_lines as $purchase_line) @php $discount = 0; $amount = $purchase_line->purchase_price_inc_tax; if($purchase_line->discount_percent > 0) { $amount = $purchase_line->purchase_price_inc_tax - $purchase_line->discount_percent; } @endphp @php $total_before_tax += ($purchase_line->quantity * $amount); @endphp @endforeach
# @lang('sale.product') @lang('sale.qty') @lang('sale.unit_price') @lang('Discount(%)') @lang('sale.subtotal')
{{ $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_inc_tax}} {{ $purchase_line->discount_percent ?? 0}} {{ $amount * $purchase_line->quantity }}

@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

@lang('Return Reason'):

{{ $purchase->return_type ?? ''}} {{ $purchase->reason ?? ''}}

{{-- Barcode --}}
@lang("messages.print")