| Description |
{{--
@if( isset($isDisplay) && ( count($pii) > 0 ) )
@if($isDisplay == 1)
Code |
@else
|
@endif
@else
Code |
@endif
--}}
Code |
Cost |
@if($header_discount > 0)
Discount |
@endif
GST |
Price |
{{-- @if( isset( $status ) && $status )
| {{ ucwords( $status ) ?? "" }} Appointment |
- |
${{number_format( $charge, 2 ) ?? '0.00'}} |
@endif --}}
@php
$total=0;
$totals=0;
$maintotal=0;
$totalgst = 0;
$totalgst1 = 0;
$totalgstItem = 0;
$totalgst1Item = 0;
$appPrice=0;
$productPrice=0;
$gst_total1 = 0;
$gst_total2 = 0;
$gst_total3 = 0;
$item_discount = 0;
$gst = 0;
@endphp
@if( $pii )
@foreach( $pii as $tid )
@if( $tid->appointment_type )
@php
$quantity = isset($tid->item_qty) ? $tid->item_qty : 1;
$tid->app_cost = $tid->app_cost;
$total += preg_replace("/[^0-9.]/", "", $tid->app_cost * $tid->item_qty ?? 0.00);
$totals += preg_replace("/[^0-9.]/", "", $tid->app_cost * $tid->item_qty ?? 0.00);
@endphp
@if( $tid->is_gst == 'on' )
|
* {{$tid->services_name}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif |
@php
$totalgst += preg_replace("/[^0-9.]/", "", $tid->app_cost - $tid->item_discount ?? 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 += number_format((($appPrice - $tid->item_discount)/11),2);
@endphp
@endfor
@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)}} |
@if($tid->item_discount > 0)
${{number_format(preg_replace("/[^0-9.]/", "", $tid->item_discount ?? 0.00),2)}} |
@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;
@endphp
FREE |
@endif
${{number_format(preg_replace("/[^0-9.]/", "", ($tid->app_cost * $quantity) - $tid->item_discount ?? 0.00),2)}} |
@endif
@endforeach
@endif
@isset( $pip1 )
@foreach( $pip1 as $prod )
@if( $prod->product_iteams )
@php
$total += preg_replace("/[^0-9.]/", "", $prod->product_cost * $prod->deduct_quantity);
$totals += preg_replace("/[^0-9.]/", "", $prod->product_cost * $prod->deduct_quantity);
@endphp
@if( $prod->is_gst == 'on' )
*
@if (strlen($prod->product_name) <=72)
{{$prod->product_name}} {{"x"}} {{$prod->deduct_quantity}}
@else
{{ substr($prod->product_name, 0, 72) }}
{{ substr($prod->product_name, 72, strlen($prod->product_name)) }} {{"x"}} {{$prod->deduct_quantity}}
@endif
|
@php
$totalgst1 += preg_replace("/[^0-9.]/", "",$prod->product_cost - $prod->product_discount);
@endphp
{{-- GST FOR MULTIPLE QTY --}}
@for( $i=1; $i<=$prod->deduct_quantity; $i++ )
@php
$totalgst1Item += ( preg_replace("/[^0-9.]/", "",($prod->product_cost - $prod->product_discount))/11);
@endphp
@endfor
@else
{{-- {{$prod->product_name}} {{"x"}} {{$prod->deduct_quantity}} --}}
@if (strlen($prod->product_name) <=72)
{{$prod->product_name}} {{"x"}} {{$prod->deduct_quantity}}
@else
{{ substr($prod->product_name, 0, 72) }}
{{ substr($prod->product_name, 72, strlen($prod->product_name)) }} {{"x"}} {{$prod->deduct_quantity}}
@endif
|
@endif
{{$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;
@endphp
FREE |
@endif
${{number_format(($prod->deduct_quantity * $prod->product_cost) - $prod->product_discount,2)}} |
@endif
@endforeach
@endisset
@if($packagesData)
@foreach( $packagesData as $tid )
@if( $tid->package_id )
@php
$quantity = isset($tid->package_quantity) ? $tid->package_quantity : 1;
$tid->package_cost = $tid->package_cost;
$total += preg_replace("/[^0-9.]/", "", $tid->package_cost * $tid->package_quantity ?? 0.00);
$totals += preg_replace("/[^0-9.]/", "", $tid->package_cost * $tid->package_quantity ?? 0.00);
@endphp
@if( $tid->is_gst == 'on' )
|
* {{$tid->package->package_name}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif |
@php
$totalgst += preg_replace("/[^0-9.]/", "", $tid->package_cost - $tid->package_discount ?? 0.00);
@endphp
{{-- GST FOR MULTIPLE QTY --}}
@if( $tid->package_quantity == 1 )
@php
$appPrice= preg_replace("/[^0-9.]/", "", $tid->package_cost ?? 0.00);
@endphp
@else
@php
$appPrice= preg_replace("/[^0-9.]/", "", $tid->package_cost ?? 0.00)/ preg_replace("/[^0-9.]/", "", $tid->package_quantity ?? 1);
@endphp
@endif
@for( $i=1; $i<=$tid->package_quantity; $i++ )
@php
$totalgstItem += number_format((($appPrice - $tid->package_discount)/11),2);
@endphp
@endfor
@else
{{$tid->package->package_name}} @if($quantity > 1) {{"x"}} {{ $quantity }}@endif |
@endif
|
${{number_format(preg_replace("/[^0-9.]/", "", $tid->package_cost ?? 0.00),2)}} |
@if($tid->package_discount > 0)
${{number_format(preg_replace("/[^0-9.]/", "", $tid->package_discount ?? 0.00),2)}} |
@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;
@endphp
FREE |
@endif
${{number_format(preg_replace("/[^0-9.]/", "", ($tid->package_cost * $quantity) - $tid->package_discount ?? 0.00),2)}} |
@endif
@endforeach
@endif
@if($courseData)
@if( $courseData->course_id )
@php
$quantity = 1;
$courseData->course_cost = $courseData->course_cost;
$total += preg_replace("/[^0-9.]/", "", $courseData->course_cost ?? 0.00);
$totals += preg_replace("/[^0-9.]/", "", $courseData->course_cost ?? 0.00);
@endphp
@if($courseData->is_new_takings_gst == 1)
|
* {{$courseData->course->course_name ?? ""}} |
@php
$totalgst += preg_replace("/[^0-9.]/", "", $courseData->course_cost - $courseData->discount ?? 0.00);
$totalgstItem += number_format((($courseData->course_cost)/11),2);
@endphp
@else
{{$courseData->course->course_name ?? ""}} |
@endif
|
${{number_format(preg_replace("/[^0-9.]/", "", $courseData->course_cost ?? 0.00),2)}} |
@if($courseData->discount > 0)
${{number_format(preg_replace("/[^0-9.]/", "", $courseData->discount ?? 0.00),2)}} |
@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;
@endphp
FREE |
@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)}} |
@endif
@endif
@if($paymentPlanData)
@if( $paymentPlanData->payment_plan_id )
@php
$quantity = 1;
$paymentPlanData->amount_paid = $paymentPlanData->amount_paid;
$total += preg_replace("/[^0-9.]/", "", $paymentPlanData->amount_paid ?? 0.00);
$totals += preg_replace("/[^0-9.]/", "", $paymentPlanData->amount_paid ?? 0.00);
@endphp
@if($paymentPlanData->is_new_takings_gst == 1)
|
* {{$paymentPlanData->plan_name ?? ""}} |
@php
$totalgst += preg_replace("/[^0-9.]/", "", $paymentPlanData->amount_paid - $paymentPlanData->discount ?? 0.00);
$totalgstItem += number_format((($paymentPlanData->amount_paid)/11),2);
@endphp
@else
{{$paymentPlanData->plan_name ?? ""}} |
@endif
|
${{number_format(preg_replace("/[^0-9.]/", "", $paymentPlanData->amount_paid ?? 0.00),2)}} |
@if($paymentPlanData->discount > 0)
${{number_format(preg_replace("/[^0-9.]/", "", $paymentPlanData->discount ?? 0.00),2)}} |
@else
@if($header_discount > 0)
|
@endif
@endif
@if($paymentPlanData->is_new_takings_gst == 1)
@php
$gst_total1 += $paymentPlanData->amount_paid - $paymentPlanData->discount;
$item_discount += $paymentPlanData->discount;
@endphp
10% |
@else
@php
$item_discount += $paymentPlanData->discount;
@endphp
FREE |
@endif
{{-- ${{number_format(preg_replace("/[^0-9.]/", "", $courseData->course_cost ?? 0.00),2) ?? "0.00"}} | --}}
${{number_format(preg_replace("/[^0-9.]/", "", ($paymentPlanData->amount_paid) - $paymentPlanData->discount ?? 0.00),2)}} |
@endif
@endif
{{-- @if(isset($invoice) && $invoice->course_id !=0)
| Course purchased |
|
${{number_format($invoice->total,2)}} |
@if($invoice->is_new_takings_gst == 1)
@php
$gst_total2 += $invoice->total;
@endphp
10% |
@else
FREE |
@endif
@php $total = $invoice->total;
$totals = $total;
@endphp
${{number_format($invoice->total,2)}} |
@endif --}}
|