0

I want to redirect a page which consists of 'add new' form to another page with tabs. I want to specific tab to be activated when it returning to the page. However, I have problems in viewing the page because there is {id} value in the page url. This is the route of the redirect page to be viewed after submitting the form:

Route::get('/view_profil/{id}', 'ModulProfilController@show')->name('viewProfil');

 {!! Form::open(['method' => 'POST', 'action' => ['ModulKeluargaController@store', $id]]) !!}

       @if(Auth::check())

        @if(count($dataItemregistration) > 0)
            @foreach($dataItemregistration as $valueItemregistration) 

             <div class="form-group">
                <div class="row">
                    <div class="col-lg-3"> 
                      {{ Form::label('id', 'ID') }}
                    </div>
                    <div class="col-lg-7"> 
                      {{ Form::text('itemregistrationid', $id, ['class' => 'form-control', 'placeholder' => '', 'readonly' => 'true']) }}
                    </div>
                </div>
              </div>

              <div class="form-group">
                <div class="row">
                    <div class="col-lg-7"> 
                      {{ Form::hidden('sectionid', $valueItemregistration->SectionID, ['class' => 'form-control', 'placeholder' => '']) }}
                    </div>
                </div>
              </div>
<div class="form-group">
            <div class="row">
              <div class="col-lg-3"> 
                {{ Form::label('nama_bank', 'Nama Bank/No Akaun Keluarga') }}
              </div>
              <div class="col-lg-7"> 
                {{ Form::text('no_akaun', '', ['class' => 'form-control', 'placeholder' => '']) }}
              </div>
            </div>
        </div>

       @endif

       @if(Auth::guest())
           <a href="/login" class="btn btn-info"> Anda perlu log masuk.</a>
       @endif
        <div class="col-lg-10 text-center">           
            {{ Form::submit('Add New', ['class' => 'btn btn-primary']) }}

            {!! Form::close() !!}
|