


            @foreach ($parametres as $parametre)
            	<div class="form-group row">
	                <div class="col-md-3">
                        {!! html()->label($parametre->info,$parametre->ref) !!}
                    </div>
                    @if($parametre->type=='T')
                    	<div class="col-md-4" >
                        {!! html()->textarea($parametre->ref, $parametre->value)
                            ->attributes([(($mode=='show')?'disabled':''),'class' => 'form-control','rows' => '2']) !!}
                        </div>
                    @endif
                    @if($parametre->type=='V')
                    	<div class="col-md-4" >
                        {!! html()->text($parametre->ref, $parametre->value)->attributes([(($mode=="show")?'disabled':''),'placeholder' => 'Valeur', 'class' => 'form-control']) !!}
                        </div>
                    @endif
                    @if($parametre->type=='N')
                    	<div class="col-md-4" >
                        {!! html()->text($parametre->ref, $parametre->value)->attributes([(($mode=="show")?'disabled':''),'placeholder' => 'Valeur', 'class' => 'form-control','style'=>'text-align:right']) !!}
                        </div>
                    @endif  
                    @if($parametre->type=='C') 
                        <div class="col-md-2" >
                            <div class="input-group my-colorpicker2">
                                <input id="{!! $parametre->ref !!}" name="{!! $parametre->ref !!}" 
                                    type="text" class="form-control" value="{!! $parametre->value !!}" {!! (($mode=='show')?'readonly':'') !!} >

                                <div class="input-group-append">
                                    <span class="input-group-text">
                                        <i class="fas fa-square" style="{!! (isset($unitens)?'color:'.$parametre->value.';':'') !!}"></i>
                                    </span>
                                </div>
                            </div>
                        </div>
                    @endif   


                    @if($parametre->type=='I')
                        <div class="col-md-4">
                            @if($parametre->value!="")
                                <img class=""  
                                    style="-webkit-border-radius:0%;width:150px; "  
                                    src="{!! $parametre->ImagePath !!}" />
                            @endif

                            @if(!($mode=="show"))
                                 {{ html()->file($parametre->ref)->attributes(['id'=>$parametre->ref,'name'=>$parametre->ref,
                                    'class'=>'form-control-file','style'=>'visibility:hidden','accept'=>'.jpg,.png'
                                    ]) !!}


                                {{ html()->label('Choisir une image Tampon/Signature',$parametre->ref)->attributes(['id'=>'btn_tampon_'.$parametre->ref,'class'=>'btn btn-md btn-info','onclick'=>"importe_file()"]) !!} 

                                {{ html()->label('&nbsp;','nom_tampon_'.$parametre->ref)->attributes(['id'=>'nom_tampon_'.$parametre->ref,'class'=>'']) !!} 

                                @section('scripts')
                                    <script>
                                            $("#{!! $parametre->ref !!}").change(function() {
                                                var fu1 = document.getElementById("{!! $parametre->ref !!}");
                                                $("#nom_tampon_{!! $parametre->ref !!}").html(fu1.value);
                                            });
                                            function importe_file() {
                                                $("#{!! $parametre->ref !!}").click();
                                            }
                                    </script>
                                @endsection
                            @endif
                        </div>
                    @endif    
                </div>
            @endforeach



