
{{ html()->Form('POST', url('parametres'))->open() }}

@foreach ($t_modules as $module=>$libelle_module)
    <div class="card card collapsed-card">
        <div class="card-header">
            <h3 class="card-title"><span style='color:darkblue'>{!! $libelle_module !!}</span></h3>
            <div class="card-tools">
              <button type="button" class="btn btn-tool"data-card-widget="collapse">
                <i class="fas fa-plus"></i>
              </button>
            </div>
        </div>
        <div class='card-body'>
            <div class="col-lg-6"> 
                @foreach ($t_parametres[$module] as $id=>$module)
                    <div class="row form-group"> 
                        @switch($module["type"])
                            @case("N")
                                <div class="col-mg-4">
                                    {!! html()->label($module["info"],$module["ref"])->attributes(['style'=>'']) !!}
                                    {!! html()->text($module["ref"], $module["value"])->attributes(['size' => '10','placeholder' => '', 'class' => 'form-control']) !!}
                                </div>
                                @break

                            @case("T")
                                <div class="col-mg-4">
                                    {!! html()->label($module["info"],$module["ref"])->attributes(['style'=>'']) !!}
                                    {!! html()->text($module["ref"], $module["value"])->attributes(['placeholder' => '', 'class' => 'form-control']) !!}
                                </div>
                                @break   

                            @case("T")
                                <div class="col-mg-4">
                                    {!! html()->label($module["info"],$module["ref"])->attributes(['style'=>'']) !!}
                                    {!! html()->text($module["ref"], $module["value"])->attributes(['placeholder' => '', 'class' => 'form-control']) !!}
                                </div>
                                @break   

                            @default
                                
                        @endswitch
                    </div>                
                @endforeach
            </div>
        </div>
    </div>
@endforeach



