@php $details_id = 0; $where = []; @endphp @for ($i = 1; $i <= $down_payment_installment_no; ++$i) @php $payment_name = "Down Payment $i"; $where = []; $where[] = ['schedule_id', '=', $schedule_id]; $where[] = ['payment_name', '=', $payment_name]; $plotSchedule = find('ScheduleDetails', $where, 'id', 'desc', 'first'); $details_id = isset($plotSchedule) ? $plotSchedule->id : 0; @endphp @php $time = strtotime($dpDate); $dpDate = date('Y-m-d', strtotime('+1 month', $time)); @endphp @endfor
{{ __('cruds.sl') }} {{ __('cruds.payment_head') }} {{ __('cruds.amount') }} {{ __('cruds.payment_date') }}
{{ $i }} {{ $payment_name }}