PATH:
home
/
lab2454c
/
.trash
/
core
/
resources
/
views
/
templates
/
basic
/
sections
@php $featuredProducts = App\Models\Product::where('status', 1) /*->whereDate('time_duration','>', Carbon\Carbon::now()->toDateTimeString())*/ ->where('featured', 1) ->limit(getPaginate())->inRandomOrder() ->with('order')->get(); @endphp <section class="products-section pt-60 pb-60"> <div class="container"> <div class="section__header"> <h5 class="title">@lang('Featured Product')</h5> <div class="owl-nav"> <div class="owl-prev"></div> <div class="owl-next"></div> </div> </div> <div class="slider-wrapper"> <div class="owl-theme owl-carousel products-slider"> @foreach($featuredProducts as $product) <div class="slide-item"> <div class="product-item"> <div class="product-inner"> <div class="product-thumb"> @if($product->featured == 1) <span class="ticker">@lang('Featured')</span> @endif <!--<a href="{{route('product.detail', $product->id)}}" class="d-block">--> <!-- <img src="{{ getImage(imagePath()['product']['path'].'/'.$product->image,imagePath()['product']['size'])}}" alt="@lang('product')">--> <!-- <h6 class="title">{{__($product->title)}}</h6>--> <!--</a>--> @php $productImage = $product->productImages->first(); //dd($productImage); if (isset($productImage)) { $imageName = explode('.', $productImage->file); $ext = $imageName[count($imageName) - 1]; } @endphp @if(isset($productImage)) @if($ext == 'mp4' || $ext == 'mov') <video width="300" height="250" controls> <source src="{{ asset('assets/images/product/'.$productImage->file) }}" type="video/mp4"> Your browser does not support the video tag. </video> @else <a href="{{route('product.detail', $product->id)}}" class="d-block"> <img src="{{ getImage(imagePath()['product']['path'].'/'.$productImage->file,imagePath()['product']['size'])}}" alt="@lang('product')"> <h6 class="title">{{__($product->title)}}</h6> </a> @endif @else <a href="{{route('product.detail', $product->id)}}" class="d-block"> <img src="{{ getImage(imagePath()['product']['path'].'/'.$product->image,imagePath()['product']['size'])}}" alt="@lang('product')"> <h6 class="title">{{__($product->title)}}</h6> </a> @endif </div> <div class="product-content"> <ul class="countdown" data-count_down="{{ showDateTime($product->time_duration, 'Y/m/d h:i:s')}}"> <li> <h6 class="countdown__title"><span class="days">@lang('00')</span></h6> <p class="days_text">@lang('days')</p> </li> <li> <h6 class="countdown__title"><span class="hours">@lang('00')</span></h6> <p class="hours_text">@lang('hours')</p> </li> <li> <h6 class="countdown__title"><span class="minutes">@lang('00')</span></h6> <p class="minu_text">@lang('minutes')</p> </li> <li> <h6 class="countdown__title"><span class="seconds">@lang('00')</span></h6> <p class="seco_text">@lang('seconds')</p> </li> </ul> <ul class="meta-list"> <li> <span class="text--base">{{$general->cur_sym}} </span> @if($product->featured == 1) {{showAmount($product->amount + $general->featured_price)}} @else {{showAmount($product->amount)}} @endif </li> <li> <div class="ratings"> @php echo ratings($product->rating) @endphp ({{getAmount($product->rating)}}) </div> </li> </ul> <ul class="meta-list"> <li> <span class="text--base"><i class="lab la-bitcoin"></i> </span><span class="text--base"> @if($product->featured == 1) {{btcRate($product->amount + $general->featured_price)}} @else {{btcRate($product->amount)}} @endif </span> </li> <li> <a href="{{route('product.detail', $product->id)}}" class="buy-now">@lang('Purchase Now')</a> </li> </ul> </div> </div> </div> </div> @endforeach </div> </div> </div> </section>
[-] latest_product.blade.php
[edit]
[+]
..
[-] today_deal_product.blade.php
[edit]
[-] how_to_work.blade.php
[edit]
[-] client.blade.php
[edit]
[-] ending_soon_product.blade.php
[edit]
[-] counter.blade.php
[edit]
[-] featured_product.blade.php
[edit]
[-] partner.blade.php
[edit]