@if( isset( $invoiceSettings ) && $invoiceSettings->logo==1 ) @if($flag == 'printInvoice') practitioner->businessProfile->logo) : ""}}' style="max-width: 200px; height: auto;padding-top: 40px;" > @else @endif @elseif( isset($invoiceSettings) && $invoiceSettings->logo==0 ) @else @if($flag == 'printInvoice') practitioner->businessProfile->logo) : ""}}' style=" max-width: 200px; height: auto;padding-top: 40px;" > @else @endif @endif

{{$invoice->practitioner->full_name ?? ""}}

@if( isset( $invoiceSettings ) && $invoiceSettings->practitioner_provider_number==1 ) @if($invoice->practitioner->registration_number)

Registration number: {{$invoice->practitioner->registration_number ?? ""}}

@endif @elseif( isset( $invoiceSettings ) && $invoiceSettings->practitioner_provider_number==0 ) @else @if($invoice->practitioner->registration_number)

Registration number: {{$invoice->practitioner->registration_number ?? ""}}

@endif @endif @if($display == 1 && isset($phf) && isset($chf))

{{$phf->healthcodes->name ?? ""}} : {{$phf->provider_number ?? ""}}

@endif @if(isset($claim_details) && $invoice->bill_to =='company' && $claim_details->display_claim_details == 1 && $claim_details->claim_number !="")

Claim no: {{$claim_details->claim_number ?? ""}}

@endif
@if( !empty( $owner->bankDetail ) ) @endif

@if(isset($gst_status) && $gst_status != 0) Tax Invoice @else Invoice @endif

ABN: {{$owner->bankDetail->abn ?? ""}}

@if( isset($invoiceSettings) && $invoiceSettings->company_name==1 )

{{$invoice->practitioner->businessProfile->name ?? ""}}

@elseif( isset($invoiceSettings) && $invoiceSettings->company_name==0 ) @else

{{$invoice->practitioner->businessProfile->name ?? ""}}

@endif
@if( isset( $invoiceSettings ) && $invoiceSettings->is_replace_business_address == 1 )

{{ $invoiceSettings->address1.', '.$invoiceSettings->address2 }}

{{ $invoiceSettings->suburb.', '.$invoiceSettings->state.', '.$invoiceSettings->postcode.', '.$invoiceSettings->country }}

@elseif( isset( $invoiceSettings ) && $invoiceSettings->address == 1 ) @if( isset( $appointment_location ) && $appointment_location != '')

{{ $appointment_location->address ?? "" }}

@elseif( isset( $invoice->invoicelocation ) == 1 )

{{$invoice->invoicelocation->address ?? ""}}

@if(!empty($invoice->invoicelocation->address2))

{{ $invoice->invoicelocation->address2 }}

@endif

{{ $invoice->invoicelocation->suburb.' '.$invoice->invoicelocation->state.' '.$invoice->invoicelocation->postcode }}

{{ $invoice->invoicelocation->country }}

@else

{{$invoice->practitioner->businessProfile->address ?? ""}}

@endif @endif
@if( isset($invoiceSettings) && $invoiceSettings->phone_number==1 )

{{$invoice->practitioner->businessProfile->office_phone ?? ""}}

@elseif( isset($invoiceSettings) && $invoiceSettings->phone_number==0 ) @else

{{$invoice->practitioner->businessProfile->office_phone ?? ""}}

@endif

@if( isset( $invoiceSettings ) && $invoiceSettings->email == 1 )

{{$invoice->practitioner->businessProfile->email ?? ""}}

@elseif( isset( $invoiceSettings ) && $invoiceSettings->email == 0 ) @else

{{$invoice->practitioner->businessProfile->email ?? ""}}

@endif

@if( isset( $invoiceSettings ) && $invoiceSettings->website == 1 )

{{$invoice->practitioner->businessProfile->website ?? ""}}

@elseif( isset( $invoiceSettings ) && $invoiceSettings->website == 0 ) @else

{{$invoice->practitioner->businessProfile->website ?? ""}}

@endif
@if(isset($claim_details) && $invoice->bill_to =='company' && $claim_details->display_claim_details == 1) @endif

{{$invoice->client->full_name ?? ""}}

@if( isset( $invoiceSettings ) && $invoiceSettings->client_name == 1 )

{{$invoice->client->email ?? ""}}

@elseif( isset( $invoiceSettings ) && $invoiceSettings->client_name == 0 ) @else

{{$invoice->client->email ?? ""}}

@endif
@if( isset( $invoiceSettings ) && $invoiceSettings->client_address == 1 )

{{ ucwords( $invoice->client->address ) ?? ""}}

{{ ucwords( $invoice->client->address2 ) ?? ""}}

{{ ucwords( $invoice->client->suburb_state_postcode ) ?? ""}}

{{ ucwords( $invoice->client->country ) ?? ""}}

@elseif( isset($invoiceSettings) && $invoiceSettings->client_address==0 ) @else

{{ ucwords( $invoice->client->address ) ?? ""}}

@endif
@if( isset( $invoiceSettings ) && $invoiceSettings->client_dob == 1 )

@if(isset($invoice->client->date_of_birth)) DOB: {{$invoice->client->date_of_birth->format('d/m/Y')}} @else {{""}} @endif

@elseif( isset( $invoiceSettings ) && $invoiceSettings->client_dob == 0 ) @else

@if(isset($invoice->client->date_of_birth)) DOB: {{$invoice->client->date_of_birth->format('d/m/Y')}} @else {{""}} @endif

@endif

Bill to:

{{$claim_details->company_name ?? ""}}

{{$claim_details->owner_first_name ?? ""}} {{$claim_details->owner_last_name ?? ""}}

{{$claim_details->owner_email ?? ""}}

