@extends('frontend.layouts.master') @section('title','E-SHOP || HOME PAGE') @section('main-content') @if(count($banners)>0) @endif
@php $category_lists=DB::table('categories')->where('status','active')->limit(3)->get(); @endphp @if($category_lists) @foreach($category_lists as $cat) @if($cat->is_parent==1)
@if($cat->photo) {{$cat->photo}} @else # @endif

{{$cat->title}}

Discover Now
@endif @endforeach @endif

Trending Item

@if($product_lists) @foreach($product_lists as $key=>$product)

{{$product->title}}

@if ($product->discount != 0) @php $after_discount=($product->price-($product->price*$product->discount)/100); @endphp Rp.{{number_format($after_discount,2)}} Rp.{{number_format($product->price,2)}} @else Rp.{{number_format($product->price,2)}} @endif
@endforeach @endif
{{-- @php $featured=DB::table('products')->where('is_featured',1)->where('status','active')->orderBy('id','DESC')->limit(1)->get(); @endphp --}}
@if($featured) @foreach($featured as $data)
@php $photo=explode(',',$data->photo); @endphp {{$photo[0]}}

{{$data->cat_info['title']}}

{{$data->title}}
Up to {{$data->discount}}%

Shop Now
@endforeach @endif

Latest Items

@php $product_lists=DB::table('products')->where('status','active')->orderBy('id','DESC')->limit(6)->get(); @endphp @foreach($product_lists as $product)
@php $photo=explode(',',$product->photo); // dd($photo); @endphp {{$photo[0]}}

{{$product->title}}

@if ($product->discount != 0) @php $after_discount=($product->price-($product->price*$product->discount)/100); @endphp

Rp.{{number_format($after_discount,2)}}

@else

Rp.{{number_format($product->price,2)}}

@endif
@endforeach

From Our Blog

@if($posts) @foreach($posts as $post)
{{$post->photo}}

{{$post->created_at->format('d M , Y. D')}}

{{$post->title}} Continue Reading
@endforeach @endif

Free shiping

Orders over $100

Free Return

Within 30 days returns

Sucure Payment

100% secure payment

Best Peice

Guaranteed price

@include('frontend.layouts.newsletter') @if($product_lists) @foreach($product_lists as $key=>$product) @endforeach @endif @endsection @push('styles') @endpush @push('scripts') @endpush