{{ ___('fees.fees_collect') }}
@csrf
@error('date')
{{ $message }}
@enderror
@foreach (\Config::get('site.payment_methods') as $key=>$item)
@endforeach
@if($data['is_siblings_discount'])
{{-- Siblings discount (first sibling - 10%)--}}
@endif {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} @if(($data['early_payment_discount_percentage'] ?? 0) > 0)
{{-- Early payment discount (super early-10%) --}} {{$data['early_payment_discount_percentage']}}% {{___('fees.discount for '). $data['discount_name'].(' discount applied')}}
@endif
@if(($data['early_payment_discount_percentage'] ?? 0) > 0) @endif @php $total = 0; @endphp @foreach (@$data['fees_assign_children'] as $item) @if($item->fees_collect_count == 0) @php $earlyPaymentDiscount = calculateDiscount(@$item->feesMaster->amount, $data['early_payment_discount_percentage']?? 0); $siblingsDiscount = calculateDiscount(@$item->feesMaster->amount, $data['siblings_discount_percentage']); $fineAmount = 0; $totalAddition = 0; $totalDeduction = 0; $taxAmount = calculateTax($item->feesMaster->amount); if(date('Y-m-d') > $item->feesMaster->date) { $fineAmount = @$item->feesMaster->fine_amount; } $totalAddition += $fineAmount + $taxAmount; $totalDeduction += $earlyPaymentDiscount + $siblingsDiscount; $total += (@$item->feesMaster->amount + $totalAddition) - $totalDeduction; @endphp @if(date('Y-m-d') > $item->feesMaster->date) @else @endif @if(($data['early_payment_discount_percentage'] ?? 0) > 0) @endif @endif @endforeach
{{ ___('fees.group') }} {{ ___('fees.type') }} {{ ___('fees.due_date') }} {{ ___('fees.amount') }} ({{ Setting('currency_symbol') }}) {{ ___('fees.Discount') }} ({{ Setting('currency_symbol') }}){{ ucfirst($data['discount_name']) }} ({{ Setting('currency_symbol') }}){{ ___('tax.Tax') }} ({{ Setting('currency_symbol') }})
{{ @$item->feesMaster->group->name }} {{ @$item->feesMaster->type->name }} {{ dateFormat(@$item->feesMaster->date) }} {{ @$item->feesMaster->amount }} @if(date('Y-m-d') > $item->feesMaster->date) + {{ @$item->feesMaster->fine_amount }} @endif {{$data['discount_amount']}}{{ $earlyPaymentDiscount }}{{ calculateTax(@$item->feesMaster->amount) }}
{{ ___('common.total payable') }} {{ @$total }}
@if($total != 0) @endif