@if(!isset($existinvoice)) @endif
Loading…
@if(isset($existinvoice))
@csrf

Tax Invoice #{{$existinvoice->invoice_number}}

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

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

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

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

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

@endif

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

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

Bill to

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

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

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

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

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

@endif

@php $header_discount = 0; @endphp @if($eii) @foreach($eii as $tid) @php $header_discount += $tid->item_discount; @endphp @endforeach @endif @if($eiP) @foreach($eiP as $prod) @php $header_discount += $prod->product_discount; @endphp @endforeach @endif @if($packagesData) @foreach( $packagesData as $package ) @php $header_discount += $package->package_discount; @endphp @endforeach @endif @if($courseData) @php $header_discount += $courseData->discount; @endphp @endif @if($header_discount > 0) @endif @php $total=0; $maintotal=0; $totalgst = 0; $totalgst1 = 0; $totalgstItem = 0; $totalgst1Item = 0; $appPrice=0; $productPrice=0; $gst = 0; $item_discount = 0; @endphp @isset($existinvoice) @if($eiP) @foreach($eiP as $prod) @if($prod->product_iteams) @php $maintotal += $prod->deduct_quantity * $prod->product_cost; @endphp @if($prod->product_iteams->is_gst == 'on') @else @endif @if($prod->product_discount > 0) @else @if($header_discount > 0) @endif @endif @php $grandTotalGst = 0; @endphp @if($prod->product_iteams->is_gst =='on') @php $itemGST = (( $prod->deduct_quantity * $prod->product_cost ) - $prod->product_discount); $grandTotalGst += $itemGST; $totalgst += $itemGST; $item_discount += $prod->product_discount; $GST_Text = '10%'; @endphp @else @php $itemGST = 0; $grandTotalGst += $itemGST; $totalgst += 0; $item_discount += $prod->product_discount; $GST_Text = 'FREE'; @endphp @endif {{-- --}} @endif @endforeach @endif @if($eii) @foreach($eii as $tid) @if($tid->appointment_type) @php $discount = (!is_null($tid->item_discount)) ? $tid->item_discount : 0.00; $total = ($tid->app_cost * $tid->item_qty) - $discount; @endphp @if($tid->appointment_type->is_gst == 'on') @else @endif @if($tid->item_discount > 0) @else @if($header_discount > 0) @endif @endif @php $grandTotalGst = 0; @endphp @if( $tid->appointment_type->is_gst == "on" ) @php $itemGST = (( $tid->item_qty * $tid->app_cost ) - $tid->item_discount); $grandTotalGst += $itemGST; $totalgst += $itemGST; $item_discount += $tid->item_discount; $GST_Text = "10%"; @endphp @else @php $itemGST = 0; $grandTotalGst += $itemGST; $totalgst += 0; $item_discount += $tid->item_discount; $GST_Text = "FREE"; @endphp @endif {{-- --}} @endif @endforeach @endif @if($packagesData) @foreach($packagesData as $tid) @if($tid->package_id) @php $discount = (!is_null($tid->package_discount)) ? $tid->package_discount : 0.00; $total = ($tid->package_cost * $tid->package_quantity) - $discount; @endphp @if($tid->is_gst == 'on') @else @endif @if($tid->package_discount > 0) @else @if($header_discount > 0) @endif @endif @php $grandTotalGst = 0; @endphp @if( $tid->is_gst == "on" ) @php $itemGST = (( $tid->package_quantity * $tid->package_cost ) - $tid->package_discount); $grandTotalGst += $itemGST; $totalgst += $itemGST; $item_discount += $tid->package_discount; $GST_Text = "10%"; @endphp @else @php $itemGST = 0; $grandTotalGst += $itemGST; $totalgst += 0; $item_discount += $tid->package_discount; $GST_Text = "FREE"; @endphp @endif {{-- --}} @endif @endforeach @endif @if($courseData) @if($courseData->course_id) @php $discount = (!is_null($courseData->discount)) ? $courseData->discount : 0.00; $total = $courseData->course_cost - $discount; @endphp @if($courseData->is_new_takings_gst == 1) @else @endif @if($courseData->discount > 0) @else @if($header_discount > 0) @endif @endif @php $grandTotalGst = 0; @endphp @if( $courseData->is_new_takings_gst == 1 ) @php $itemGST = $courseData->course_cost - $courseData->discount; $grandTotalGst += $itemGST; $totalgst += $itemGST; $item_discount += $courseData->discount; $GST_Text = "10%"; @endphp @else @php $itemGST = 0; $grandTotalGst += $itemGST; $totalgst += 0; $item_discount += $courseData->discount; $GST_Text = "FREE"; @endphp @endif {{-- --}} @endif @endif @else @if($appointment->appointment_type->is_gst == 'on') @else @endif @endisset
Description Code CostDiscountGST Price
* {{$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->product_cost,2)}} ${{number_format($prod->product_discount,2)}} {{ $GST_Text }}${{number_format($itemGST,2)}} ${{number_format($prod->deduct_quantity * $prod->product_cost - $prod->product_discount,2)}}
* {{$tid->item_qty ?? ""}} {{"x"}} {{$tid->appointment_type->appointment_type ?? ""}}{{$tid->item_qty ?? ""}} {{"x"}} {{$tid->appointment_type->appointment_type ?? ""}}{{$tid->appointment_type->code}} ${{number_format($tid->app_cost,2)}}${{number_format($tid->item_discount,2)}}{{$GST_Text}}${{number_format($itemGST,2)}}${{number_format($tid->app_cost * $tid->item_qty - $tid->item_discount,2)}}
* {{$tid->package_quantity ?? ""}} {{"x"}} {{$tid->package->package_name ?? ""}}{{$tid->package_quantity ?? ""}} {{"x"}} {{$tid->package->package_name ?? ""}} ${{number_format($tid->package_cost,2)}}${{number_format($tid->package_discount,2)}}{{$GST_Text}}${{number_format($itemGST,2)}}${{number_format($tid->package_cost * $tid->package_quantity - $tid->package_discount,2)}}
* {{$courseData->course->course_name ?? ""}}{{$courseData->course->course_name ?? ""}} ${{number_format($courseData->course_cost,2)}}${{number_format($courseData->discount,2)}}{{$GST_Text}}${{number_format($itemGST,2)}}${{number_format($courseData->course_cost - $courseData->discount,2)}}
* {{$tid->item_qty ?? ""}} {{"x"}} {{$appointment->appointment_type->appointment_type}}{{$tid->item_qty ?? ""}} {{"x"}} {{$appointment->appointment_type->appointment_type}}{{"$".$appointment->appointment_type->fee}}

