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

 <main>
      <div class="inner_header">
            <div class="container">
                <h2>{{__('site.step')}}</h2>
            </div>
            <img src="{{url('')}}/assets/lamis/images/home-topr.png" alt="" class="slider_shape">
        </div>
        <section class="services">
            <div class="container">
                
               
                @if($forms_count == $all_count)
                 <div class="row">
                     
               <div class="col-lg-5 col-md-4 col-sm-12 col-xs-12 no-pad"></div>
                <div class="col-6 m-auto"><a  class="btn register-btn" style="background-color:#af387d;color:white;"  href="{{url(getCurrentLocale().'/final/save/'.$project_id)}}">{{__('site.continue')}}</a></div>
                
                </div>
                @endif
                @if(\Auth::guard('member')->user())
                <div class="col-12">
                 <label>{{__('site.progress')}} {{$progress}} %</label>
                <div class="progress">
                    <div class="progress-value" data-value="{{$progress}}%" ></div>
                </div>
                </div>
                @endif
                <div class="row">
                    @foreach($begin_service as $key=>$row)
                    <div class="col-lg-3 col-md-4 col-sm-12 col-xs-12 no-pad">
                        <div class="card">
                            <a href="{{url(getCurrentLocale().'/step/'.$row->id.','.$project_id)}}">
                                <div class="image-content">
                                    <img src="{{asset('/lamis/images/services/'.$row->img)}}" alt="">
                                </div>
                                <div class="text-content text-center">
                                    <h5>{{$key+1}} - {{servicelang($row->id)}}</h5>
                                    <p>
                                        {{servicedescription($row->id,currentLanguage()['id'])}}
                                    </p>
                                 
                                </div>
                            </a>
                            
                            @if(\Auth::guard('member')->user())
                              <div class="col-12" style="bottom:0px;">
                                 <div class="progress-box">
                                     
                                     @php $count_row = countrow($row->id,$project_id); @endphp
                                     
                                     <label>{{__('site.progress')}} {{number_format(($count_row / count($row->form))*100,'1')}} %</label>
                                     <div class="progress">
                                       <div class="progress-value" data-value="{{number_format(($count_row / count($row->form))*100,'1')}}%"></div>
                                    </div>
                                 </div>
                            </div>
                            @endif
                        </div>
                        
                    </div>
                  @endforeach
                </div>
                <div class="see-more-content">
                    <div class="row">
                        @foreach($services as $key=>$row)
                        <div class="col-lg-3 col-md-4 col-sm-12 col-xs-12 no-pad">
                            <div class="card">
                                <a href="{{url(getCurrentLocale().'/step/'.$row->id.','.$project_id)}}">
                                    <div class="image-content">
                                        <img src="{{asset('/lamis/images/services/'.$row->img)}}" alt="">
                                    </div>
                                    <div class="text-content text-center">
                                        <h5>{{$key+5}} - {{servicelang($row->id)}}</h5>
                                        <p>
                                            {{servicedescription($row->id,currentLanguage()['id'])}}
                                        </p>
                                    </div>
                                </a>
                                  @if(\Auth::guard('member')->user())
                              <div class="col-12" style="bottom:0px;">
                             @php $count_row = countrow($row->id,$project_id); @endphp
                 <label>{{__('site.progress')}} {{number_format(($count_row / count($row->form))*100,'1')}} %</label>
                <div class="progress">
                   
                            <div class="progress-value" data-value="{{number_format(($count_row / count($row->form))*100,'1')}}%"></div>
                </div>
                </div>
                @endif
                            </div>
                        </div>
                     @endforeach
                    </div>
                </div>
                <div class="col-12 m-auto">
                    @if(count($services)>0)
                    <a href="#0" class="btn see-more-btn">
                        {{__('site.see_more')}}
                    </a>
                     @endif
                </div>
               
            </div>
            <img src="{{url('')}}/assets/lamis/images/home-topr.png" alt="" class="r-top wow fadeInRight slow">
            <div class="polygan c-bottom"></div>
        </section>
    </main>

@stop