Tax Invoice

ABN: {{$appointment->locations->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->address==1) {{$appointment->locations->address ?? ""}}

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

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

@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

Bill to

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@endif

Invoice number :

{{$invoice->invoice_number}}

Invoice date :

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

Paid :

Amount due :

{{"$".$invoice->amount_paid}}

@php $total=0; $maintotal=0; $totalgst = 0; $totalgst1 = 0; @endphp @if($pii) @foreach($pii as $tid) @if($tid->appointment_type) @php $total += $tid->app_cost; @endphp @if($tid->appointment_type->is_gst == 'on') @php $totalgst += $tid->app_cost; @endphp @else @endif @endif @endforeach @endif @if($pip1) @foreach($pip1 as $prod) @if($prod->product_iteams) @php $maintotal += $prod->deduct_quantity * $prod->product_cost; @endphp @if(isset($prod->product_iteams) && $prod->product_iteams->is_gst == 'on') @php $totalgst1 += $prod->product_cost @endphp @else @endif @endif @endforeach @endif
Description Item # Price
* {{$tid->appointment_type->appointment_type ?? ""}}{{$tid->appointment_type->appointment_type ?? ""}}{{$tid->appointment_type->code}} $ {{$tid->app_cost}}
* {{$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)}}

Total :

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

Amount paid :

{{"$".$invoice->amount_paid}}

Payment Method :

{{$invoice->paymentType->name ?? ''}}

* Total GST :

${{number_format(($totalgst + $totalgst1) /11 ,2) }}

{{--

Balance

$00.00

--}}
{{--
{{$invoice->notes ?? ""}}
--}}

{{$invoice->notes ?? ''}}