@lang('messages.date'): {{ @format_date($sell->transaction_date) }}
{{ __('sale.invoice_no') }}: #{{ $sell->invoice_no }}
{{ __('sale.status') }}: {{$sell->repair_status}}
{{ __('sale.payment_status') }}: {{ ucfirst( $sell->payment_status ) }}
{{ __('sale.customer_name') }}: {{ $sell->contact->name }}
{{ __('business.address') }}:
@if(!empty($sell->billing_address()))
{{$sell->billing_address()}}
@else
{!! $sell->contact->contact_address !!}
@endif
@lang('product.brand'): {{$sell->manufacturer}}
@lang('repair::lang.device'): {{$sell->repair_device}}
@lang('repair::lang.model'): {{$sell->repair_model}}
@lang('repair::lang.serial_no'): {{$sell->repair_serial_no}}
@if(in_array('service_staff' ,$enabled_modules))
@lang('repair::lang.technician'): {{$sell->service_staff}}
@endif
@if(!empty($warranty_expires_in))
@lang('repair::lang.warranty'): {{$sell->warranty_name}}
( @lang('repair::lang.expires_in') {{$warranty_expires_in}} )
@endif
{{ __('sale.products') }}:
@include('sale_pos.partials.sale_line_details')
{{ __('repair::lang.defect')}}:
@php
$defects = json_decode($sell->repair_defects, true);
@endphp
@if(!empty($defects))
@foreach($defects as $product_defect)
{{$product_defect['value']}}
@if(!$loop->last)
{{','}}
@endif
@endforeach
@endif
@if(!empty($sell->repair_checklist))
@php
$selected_checklist = json_decode($sell->repair_checklist, true);
@endphp
@foreach($checklists as $check)
@if(isset($selected_checklist[$check]))
@if($selected_checklist[$check] == 'yes')
@elseif($selected_checklist[$check] == 'no')
@elseif($selected_checklist[$check] == 'not_applicable')
@endif
@else
@endif
{{$check}}
@endforeach
@endif
| # |
{{ __('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]}}
@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') }}: |
(-) |
{{ $sell->discount_amount }} @if( $sell->discount_type == 'percentage') {{ '%'}} @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 }} |
@includeIf('repair::repair.partials.activities')
| @lang('lang_v1.name') |
@lang('messages.view') |
@lang('messages.delete') |
@forelse($sell->media as $media)
| {{$media->display_name}} |
|
|
@empty
| @lang('purchase.no_records_found') |
@endforelse
@lang('lang_v1.password'):
{{$sell->repair_security_pwd}}
@lang('repair::lang.security_pattern_code'):