@extends('layouts.vertical') @section('css') @endsection @php $is_child = ""; $is_child_exist = false; if(app('request')->input('c')){ $is_child = app('request')->input('c'); } if(app('request')->input('child')){ $is_child = app('request')->input('child'); } $currency = config('constant.currency'); $scurrency = "€"; if(isset($init->schoolBillingSetup->payee->currency) && $init->schoolBillingSetup->payee->currency != "" && isset($currency[$init->schoolBillingSetup->payee->currency])) { $scurrency = $currency[$init->schoolBillingSetup->payee->currency]['symbol']; } $addOnsType = config('constant.addOnsType'); @endphp @section('breadcrumb')

Manage recurring billing

Stop recurring billing
@endsection @section('content')
@csrf

{{ $init->childBillingInfo->child->name }}

What type of billing would you like to setup?
childBillingInfo->type == "b7" ? "checked" : ""}} data-error="radio-error" value="1" data-old="{{$init->childBillingInfo->type == "b7" ? 1 : 0}}" data-name="subscription package">
childBillingInfo->type == "b8" && $init->childBillingInfo->useSession == false ? "checked" : ""}} data-error="radio-error" value="2" data-old="{{$init->childBillingInfo->type == "b8" && $init->childBillingInfo->useSession == false ? 1 : 0}}" data-name="attendance hours">
childBillingInfo->type == "b9" ? "checked" : ""}} data-error="radio-error" value="3" data-old="{{$init->childBillingInfo->type == "b9" ? 1 : 0}}" data-name="daily">
childBillingInfo->type == "b8" && $init->childBillingInfo->useSession == true ? "checked" : ""}} data-error="radio-error" value="4" data-old="{{$init->childBillingInfo->type == "b8" && $init->childBillingInfo->useSession == true ? 1 : 0}}" data-name="session">
childBillingInfo->useSession == true ? 'flex' : 'none'}}">
childBillingInfo->useSession == true ? 'flex' : 'none'}}">
How session rates work?
childBillingInfo->useSession == true ? 'flex' : 'none'}}">
We will apply the session rates you defined in billing setup to children’s billing, if they match their attendance schedule. If a child has schedules applied that do not have a session rate, your hourly rate will be used for any schedules that do not have a session rate applied.
{{--
Example: If there’s a session rate like €10 for Toddler room 9am to 11am,
And a child also has this scheduled defined in their attendance,
Then we’ll consider €10 instead of the hourly rate!
--}}
Select a subscription package
@if(isset($init->schoolBillingSetup->subscriptions) && !empty($init->schoolBillingSetup->subscriptions)) @foreach($init->schoolBillingSetup->subscriptions as $subscription)
{{$subscription->name}}

{{$subscription->days}} {{$subscription->days > 1 ? 'days' : 'day' }} per week

{{$scurrency}}{{$subscription->amount}}/month
$subscription->_id, "name" => $subscription->name, "amount" => $scurrency . $subscription->amount, "days" => $subscription->days, "description" => $subscription->description ])}}" class="packege-info"> childBillingInfo->package == $subscription->_id ? "checked" : ""}} data-old="{{$init->childBillingInfo->package == $subscription->_id ? 1 : 0}}"> Select
childBillingInfo->package == $subscription->_id && in_array(1, $init->childBillingInfo->days) ? "checked" : ""}}>
childBillingInfo->package == $subscription->_id && in_array(2, $init->childBillingInfo->days) ? "checked" : ""}}>
childBillingInfo->package == $subscription->_id && in_array(3, $init->childBillingInfo->days) ? "checked" : ""}}>
childBillingInfo->package == $subscription->_id && in_array(4, $init->childBillingInfo->days) ? "checked" : ""}}>
childBillingInfo->package == $subscription->_id && in_array(5, $init->childBillingInfo->days) ? "checked" : ""}}>
childBillingInfo->package == $subscription->_id && in_array(6, $init->childBillingInfo->days) ? "checked" : ""}}>
childBillingInfo->package == $subscription->_id && in_array(0, $init->childBillingInfo->days) ? "checked" : ""}}>
@endforeach @endif
@if(isset($init->schoolBillingSetup->addOns) && !empty($init->schoolBillingSetup->addOns))
Select Add-ons, Discounts & Subsidy
@foreach($init->schoolBillingSetup->addOns as $addOn)
{{$addOn->name}}

{{isset($addOnsType[$addOn->amountType]) ? $addOnsType[$addOn->amountType] . ':' : ''}} {{$addOn->amountType == 2 ? $addOn->amount.'% total of the invoice' : $scurrency.$addOn->amount.'/month' }}

@if($addOn->amountType != 2)

Weekly = {{$scurrency}}{{$addOn->amount/4}} | biweekly = {{$scurrency}}{{$addOn->amount/2}}

@endif
_id, array_column($init->childBillingInfo->addOns, 'addOn')) ? "checked" : ""}} data-old="{{in_array($addOn->_id, array_column($init->childBillingInfo->addOns, 'addOn')) ? 1 : 0}}" data-target="#edit-addons">
@endforeach

Note: If you remove an add-on, discount & subsidy, it will be removed from the next invoice.
For example, if you add a new add-on to an existing invoice, the recipient will have to pay the entire amount of the new add-on.

@endif
Billing period

The first invoice will be sent on the {invoice date} on a {weekly} basis.

If you change the billing cycle, the new cycle will come into effect after the current cycle ends.
Example: If it’s an invoice is set to a weekly billing cycle and you change to monthly, the system will start the monthly cycle after the weekly cycle ends.

Funded hours
You can add funded hours to be automatically deducted from children’s scheduled attended hours on a weekly, bi-weekly or monthly basis. This billing cycle is dependent on the billing cycle chosen. TeachKloud will automatically deduct any funded hours from the scheduled attended hours to calculate the final amount payable by the parent. The final payable amount is determined by your hourly rate which can be edited in the billing set-up.
@if(isset($pendingBill) && !empty($pendingBill) && isset($pendingBill->charge) && $pendingBill->charge > 0 && \Carbon\Carbon::parse($pendingBill->billStartDate)->format('d/m/Y') != \Carbon\Carbon::today()->format('d/m/Y')) @endif

All changes will be reflected in future invoices, starting with the next invoice

@include('school.billing.stop-recurring-invoice-modal') @endsection @section('script-bottom') @endsection