@include('front.inner-layout.head')
ABN: {{$invoiceSettings->abn_number ?? "" }}
@elseABN:
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->company_name == 1 ){{$invoiceSettings->business_name ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->company_name == 0 ) @else{{$invoiceSettings->business_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 ){{ $invoiceSettings->business_address }}
@if(!empty($invoiceSettings->business_address_2)){{ $invoiceSettings->business_address_2 }}
@endif{{ $invoiceSettings->business_suburb.' '.$invoiceSettings->business_state.' '.$invoiceSettings->business_postcode.' ' }}
{{ $invoiceSettings->business_country }}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->phone_number == 1 ){{$invoiceSettings->business_office_phone ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->phone_number == 0 ) @else{{$invoiceSettings->business_office_phone ?? ""}}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->email == 1 ){{$invoiceSettings->business_email ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->email == 0 ) @else{{$invoiceSettings->business_email ?? ""}}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->website == 1 ){{$invoiceSettings->business_website ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->website == 0 ) @else{{$invoiceSettings->business_website ?? ""}}
@endifBill to
{{$invoiceSettings->client_email_text ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->client_name == 0 ) @else{{$invoiceSettings->client_email_text ?? ""}}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->client_address == 1 ){{ ucwords( $invoiceSettings->client_address1 ) ?? ""}}
{{ ucwords( $invoiceSettings->client_address2 ) ?? ""}}
{{ ucwords( $invoiceSettings->client_country ) ?? ""}}
@elseif( isset( $invoiceSettings ) && $invoiceSettings->client_address == 0 ) @else{{ ucwords( $invoiceSettings->client_address1 ) ?? ""}}
{{ ucwords( $invoiceSettings->client_address2 ) ?? ""}}
@endif @if( isset( $invoiceSettings ) && $invoiceSettings->client_dob == 1 ) @elseif( isset( $invoiceSettings ) && $invoiceSettings->client_dob == 0 ) @else @endif @if($invoiceSettings->claim_bill_to == 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 | @if($header_discount > 0)Discount | @endifGST | Price | |
|---|---|---|---|---|---|---|---|---|---|
| {{ ucwords( $status ) ?? "" }} {{"Appointment"}} | - | ${{number_format( $charge, 2 ) ?? '0.00'}} | |||||||
| * {{$tid->services_name ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @if( $tid->item_qty == 1 ) @php $quantity = isset($tid->item_qty) ? $tid->item_qty : 1; @endphp @endif @else{{$tid->services_name ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @endif{{$tid->code}} | ${{number_format( preg_replace("/[^0-9.]/", "", $tid->app_cost ?? 0.00),2) ?? "0.00"}} | @if($tid->item_discount > 0)${{number_format( $tid->item_discount, 2 ) ?? "0.00"}} | @else @if($header_discount > 0)@endif @endif @if($tid->is_gst == "on") @php $gst_total1 += ($tid->app_cost * $quantity) - $tid->item_discount; $item_discount += $tid->item_discount; @endphp | 10% | @else @php $item_discount += $tid->item_discount; @endphpFREE | @endif${{number_format( preg_replace("/[^0-9.]/", "", ($tid->app_cost * $quantity) - $tid->item_discount ?? 0.00),2) ?? "0.00"}} | |
| * {{$prod->product_name}} {{"x"}} {{$prod->deduct_quantity}} | {{-- GST FOR MULTIPLE QTY --}} @php $total2 = $prod->deduct_quantity * $prod->product_cost - $prod->product_discount; @endphp @else{{$prod->product_name}} {{"x"}} {{$prod->deduct_quantity}} | @endif {{-- {{dd($prod->product_discount)}} --}}{{$prod->product_code}} | ${{number_format( $prod->product_cost, 2 )}} | @if($prod->product_discount > 0)${{number_format( $prod->product_discount, 2 )}} | @else @if($header_discount > 0)@endif @endif @if($prod->is_gst == "on") @php $gst_total2 += ($prod->deduct_quantity * $prod->product_cost) - $prod->product_discount; $item_discount += $prod->product_discount; @endphp | 10% | @else @php $item_discount += $prod->product_discount; @endphpFREE | @endif${{number_format( ($prod->deduct_quantity * $prod->product_cost) - $prod->product_discount, 2 ) ?? "0.00"}} | |
| * {{$tid->package->package_name ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @if( $tid->package_quantity == 1 ) @php $quantity = isset($tid->package_quantity) ? $tid->package_quantity : 1; @endphp @endif @else{{$tid->package->package_name ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @endif{{$tid->code}} | ${{number_format( preg_replace("/[^0-9.]/", "", $tid->package_cost ?? 0.00),2) ?? "0.00"}} | @if($tid->package_discount > 0)${{number_format( $tid->package_discount, 2 ) ?? "0.00"}} | @else @if($header_discount > 0)@endif @endif @if($tid->is_gst == "on") @php $gst_total1 += ($tid->package_cost * $quantity) - $tid->package_discount; $item_discount += $tid->package_discount; @endphp | 10% | @else @php $item_discount += $tid->package_discount; @endphpFREE | @endif${{number_format( preg_replace("/[^0-9.]/", "", ($tid->package_cost * $quantity) - $tid->package_discount ?? 0.00),2) ?? "0.00"}} | |
| * {{$courseData->course->course_name ?? ""}} | @else{{$courseData->course->course_name ?? ""}} | @endif${{number_format( preg_replace("/[^0-9.]/", "", $courseData->course_cost ?? 0.00),2) ?? "0.00"}} | @if($header_discount > 0)${{number_format( $courseData->discount, 2 ) ?? "0.00"}} | @else @if($header_discount > 0)@endif @endif @if($courseData->is_new_takings_gst == 1) @php $gst_total1 += $courseData->course_cost - $courseData->discount; $item_discount += $courseData->discount; @endphp | 10% | @else @php $item_discount += $courseData->discount; @endphpFREE | @endif {{--${{number_format( preg_replace("/[^0-9.]/", "", $courseData->course_cost ?? 0.00),2) ?? "0.00"}} | --}}${{number_format( preg_replace("/[^0-9.]/", "", ($courseData->course_cost) - $courseData->discount ?? 0.00),2) ?? "0.00"}} |
${{$invoice->shipping_cost}}
${{ $shiping_cost }}
@php $shiping_cost = isset( $shiping_cost ) && $shiping_cost != '' ? number_format($shiping_cost, 2) : '0.00' @endphp ${{number_format($totals ?? 0, 2)}}
@if( $invoice->is_coupon_applied == 1 )-@endif${{$invoice->discount}}
-${{number_format($hi->paid_amount ,2) ?? '0.00'}}
-${{ number_format($invoice->credit_note->gst_applied,2) }}
You are about to email this invoice to your client. Would you like to proceed?
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 ?? ""}}
@if(!empty($invoice->invoicelocation->address2)){{ $invoice->invoicelocation->address2 }}
@endif{{ $invoice->invoicelocation->suburb.' '.$invoice->invoicelocation->state.' '.$invoice->invoicelocation->postcode.' ' }}
{{ $invoice->invoicelocation->country }}
@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 | @if($header_discount > 0)Discount | @endifGST | Price |
|---|---|---|---|---|---|---|---|---|
| {{ ucwords( $status ) ?? "" }} {{"Appointment"}} | - | ${{number_format( $charge, 2 ) ?? '0.00'}} | ||||||
| * {{$tid->appointment_type->appointment_type ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @if( $tid->item_qty == 1 ) @php $quantity = isset($tid->item_qty) ? $tid->item_qty : 1; @endphp @endif @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"}} | @if($tid->item_discount > 0)${{number_format( $tid->item_discount, 2 ) ?? "0.00"}} | @else @if($header_discount > 0)@endif @endif @if($tid->appointment_type->is_gst == "on") @php $gst_total1 += ($tid->app_cost * $quantity) - $tid->item_discount; $item_discount += $tid->item_discount; @endphp | 10% | @else @php $item_discount += $tid->item_discount; @endphpFREE | @endif${{number_format( preg_replace("/[^0-9.]/", "", ($tid->app_cost * $quantity) - $tid->item_discount ?? 0.00),2) ?? "0.00"}} |
| * {{$prod->product_iteams->product_name}} {{"x"}} {{$prod->deduct_quantity}} | {{-- GST FOR MULTIPLE QTY --}} @php $total2 = $prod->deduct_quantity * $prod->product_cost - $prod->product_discount; @endphp @else{{$prod->product_iteams->product_name}} {{"x"}} {{$prod->deduct_quantity}} | @endif {{-- {{dd($prod->product_discount)}} --}}{{$prod->product_iteams->product_code}} | ${{number_format( $prod->product_cost, 2 )}} | @if($prod->product_discount > 0)${{number_format( $prod->product_discount, 2 )}} | @else @if($header_discount > 0)@endif @endif @if($prod->product_iteams->is_gst == "on") @php $gst_total2 += ($prod->deduct_quantity * $prod->product_cost) - $prod->product_discount; $item_discount += $prod->product_discount; @endphp | 10% | @else @php $item_discount += $prod->product_discount; @endphpFREE | @endif${{number_format( ($prod->deduct_quantity * $prod->product_cost) - $prod->product_discount, 2 ) ?? "0.00"}} |
| * {{$tid->package->package_name ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @if( $tid->package_quantity == 1 ) @php $quantity = isset($tid->package_quantity) ? $tid->package_quantity : 1; @endphp @endif @else{{$tid->package->package_name ?? ""}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif | @endif{{$tid->code}} | ${{number_format( preg_replace("/[^0-9.]/", "", $tid->package_cost ?? 0.00),2) ?? "0.00"}} | @if($tid->package_discount > 0)${{number_format( $tid->package_discount, 2 ) ?? "0.00"}} | @else @if($header_discount > 0)@endif @endif @if($tid->is_gst == "on") @php $gst_total1 += ($tid->package_cost * $quantity) - $tid->package_discount; $item_discount += $tid->package_discount; @endphp | 10% | @else @php $item_discount += $tid->package_discount; @endphpFREE | @endif${{number_format( preg_replace("/[^0-9.]/", "", ($tid->package_cost * $quantity) - $tid->package_discount ?? 0.00),2) ?? "0.00"}} |
| * {{$courseData->course->course_name ?? ""}} | @else{{$courseData->course->course_name ?? ""}} | @endif${{number_format( preg_replace("/[^0-9.]/", "", $courseData->course_cost ?? 0.00),2) ?? "0.00"}} | @if($header_discount > 0)${{number_format( $courseData->discount, 2 ) ?? "0.00"}} | @else @if($header_discount > 0)@endif @endif @if($courseData->is_new_takings_gst == 1) @php $gst_total1 += $courseData->course_cost - $courseData->discount; $item_discount += $courseData->discount; @endphp | 10% | @else @php $item_discount += $courseData->discount; @endphpFREE | @endif${{number_format( preg_replace("/[^0-9.]/", "", ($courseData->course_cost) - $courseData->discount ?? 0.00),2) ?? "0.00"}} |
${{$invoice->shipping_cost}}
${{ $shiping_cost }}
@php $shiping_cost = isset( $shiping_cost ) && $shiping_cost != '' ? number_format($shiping_cost, 2) : '0.00' @endphp ${{number_format($totals ?? 0, 2)}}
@if( $invoice->is_coupon_applied == 1 )-@endif${{$invoice->discount}}
-${{number_format($hi->paid_amount ,2) ?? '0.00'}}
-${{ number_format($invoice->credit_note->gst_applied,2) }}
${{number_format( $invoice->account_balance, 2 ) ?? '0.00'}}
You are about to email this invoice to your client. Would you like to proceed?