|
|
|
|
| Description | Code | Cost | @if($header_discount > 0)Discount | @endifGST | Price | ||
|---|---|---|---|---|---|---|---|
| * {{$tid->appointment_type->appointment_type}} | @php $totalgst += preg_replace("/[^0-9.]/", "",($tid->app_cost * $tid->item_qty) - $tid->item_discount); $GST_Text = "10%" @endphp {{-- GST FOR MULTIPLE QTY --}} @if($tid->item_qty==1) @php $appPrice= preg_replace("/[^0-9.]/", "", $tid->app_cost); $item_discount += $tid->item_discount; @endphp @else @php $appPrice= preg_replace("/[^0-9.]/", "", $tid->app_cost) / preg_replace("/[^0-9.]/", "", $tid->item_qty ?? '1'); @endphp @endif @else{{$tid->appointment_type->appointment_type}} | @php $GST_Text = "FREE"; $item_discount += $tid->item_discount; @endphp @endif{{$tid->appointment_type->code}} | ${{number_format($tid->app_cost,2)}} | @if($tid->item_discount > 0)${{number_format($tid->item_discount,2)}} | @else @if($header_discount > 0)@endif @endif | {{$GST_Text}} | ${{number_format(($tid->app_cost * $tid->item_qty - $tid->item_discount),2)}} |
| * {{$prod->deduct_quantity}} {{"x"}} {{$prod->product_iteams->product_name}} | @php $totalgst1 += preg_replace("/[^0-9.]/", "", ($prod->product_cost * $prod->deduct_quantity) - $prod->product_discount); $GST_Text = "10%"; $item_discount += $prod->product_discount; @endphp @else{{$prod->deduct_quantity}} {{"x"}} {{$prod->product_iteams->product_name}} | @php $item_discount += $prod->product_discount; $GST_Text = "FREE"; @endphp @endif{{$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 | {{$GST_Text}} | ${{number_format(($prod->product_cost * $prod->deduct_quantity - $prod->product_discount),2)}} |
| * {{$courseData->course->course_name ?? ''}} | @php $totalgst1 += preg_replace("/[^0-9.]/", "", $courseData->course_cost - $courseData->discount); $GST_Text = "10%"; $item_discount += $courseData->discount; @endphp @else{{$courseData->course->course_name ?? ''}} | @php $item_discount += $courseData->discount; $GST_Text = "FREE"; @endphp @endif${{number_format($courseData->course_cost,2)}} | @if($courseData->discount > 0)${{number_format($courseData->discount,2)}} | @else @if($header_discount > 0)@endif @endif | {{$GST_Text}} | ${{number_format(($courseData->course_cost - $courseData->discount),2)}} |
Total : |
${{number_format($maintotal ?? 0, 2) }} |
Discount : |
${{number_format( $invoice->discount, 2 ) ?? "0.00"}} |
{{$hi->paymentType->name ?? ''}} {{$hi->created_at->format('d/m/y')}} |
@if($hi->payment_type ==12) -@endif${{number_format($hi->paid_amount ,2) ?? '0.00'}} |
Balance : |
${{number_format( $invoice->account_balance, 2 ) ?? "0.00"}} |
* Total GST : |
${{number_format( $gst, 2 ) }} {{-- @if( isset( $use_new_gst ) && $use_new_gst == 1 )${{number_format( $total_gst, 2 ) }} @else${{number_format(($totalgstItem + $totalgst1Item) ,2) }} @endif --}} |
{!! nl2br(e($invoice->notes)) !!} |