
@include('nn_site.partials.header')
<section class="section projects">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="projects-ul">
                        <ul>
                            <li {{(! request()->route('status')) ? 'class=active':"" }}><a href="{{fullUrl('works')}}" title="{{$translate->all}}">{{$translate->all}}</a></li>
                            <li {{(request()->route('status')== '1') ? 'class=active':"" }}><a href="{{fullUrl('works/1')}}" title="{{$translate->plannedEvents}}">{{$translate->plannedEvents}}</a></li>
                            <li {{(request()->route('status')== '2') ? 'class=active':"" }}><a href="{{fullUrl('works/2')}}" title="{{$translate->upGoingEvents}}">{{$translate->upGoingEvents}}</a></li>
                            <li {{(request()->route('status')== '3') ? 'class=active':"" }}><a href="{{fullUrl('works/3')}}" title="{{$translate->lastEvents}}">{{$translate->lastEvents}}</a></li>
                        </ul>
                    </div>
                    <!-- /.projects-ul -->
                </div>
                <!-- /.col-md-12 -->
                @foreach($projects as $project)
                <div class="col-md-4">
                    <div class="projects-item">
                        <a href="{{fullUrl('works/details/'.$project->slug)}}" title="{{$project->name}}">
                            <figure>
                                <picture><source srcset="{{$project->imgurl}}" type="image/webp"><img src="{{$project->imgurl}}" alt="{{$project->name}}"></picture>
                            </figure>
                            <div class="projects-item__title">
                                <span>
                                    @if ($project->status == 1)
                                        {{$translate->plannedEvents}}
                                    @elseif($project->status == 2)
                                        {{$translate->upGoingEvents}}
                                    @elseif($project->status == 3)
                                        {{$translate->lastEvents}}
                                    @endif
                                </span>
                                <h2>{{$project->name}}</h2>
                            </div>
                            <!-- /.projects-item__title -->
                        </a>
                    </div>
                    <!-- /.projects-item -->
                </div>
                @endforeach

                <div class="col-md-12 mt-4">
                    <!-- Pagination -->

                    @include('nn_site.partials.pager',['items'=>$projects, 'slug'=>'works'])
        
 
                </div>
            </div>
            <!-- /.row -->
        </div>
        <!-- /.container -->
    </section>
    <!-- /.section projects -->
    @include('nn_site.partials.footer')