@php
$depositTypeList =
['' => 'Select'] +
DB::table('mfn_savings_deposit_type')
->where('softDel', 0)
->pluck('name', 'id')
->toArray();
@endphp
@php
$interestCalMethodList = DB::table('mfn_savings_interest_cal_method')
->where(['status' => 1, 'softDel' => 0])
->get();
@endphp
@php
$savingsCollectionFrequencyList =
['' => 'Select'] +
DB::table('mfn_savings_collection_frequency')
->where('softDel', 0)
->orderBy('createdDate', 'asc')
->pluck('name', 'id')
->toArray();
@endphp
@php
$monthlyCollectionTypeList =
['' => 'Select'] +
DB::table('mfn_saving_monthly_collection_type')
->pluck('name', 'id')
->toArray();
@endphp
@php
$monthlyCollectionTypeWeekList =
['' => 'Select'] + explode(',', DB::table('mfn_saving_monthly_collection_type')
->where('id', $product->monthlyCollectionTypeIdFk)
->value('value')
);
if ($product->savingCollectionFrequencyIdFk != 2) {
$monthlyCollectionWeekOrDay = null;
} else {
$monthlyCollectionWeekOrDay = $product->monthlyCollectionTypeIdValueIndex;
}
@endphp