@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(isset($phf) && isset($chf))

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

@endif
@if( !empty( $invoice->practitioner->bankDetail ) ) @endif

Tax Invoice

ABN: {{$invoice->practitioner->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 ?? ""}}

@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

{{$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
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( $pip ) @foreach( $pip 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
DescriptionCodeCodeCode 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( $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( $historyinvoice ) @foreach( $historyinvoice as $hi ) @endforeach @endif @if( isset( $oldinvoicedata ) ) @if( $oldinvoicedata->amount_status == 'owing' ) @endif @endif

Total :

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

{{ $shipping_method ?? '' }} :

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

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 ) }}

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

@if($hi->payment_type ==12) -@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, 2 ) }} @else ${{number_format(($totalgstItem + $totalgst1Item) ,2) }} @endif




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

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

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