@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
{{ __('sale.' . $sell->status) }}
@endif
{{ __('sale.payment_status') }}: @if(!empty($sell->payment_status)){{ __('lang_v1.' . $sell->payment_status) }}
@endif
{{ __('sale.customer_name') }}: {{ $sell->contact->name }}
{{ __('business.address') }}:
@if(!empty($sell->billing_address()))
{{$sell->billing_address()}}
@else
@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
@if($sell->contact->mobile)
{{__('contact.mobile')}}: {{ $sell->contact->mobile }}
@endif
@if($sell->contact->alternate_number)
{{__('contact.alternate_contact_number')}}: {{ $sell->contact->alternate_number }}
@endif
@if($sell->contact->landline)
{{__('contact.landline')}}: {{ $sell->contact->landline }}
@endif
@endif
@if(in_array('tables' ,$enabled_modules))
@lang('restaurant.table'):
{{$sell->table->name ?? ''}}
@endif
@if(in_array('service_staff' ,$enabled_modules))
@lang('restaurant.service_staff'):
{{$sell->service_staff->user_full_name ?? ''}}
@endif
@lang('sale.shipping'):
{{$shipping_statuses[$sell->shipping_status] ?? '' }}
@if(!empty($sell->shipping_address()))
{{$sell->shipping_address()}}
@else
{{$sell->shipping_address ?? '--'}}
@endif
@if(!empty($sell->delivered_to))
@lang('lang_v1.delivered_to'): {{$sell->delivered_to}}
@endif
@if(in_array('types_of_service' ,$enabled_modules))
@if(!empty($sell->types_of_service))
@lang('lang_v1.types_of_service'):
{{$sell->types_of_service->name}}
@endif
@if(!empty($sell->types_of_service->enable_custom_fields))
@lang('lang_v1.service_custom_field_1'):
{{$sell->service_custom_field_1}}
@lang('lang_v1.service_custom_field_2'):
{{$sell->service_custom_field_2}}
@lang('lang_v1.service_custom_field_3'):
{{$sell->service_custom_field_3}}
@lang('lang_v1.service_custom_field_4'):
{{$sell->service_custom_field_4}}
@endif
@endif
{{ __('sale.products') }}:
@include('sale_pos.partials.sale_line_details')
{{ __('sale.payment_info') }}:
# |
{{ __('messages.date') }} |
{{ __('purchase.ref_no') }} |
{{ __('sale.amount') }} |
{{ __('sale.payment_mode') }} |
{{ __('sale.payment_note') }} |
@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
{{ $loop->iteration }} |
{{ @format_date($payment_line->paid_on) }} |
{{ $payment_line->payment_ref_no }} |
{{ $payment_line->amount }} |
{{ $payment_types[$payment_line->method] ?? $payment_line->method }}
@if($payment_line->is_return == 1)
( {{ __('lang_v1.change_return') }} )
@endif
|
@if($payment_line->note)
{{ ucfirst($payment_line->note) }}
@else
--
@endif
|
@endforeach
{{ __('sale.total') }}: |
|
{{ $sell->total_before_tax }} |
{{ __('sale.discount') }}: |
(-) |
discount_type == 'fixed') data-currency_symbol="true" @endif>{{ $sell->discount_amount }} @if( $sell->discount_type == 'percentage') {{ '%'}} @endif |
@if(in_array('types_of_service' ,$enabled_modules) && !empty($sell->packing_charge))
{{ __('lang_v1.packing_charge') }}: |
(+) |
packing_charge_type == 'fixed') data-currency_symbol="true" @endif>{{ $sell->packing_charge }} @if( $sell->packing_charge_type == 'percent') {{ '%'}} @endif |
@endif
@if(session('business.enable_rp') == 1 && !empty($sell->rp_redeemed) )
{{session('business.rp_name')}}: |
(-) |
{{ $sell->rp_redeemed_amount }} |
@endif
{{ __('sale.order_tax') }}: |
(+) |
@if(!empty($order_taxes))
@foreach($order_taxes as $k => $v)
{{$k}} - {{ $v }}
@endforeach
@else
0.00
@endif
|
{{ __('sale.shipping') }}: @if($sell->shipping_details)({{$sell->shipping_details}}) @endif |
(+) |
{{ $sell->shipping_charges }} |
{{ __('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