{{--

Saving Interest Calculation

--}}
@foreach ($savingsProducts as $key => $item) @endforeach @foreach ($savingsProducts as $key => $item) @endforeach @php $sl = 1; @endphp @foreach ($weekDaysArr as $key => $value) @foreach ($samityList->where('samityDayId', $key) as $samity) {{-- 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
SL# Samity Name Auto Interest Manual Interest
{{ $item->name }}{{ $item->name }}
{{ $value }}
{{ $sl++ }} {{ $samity->samityName }}