@php use App\Enums\SchemePayout as SPayout; use App\Enums\InterestPeriod as IPeriod; use App\Enums\SchemeTermTypes as STType; use App\Enums\InterestRateType as IRType; use App\Enums\SchemeStatus as SStatus; $uid = (!blank($scheme)) ? the_hash($scheme->id) : request()->get('uid'); if ($type=='new' && has_route('admin.investment.scheme.save')) { $form_action = route('admin.investment.scheme.save'); } else { $form_action = route('admin.investment.scheme.update', ['id' => $uid]); } @endphp