Invoice number: {{$invoice->invoice_number ?? ""}}
Invoice date: {{\Carbon\Carbon::parse($invoice->date)->format('d/m/y')}}
{{-- @if( isset($isDisplay) && ( count($pii) > 0 ) ) @if($isDisplay == 1) @else @endif @else @endif --}} @if( isset( $status ) && $status ) @endif @php $total=0; $maintotal=0; $totalgst = 0; $totalgst1 = 0; $totalgstItem = 0; $totalgst1Item = 0; $appPrice=0; $productPrice=0; @endphp @if( $pii ) @foreach( $pii as $tid ) @if( $tid->appointment_type ) @php $total += preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00); @endphp @if( $tid->appointment_type->is_gst == 'on' ) @php $totalgst += preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00); @endphp {{-- GST FOR MULTIPLE QTY --}} @if( $tid->item_qty == 1 ) @php $appPrice= preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00); @endphp @else @php $appPrice= preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00)/ preg_replace("/[^0-9.]/", "", $tid->item_qty ?? 1); @endphp @endif @for( $i=1; $i<=$tid->item_qty; $i++ ) @php $totalgstItem += ($appPrice/11); @endphp @endfor @else @endif @endif @endforeach @endif @isset( $pip1 ) @foreach( $pip1 as $prod ) @if( $prod->product_iteams ) @php $maintotal += $prod->deduct_quantity * preg_replace("/[^0-9.]/", "", $prod->product_cost); @endphp @if( $prod->product_iteams->is_gst == 'on' ) @php $totalgst1 += preg_replace("/[^0-9.]/", "",$prod->product_cost); @endphp {{-- GST FOR MULTIPLE QTY --}} @for( $i=1; $i<=$prod->deduct_quantity; $i++ ) @php $totalgst1Item += ( preg_replace("/[^0-9.]/", "",$prod->product_cost)/11); @endphp @endfor @else @endif @endif @endforeach @endisset @if(isset($invoice) && $invoice->shipping_cost !='') @php $total = $total + $invoice->shipping_cost; @endphp @endif
Description Code Code Code Price
{{ ucwords( $status ) ?? "" }} Appointment - ${{number_format( $charge, 2 ) ?? '0.00'}}
* {{$tid->appointment_type->appointment_type}}{{$tid->appointment_type->appointment_type}}{{$tid->appointment_type->code}} ${{number_format(preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00),2)}}
* {{$prod->deduct_quantity}} {{"x"}} {{$prod->product_iteams->product_name}}{{$prod->deduct_quantity}} {{"x"}} {{$prod->product_iteams->product_name}}{{$prod->product_iteams->product_code}} ${{number_format($prod->deduct_quantity * $prod->product_cost,2)}}
@if( isset($invoice) && $invoice->shipping_cost != '' && $invoice->shipping_cost != '0.00') @endif @if( isset( $hide3line ) ) @if( isset( $shiping_cost ) && isset( $shipping_method ) && $shipping_method != '' ) @endif {{-- @if($invoice->extra_amount_paid > 0) @endif --}} {{-- @if( isset( $owned_invoice_id ) ) @if( $invoice->extra_amount_paid < 0 && $owned_invoice_id != '' ) @endif @endif --}} @if( isset( $ownedInvArr ) ) @if( count( $ownedInvArr ) > 0 ) @foreach( $ownedInvArr as $key => $value ) @endforeach @endif @endif @if( isset($invoice) && $invoice->discount != '' && $invoice->discount != '0.00') @endif @if($hisinv) @foreach($hisinv as $hi) @if( isset( $ownedInvArr ) && $hi->payment_type == 12) @if( count( $ownedInvArr ) > 0 ) @continue; @endif @endif @endforeach @endif @if(isset($oldinvoicedata)) @if($oldinvoicedata->amount_status == 'owing') @endif @endif @endif

Shipping:

${{number_format( $invoice->shipping_cost, 2 ) ?? '0.00' }}

Total:

${{number_format($maintotal + $total ?? 0, 2) }}

{{ $shipping_method ?? '' }}:

${{number_format( $shiping_cost, 2 ) ?? '0.00' }}

Outstanding balance:

$0.00

Total:

${{number_format($maintotal + $total ?? 0, 2) }}

Credit applied {{$invoice->created_at->timezone(getAustraliaTimeZone())->format('d/m/y')}}

- ${{ $invoice->extra_amount_paid}}

Balance Inv #{{ $owned_invoice_id }}

${{ number_format( abs( $invoice->extra_amount_paid ), 2 ) }}

Balance Inv #{{ $value['owned_invoice_id'] }}

${{ number_format( $value['balance'], 2 ) }}

Discount:

${{number_format( $invoice->discount, 2 ) ?? '0.00' }}

{{$hi->paymentType->name ?? ''}} {{$hi->created_at->format('d/m/y')}}:

@if($hi->payment_type == 12 || $hi->payment_type == 15) -@endif${{number_format($hi->paid_amount ,2) ?? '0.00'}}

Balance:

${{ number_format( $invoice->account_balance, 2 ) ?? "0.00"}}

{{$invoice->paymentType->name ?? ''}} {{$invoice->created_at->timezone(getAustraliaTimeZone())->format('d/m/y')}}:

${{ abs($oldinvoicedata->amount)}}

* Total GST:

@if( isset( $use_new_gst ) && $use_new_gst == 1 ) ${{number_format( $total_gst - $invoice->discount, 2 ) }} @else ${{number_format(($totalgstItem + $totalgst1Item) ,2) }} @endif




{{--@if( isset($invoiceSettings) && $invoiceSettings->invoice_notes == 1 )--}} @if( $invoice->notes != '' )

{!! nl2br(e($invoice->notes)) !!}

@endif {{--@endif--}}