@lang('sale.sell_details') (@lang('sale.invoice_no'): {{ $sell->invoice_no }})

@lang('messages.date'): {{ @format_date($sell->transaction_date) }}

{{ __('sale.invoice_no') }}: #{{ $sell->invoice_no }}
{{ __('sale.status') }}: @if($sell->status == 'draft' && $sell->is_quotation == 1) {{ __('lang_v1.quotation') }} @else {{ ucfirst( $sell->status ) }} @endif
{{ __('sale.payment_status') }}: {{ ucfirst( $sell->payment_status ) }}
{{ __('sale.customer_name') }}: {{ $sell->contact->name }}
{{ __('business.address') }}:
@if($sell->contact->landmark) {{ $sell->contact->landmark }} @endif {{ ', ' . $sell->contact->city }} @if($sell->contact->state) {{ ', ' . $sell->contact->state }} @endif
@if($sell->contact->country) {{ $sell->contact->country }} @endif

{{ __('sale.products') }}:

@foreach($sell->sell_lines as $sell_line) @if(!empty($sell_line->modifiers)) @foreach($sell_line->modifiers as $modifier) @endforeach @endif @endforeach
# {{ __('sale.product') }} {{ __('sale.qty') }} {{ __('sale.unit_price') }} {{ __('sale.tax') }} {{ __('sale.price_inc_tax') }} {{ __('sale.subtotal') }}
{{ $loop->iteration }} {{ $sell_line->product->name }} @if( $sell_line->product->type == 'variable') - {{ $sell_line->variations->product_variation->name or ''}} - {{ $sell_line->variations->name or ''}}, @endif {{ $sell_line->variations->sub_sku or ''}} @php $brand = $sell_line->product->brand; @endphp @if(!empty($brand->name)) , {{$brand->name}} @endif {{ $sell_line->quantity }} {{ $sell_line->unit_price }} {{ $sell_line->item_tax }} @if(!empty($taxes[$sell_line->tax_id])) ( {{ $taxes[$sell_line->tax_id]}} ) @endif {{ $sell_line->unit_price_inc_tax }} {{ $sell_line->quantity * $sell_line->unit_price_inc_tax }}
  {{ $modifier->product->name }} - {{ $modifier->variations->name or ''}}, {{ $modifier->variations->sub_sku or ''}} {{ $modifier->quantity }} {{ $modifier->unit_price }} {{ $modifier->item_tax }} @if(!empty($taxes[$modifier->tax_id])) ( {{ $taxes[$modifier->tax_id]}} ) @endif {{ $modifier->unit_price_inc_tax }} {{ $modifier->quantity * $modifier->unit_price_inc_tax }}

{{ __('sale.payment_info') }}:

@php $total_paid = 0; @endphp @foreach($sell->payment_lines as $payment_line) @php if($payment_line->is_return == 1){ $total_paid -= $payment_line->amount; } else { $total_paid += $payment_line->amount; } @endphp @endforeach
# {{ __('messages.date') }} {{ __('purchase.ref_no') }} {{ __('sale.amount') }} {{ __('sale.payment_mode') }} {{ __('sale.payment_note') }}
{{ $loop->iteration }} {{ @format_date($payment_line->paid_on) }} {{ $payment_line->payment_ref_no }} {{ $payment_line->amount }} {{ ucfirst($payment_line->method) }} @if($payment_line->is_return == 1)
( {{ __('lang_v1.change_return') }} ) @endif
@if($payment_line->note) {{ ucfirst($payment_line->note) }} @else -- @endif
{{ __('sale.total') }}: {{ $sell->total_before_tax }}
{{ __('sale.order_tax') }}: (+) {{ $sell->tax_amount }}
{{ __('sale.discount') }}: (-) {{ $sell->discount_amount }} @if( $sell->discount_type == 'percentage') {{ '%'}} @endif
{{ __('sale.total_payable') }}: {{ $sell->final_total }}
{{ __('sale.total_paid') }}: {{ $total_paid }}
{{ __('sale.total_remaining') }}: {{ $sell->final_total - $total_paid }}
{{ __( 'sale.sell_note')}}:

@if($sell->additional_notes) {{ $sell->additional_notes }} @else -- @endif

{{ __( 'sale.staff_note')}}:

@if($sell->staff_note) {{ $sell->staff_note }} @else -- @endif

@lang("messages.print")