| Description |
{{--@if( isset($isDisplay) && ( count($pii) > 0 ) )
@if($isDisplay == 1)
Code |
@else
|
@endif
@else
Code |
@endif --}}
Code |
Price |
@if( isset( $status ) && $status )
| {{ ucwords( $status ) ?? "" }} Appointment |
- |
${{number_format( $charge, 2 ) ?? '0.00'}} |
@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' )
| * {{$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
$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
{{$tid->appointment_type->appointment_type}} |
@endif
{{$tid->appointment_type->code}} |
${{number_format(preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00),2)}} |
@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' )
| * {{$prod->deduct_quantity}} {{"x"}} {{$prod->product_iteams->product_name}} |
@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
{{$prod->deduct_quantity}} {{"x"}} {{$prod->product_iteams->product_name}} |
@endif
{{$prod->product_iteams->product_code}} |
${{number_format($prod->deduct_quantity * $prod->product_cost,2)}} |
@endif
@endforeach
@endisset
|
|
Total :
|
${{number_format($maintotal + $total ?? 0, 2) }}
|
@if( isset( $shiping_cost ) && isset( $shipping_method ) && $shipping_method != '' )
|
{{ $shipping_method ?? '' }} :
|
${{number_format( $shiping_cost, 2 ) ?? '0.00' }}
|
@endif
{{-- @if($invoice->extra_amount_paid > 0)
|
Credit applied {{$invoice->created_at->timezone(getAustraliaTimeZone())->format('d/m/y')}}
|
- ${{ $invoice->extra_amount_paid}}
|
@endif --}}
{{--
@if( isset( $owned_invoice_id ) )
@if( $invoice->extra_amount_paid < 0 && $owned_invoice_id != '' )
|
Balance Inv #{{ $owned_invoice_id }}
|
${{ number_format( abs( $invoice->extra_amount_paid ), 2 ) }}
|
@endif
@endif
--}}
@if( isset( $ownedInvArr ) )
@if( count( $ownedInvArr ) > 0 )
@foreach( $ownedInvArr as $key => $value )
|
Balance Inv #{{ $value['owned_invoice_id'] }}
|
${{ number_format( $value['balance'], 2 ) }}
|
@endforeach
@endif
@endif
@if( $historyinvoice )
@foreach( $historyinvoice as $hi )
|
{{$hi->paymentType->name ?? ''}} {{$hi->created_at->format('d/m/y')}}
|
@if($hi->payment_type ==12) -@endif ${{number_format($hi->paid_amount ,2) ?? '0.00'}}
|
@endforeach
@endif
|
Balance :
|
${{ number_format( $invoice->account_balance, 2 ) ?? "0.00"}}
|
@if( isset( $oldinvoicedata ) )
@if( $oldinvoicedata->amount_status == 'owing' )
|
{{$invoice->paymentType->name ?? ''}} {{$invoice->created_at->timezone(getAustraliaTimeZone())->format('d/m/y')}} :
|
${{ abs($oldinvoicedata->amount)}}
|
@endif
@endif
* Total GST : |
@if( isset( $use_new_gst ) && $use_new_gst == 1 )
${{number_format( $total_gst, 2 ) }}
@else
${{number_format(($totalgstItem + $totalgst1Item) ,2) }}
@endif
|
|