@include('front.inner-layout.head')
ABN: {{$owner->bankDetail->abn ?? "" }}
@elseABN:
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->company_name == 1 ){{$businessProfile->name ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->company_name == 0 ) @else{{$businessProfile->name ?? "" }}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->is_replace_business_address == 1){{ $invoiceSettings->address1 }}
@if(!empty($invoiceSettings->address2)){{ $invoiceSettings->address2 }}
@endif{{ $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{{$businessProfile->address ?? ""}}
@endif @endif @if( isset( $invoiceSettings ) && $invoiceSettings->phone_number == 1 ){{$businessProfile->office_phone ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->phone_number == 0 ) @else{{$businessProfile->office_phone ?? ""}}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->email == 1 ){{$businessProfile->email ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->email == 0 ) @else{{$businessProfile->email ?? ""}}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->website == 1 ){{$businessProfile->website ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->website == 0 ) @else{{$businessProfile->website ?? ""}}
@endifBill to
{{$invoice->newclient->email ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->client_name == 0 ) @else{{$invoice->newclient->email ?? ""}}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->client_address == 1 ){{ ucwords( $invoice->newclient->address ) ?? ""}}
{{ ucwords( $invoice->newclient->address2 ) ?? ""}}
{{ ucwords( $invoice->newclient->suburb_state_postcode ) ?? ""}}
{{ ucwords( $invoice->newclient->country ) ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->client_address == 0 ) @else{{ ucwords( $invoice->newclient->address ) ?? ""}}
{{ ucwords( $invoice->newclient->address2 ) ?? ""}}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->client_dob == 1 ) @elseif( isset( $invoiceSettings ) && $invoiceSettings->client_dob == 0 ) @else @endif @if(isset($claim_details) && $claim_details->display_claim_details == 1 && $invoice->bill_to =='company')Bill to:
{{$invoice->invoice_number ?? ''}}
{{ isset($invoice->date) ? $invoice->date->format('d/m/y') : ''}}
| Description | {{-- @isset($isDisplay) @if($isDisplay == 1)Code | @else@endif @else | Code | @endisset --}}Code | Cost | Discount | Price |
|---|---|---|---|---|---|---|---|
| {{ ucwords( $status ) ?? "" }} {{"Appointment"}} | - | - | - | ${{number_format( $charge, 2 ) ?? '0.00'}} | |||
| * {{$tid->appointment_type->appointment_type ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @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 ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @endif{{$tid->appointment_type->code}} | ${{number_format( preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00),2) ?? "0.00"}} | ${{$tid->item_discount}} | ${{number_format( preg_replace("/[^0-9.]/", "", $tid->app_cost - $tid->item_discount ?? 0.00),2) ?? "0.00"}} | ||
| * {{$prod->product_iteams->product_name}} {{"x"}} {{$prod->deduct_quantity}} | @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->product_iteams->product_name}} {{"x"}} {{$prod->deduct_quantity}} | @endif{{$prod->product_iteams->product_code}} | ${{number_format( $prod->deduct_quantity * $prod->product_cost, 2 ) ?? "0.00"}} | ${{$prod->product_discount}} | ${{number_format( $prod->deduct_quantity * $prod->product_cost - $prod->product_discount, 2 ) ?? "0.00"}} |
${{$invoice->shipping_cost}}
@if($charge)${{$charge ?? '0.0'}}@else @php $shiping_cost = isset( $shiping_cost ) && $shiping_cost != '' ? number_format($shiping_cost, 2) : '0.00' @endphp ${{number_format($total+ $shiping_cost ?? 0, 2)}} @endif
${{ $shiping_cost }}
- ${{ $invoice->extra_amount_paid}}
${{ number_format( abs( $invoice->extra_amount_paid ), 2 ) }}
${{ number_format( $value['balance'], 2 ) }}
${{$invoice->discount}}
${{number_format($hi->paid_amount ,2) ?? '0.00'}}
${{ abs($oldinvoicedata->amount)}}
${{number_format( $invoice->account_balance, 2 ) ?? '0.00'}}
${{$totalGST}}
{{--@if( isset( $invoice->is_new_takings_gst ) && $invoice->is_new_takings_gst == 1 )${{ $total_gst_takings }}
@else @if( isset( $use_new_gst ) && $use_new_gst == 1 )${{ number_format( $total_gst ,2 ) }}
@else${{number_format(($totalgstItem + $totalgst1Item) ,2) }}
@endif @endif--}}You are about to email this invoice to your client. Would you like to proceed?