@include('front.patient.inner-layout.head')
ABN: {{$invoice->practitioner->bankDetail->abn ?? "" }}
@elseABN:
@endif @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 ?? ""}}
@endifBill to
{{$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 ) @elseif( isset( $invoiceSettings ) && $invoiceSettings->client_dob == 0 ) @else @endif{{$invoice->invoice_number ?? ''}}
{{ isset($invoice->date) ? $invoice->date->format('d/m/y') : ''}}
| Description | Code | Price | |
|---|---|---|---|
| {{ ucwords( $status ) ?? "" }} {{"Appointment"}} | - | ${{number_format( $charge, 2 ) ?? '0.00'}} | |
| * {{$tid->appointment_type->appointment_type ?? ""}} | @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 $quantity = isset($tid->item_qty) ? $tid->item_qty : 1; $appPrice= preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00 )/$quantity; @endphp @endif @for( $i=1; $i<=$tid->item_qty; $i++ ) @php $totalgstItem += ($appPrice/11); @endphp @endfor @else{{$tid->appointment_type->appointment_type ?? ""}} | @endif{{$tid->appointment_type->code}} | ${{number_format( preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00),2) ?? "0.00"}} |
| * {{$prod->deduct_quantity}} {{"x"}} {{$prod->product_iteams->product_name}} | @php $totalgst1 += $prod->product_cost @endphp {{-- GST FOR MULTIPLE QTY --}} @for( $i=1; $i<=$prod->deduct_quantity; $i++ ) @php $totalgst1Item += ($prod->product_cost/11); @endphp @endfor @else{{$prod->deduct_quantity}} {{"x"}} {{$prod->product_iteams->product_name}} | @endif{{$prod->product_iteams->product_code}} | ${{number_format( $prod->deduct_quantity * $prod->product_cost, 2 ) ?? "0.00"}} |
$@if($charge){{$charge ?? '0.0'}}@else{{number_format($maintotal+$total ?? 0, 2)}}@endif
${{ $shiping_cost }}
${{ number_format( abs( $invoice->extra_amount_paid ), 2 ) }}
${{ number_format( $value['balance'], 2 ) }}
@if($hi->payment_type ==12)-@endif${{number_format($hi->paid_amount ,2) ?? '0.00'}}
${{ abs($oldinvoicedata->amount)}}
${{number_format( $invoice->account_balance, 2 ) ?? '0.00'}}
${{ number_format( $total_gst, 2 ) }}
@else${{number_format(($totalgstItem + $totalgst1Item) ,2) }}
@endif