@extends('web.layouts.main')
@section('content')

   <main>
        <!--start header-->
        <section class="pg-header">
            <div class="text text-center">
                <h4 class="mb-0">جلسات Green Apple </h4>
            </div>
        </section>
         <!--start rsults-->
         <section class="rsults-pg">
            <div class="container">
                @foreach($results as $row)
                @if(is_null($row->video))
                <div class="item">
                
                    <div class="row">
                        <div class="col-md-6">
                            <div class="text">
                                <h5>{{$row->name}}</h5>
                                <p> <b>تفاصيل الجلسه:</b> </p>
                                <p>
                                   {{$row->description}}   </p>
                                <div class="links mt-4">
                                    <a href="{{url('requests')}}">احجز الان</a>
                                    
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6">
                           <div class="image-content">
                            <a href="{{asset($row->image)}}" data-fancybox="images">
                                <img src="{{asset($row->image)}}" alt="" />
                            </a>
                           </div>
                        </div>
                    </div>
                </div>
                @else
                <div class="item">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="image-content">
                                <img src="{{url('')}}/web/images/results.jpg" alt="" />
                                <a data-fancybox href="{{asset($row->video)}}" class="play-btn wow zoomIn" data-wow-duaration="2s">
                                    <i class="fas fa-play"></i>
                                </a>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="text">
                                <h5>{{$row->name}} </h5>
                                <p> <b>تفاصيل الجلسه:</b> </p>
                                <p>
                                 {{$row->description}}   </p>
                                <div class="links mt-4">
                                    <a href="{{url('requests')}}">احجز الان</a>
                                   
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                @endif
                @endforeach
            </div>
         </section>
    </main>
 
 
@stop