@extends('lamis.layout.main')
@section('content')


 <!--Contents-->
    <main>
       <div class="inner_header">
            <div class="container">
                <h2>{{__('site.forms')}}</h2>
            </div>
            <img src="{{url('')}}/assets/lamis/images/home-topr.png" alt="" class="slider_shape">
        </div>
        
        <section class="registeration">
               @if ($errors->any())
      <div class="alert alert-danger">
          <ul>
              @foreach ($errors->all() as $error)
                  <li>{{ $error }}</li>
              @endforeach
          </ul>
      </div>
  @endif
   <form method="post" action="{{url(getCurrentLocale().'/regist')}}">
                        @CSRF
                        <div class="text text-center">
                    <h4>
                        
                    <a onclick="window.print()" class="btn btn-primary" style="background-color:#AF387D;border-color:#AF387D;color:white"><i class="fas fa-print"></i></a>
                    
                    </h4>
                   
                </div>  
                        @foreach($steps as $step)
            <div class="container">
                <div class="text-content text-center">
                    <h4>{{servicelang($step->id)}}</h4>
                    
                </div>
                    <div class="form-container">
                     
                        
                            <div class="row">
                                @foreach($step->form as $row)
                                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                    <label>{{formquestion($row->id)}}</label>
                                    <input type="text" disabled name="username" class="form-control" value="{{projectdescription($row->id,$project_id)}}">
            
                                </div>
                               @endforeach
                                
                               
                                
                            </div>
                       
                </div>
            </div>
            @endforeach
            <div class="container">
            <div class="form-container">
            <div class="row">
            <div class="col-12 m-auto">
                                    <a href="{{url(getCurrentLocale().'/final/saving/'.$project_id)}}" class="btn register-btn">{{__('site.save')}}</a>
                                </div>
                                </div>
                                </div>
                                </div>
            </form>
            
            <img src="{{url('')}}/assets/lamis/images/home-topr.png" alt="" class="r-top wow fadeInRight slow">
            <div class="polygan c-bottom"></div>
        </section>
    </main>
    <!--End-Contents-->





@stop