{{-- {{dd($existinvoice)}} --}}

Invoice total

@isset($existinvoice)

${{number_format($existinvoice->total + $existinvoice->discount,2)}}

@endisset
@if($existinvoice->discount > 0)

Discount

@isset($existinvoice)

${{number_format($existinvoice->discount,2)}}

@endisset
@endif @if(isset($existinvoice)) @php $paymentMethod = ""; $amountPaid = 0; if(isset($existinvoice)) { $amountPaid = $existinvoice->amount_paid; $total = isset($existinvoice->total) ? $existinvoice->total : '0.00'; $amount_paid = isset($existinvoice->amount_paid) ? $existinvoice->amount_paid : '0.00'; $feee = $total - $amount_paid; $paymentMethod = $existinvoice->paymentType['name']; } else{ $amountPaid = '0.00'; } @endphp @if($amount_paid > 0) @foreach($payment_list as $payment)

{{$payment->name}} @if(isset($payment->created_at)){{$payment->created_at->format('d/m/y')}}@endif:

@if($payment->payment_type == 12)-@endif${{$payment->paid_amount}}

@endforeach @endif @endif

Amount to pay

@php if($existinvoice->invoice_pay_status =='pending') { $TOTAL = isset($existinvoice->total) ? $existinvoice->total : "0.00"; } else { $TOTAL = isset($existinvoice->account_balance) ? $existinvoice->account_balance : "0.00"; } @endphp

${{number_format($TOTAL ,2) }}

@php if(isset($existinvoice) && $existinvoice->discount !='0.00' && $item_discount == 0 ) { $discount_percentage = ($existinvoice->discount * 100) / ($existinvoice->total + $existinvoice->discount); $total_gst_amount = $totalgst / 11; $gst = $total_gst_amount - (($total_gst_amount * $discount_percentage ) / 100); } else { $gst = $totalgst / 11; } @endphp @if(number_format($gst,2) > 0)

* Total GST

${{ number_format($gst,2) }}

{{--@if($total_gst)

${{number_format( $total_gst, 2 ) ?? "0.00" }}

@endif--}}
@endif
@if($invoiceSettings->invoice_notes==1)
@endif
@if($merchantId)
{{----}} Pay Now
@endif

Secured payment

All transactions are secured & encrypted


Add a new card

Thank you

Your payment has been processed

@else
{!! $modalRender !!}
@endif