@extends('resturant-view.index')
@section('Rcontent')
@php
use App\Models\ResturantSupPageStyle;
$style=ResturantSupPageStyle::orderBy('id','desc')->first();
use App\Models\ResturantStyle;
$styleX=ResturantStyle::orderBy('id','desc')->first();
@endphp



<style>
    .bredcrumb_section.review_banner {
 

        background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url({{URL::to($style->Reviews_Top_Image)}}) !important;

    }
    
    .section_title .sub_text {

    color: {{$style->Reviews_Title_Color}} !importnat;
    }
    
    
    .coustomer_review_section .review_box {
    background-color: {{$style->Reviews_Box_BG}} !importnat;
    border-color: {{$style->Reviews_Box_Border}} !importnat;
    }
    
    
    .coustomer_review_section .review_box .left_quote{
         color: {{$style->Reviews_Icon_Color}} !importnat; 
    }
    
    
       .coustomer_review_section .review_box .right_quote{
         color: {{$style->Reviews_Icon_Color}} !importnat; 
    }
</style>    


<title>{{trans('admin.Reviews')}}</title>



    <!-- Bread Crumb Start -->
    <section class="bredcrumb_section review_banner">
      <div class="container">
        <div class="section_title text-center" data-aos="fade-up" data-aos-duration="1500">
          <span class="sub_text">{{trans('admin.Reviews')}}</span>

        </div>
      </div>
    </section>
    <!-- Bread Crumb End -->


   @if($style->Reviews_BG_Type == 1)   

    <section class="row_am coustomer_review_section" style="background-image: url({{URL::to($style->Reviews_BG_Image)}});">
   @elseif($style->Reviews_BG_Type == 2)

    <section class="row_am coustomer_review_section" style="background: {{$style->Reviews_BG_Color}};">
@elseif($style->Reviews_BG_Type == 0)
    <section class="row_am coustomer_review_section">
   @endif
    <!-- Review Section Start -->

      <div class="container">
        <div class="coustomer_inner">

            
        @foreach($Reviews as $review)    
            
        <!-- Review box -->
          <div class="review_box with_text" data-aos="fade-up" data-aos-duration="1500">
            <span class="quotes left_quote"><i class="icofont-quote-left"></i></span>
            <div class="user_img">
              <img src="{{URL::to($review->Image)}}" alt="img">
            </div>
            <div class="review">
           
             {!!app()->getLocale() == 'ar' ?$review->Arabic_Desc :$review->English_Desc!!}
            
              <h3 class="name">{{app()->getLocale() == 'ar' ?$review->Arabic_Name :$review->English_Name}}</h3>
            </div>
            <span class="quotes right_quote"><i class="icofont-quote-right"></i></span>
          </div>

        @endforeach    
        

        </div>
      </div>
        
        
               <!-- Pagination Block Start -->
        <div class="pagination_block" data-aos="fade-up" data-aos-duration="1500">
          <div class="row">
            <div class="col-lg-8">
           {{$Reviews->Links()}}
            </div>
          </div>
        </div>
    </section>
    <!-- Review Section End -->

<style>
    font{
        
        font-size: medium;
    }

</style>


<!-- Pagination -->
<style> 
.page-item disabled,
.page-link,
.page-item active,
.page-item
    {
    		    background: {{$styleX->Pagination_BG_Color}} !important;
   color: {{$styleX->Pagination_Txt_Color}} !important;   
    }

    .page-item.active .page-link{
          		    background:  {{$styleX->Pagination_Active_BG_Color}} !important;
   color:  {{$styleX->Pagination_Active_Txt_Color}} !important; 
border-color: {{$styleX->Pagination_Active_Txt_Color}} !important;
        
    }

</style>





@endsection   