@lang('project::lang.invoice_details') (@lang('sale.invoice_no'): {{$transaction->invoice_no}})

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

@lang('project::lang.title'): {{ $transaction->pjt_title }}
{{ __('sale.invoice_no') }}: #{{ $transaction->invoice_no }}
{{ __('sale.status') }}: {{ __('sale.' . $transaction->status) }}
{{ __('sale.payment_status') }}: @if(!empty($transaction->payment_status)) {{ __('lang_v1.'.$transaction->payment_status) }}
@endif
{{ __('sale.customer_name') }}: {{ $transaction->contact->name }}
{{ __('business.address') }}:
@if(!empty($transaction->billing_address())) {{$transaction->billing_address()}} @else @if($transaction->contact->landmark) {{ $transaction->contact->landmark }}, @endif {{ $transaction->contact->city }} @if($transaction->contact->state) {{ ', ' . $transaction->contact->state }} @endif
@if($transaction->contact->country) {{ $transaction->contact->country }} @endif @if($transaction->contact->mobile)
{{__('contact.mobile')}}: {{ $transaction->contact->mobile }} @endif @if($transaction->contact->alternate_number)
{{__('contact.alternate_contact_number')}}: {{ $transaction->contact->alternate_number }} @endif @if($transaction->contact->landline)
{{__('contact.landline')}}: {{ $transaction->contact->landline }} @endif @endif
@lang('project::lang.project'): {{$transaction->project->name}}
@lang('sale.status'): @lang('project::lang.'.$transaction->project->status)
@if(isset($transaction->project->start_date)) @lang('business.start_date'): {{@format_date($transaction->project->start_date)}} @endif
@if(isset($transaction->project->end_date)) @lang('project::lang.end_date'): {{@format_date($transaction->project->end_date)}} @endif

{{ __('project::lang.tasks') }}:

@includeIf('project::invoice.partials.invoice_line_table')

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

@php $total_paid = 0; @endphp @foreach($transaction->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 }} {{ $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
{{ __('sale.subtotal') }}: {{ $transaction->total_before_tax }}
{{ __('sale.discount') }}: (-)
discount_type == 'fixed') data-currency_symbol="true" @endif> {{ $transaction->discount_amount }} @if($transaction->discount_type == 'percentage') {{ '%'}} @endif
{{ __('sale.total_payable') }}: {{ $transaction->final_total }}
{{ __('sale.total_paid') }}: {{ $total_paid }}
{{ __('sale.total_remaining') }}: {{ $transaction->final_total - $total_paid }}
{{ __('project::lang.terms')}}:

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

{{ __('project::lang.notes')}}:

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