{{--
Saving Interest Calculation
--}}
| SL# |
Samity Name |
Auto Interest |
Manual Interest |
@foreach ($savingsProducts as $key => $item)
| {{ $item->name }} |
@endforeach
@foreach ($savingsProducts as $key => $item)
{{ $item->name }} |
@endforeach
@php
$sl = 1;
@endphp
@foreach ($weekDaysArr as $key => $value)
| {{ $value }} |
@foreach ($samityList->where('samityDayId', $key) as $samity)
| {{ $sl++ }} |
{{ $samity->samityName }} |
{{-- loop for auto interest --}}
@foreach ($savingsProducts as $key => $item)
@php
// check samity interest saved or not
$isSaved = $savedInterestSamity->where('samityIdFk', $samity->id)->where('productIdFk', $item->id)->first();
@endphp
{{-- apply condition for action --}}
@if ($isSaved)
@if ($isSaved->interestSaveType == 0)
|
@elseif ($isSaved->interestSaveType == 1)
|
@endif
@else
|
@endif
@endforeach
{{-- loop for manual interest --}}
@foreach ($savingsProducts as $key => $item)
@php
// check samity interest saved or not
$isSaved = $savedInterestSamity->where('samityIdFk', $samity->id)->where('productIdFk', $item->id)->first();
@endphp
{{-- apply condition for action --}}
@if ($isSaved)
@if ($isSaved->interestSaveType == 1)
|
@elseif ($isSaved->interestSaveType == 0)
|
@endif
@else
|
@endif
@endforeach
@endforeach
@endforeach