@extends('frontend.layouts.app') @section('meta_title'){{ $shop->meta_title }}@stop @section('meta_description'){{ $shop->meta_description }}@stop @section('meta') @endsection @section('content') {{ $shop->name }} @if ($shop->verification_status == 1) @else @endif {{ renderStarRating($shop->rating) }} {{ $shop->address }} {{ translate('Store Home')}} {{ translate('Top Selling')}} {{ translate('All Products')}} @if ($shop->facebook != null) @endif @if ($shop->instagram != null) @endif @if ($shop->twitter != null) @endif @if ($shop->google != null) @endif @if ($shop->youtube != null) @endif @if (!isset($type)) @if ($shop->sliders != null) @foreach (explode(',',$shop->sliders) as $key => $slide) @endforeach @endif {{ translate('Featured Products')}} @foreach ($shop->user->products->where('published', 1)->where('approved', 1)->where('seller_featured', 1) as $key => $product) @include('frontend.partials.product_box_1',['product' => $product]) @endforeach @endif @if (!isset($type)) {{ translate('New Arrival Products')}} @elseif ($type == 'top-selling') {{ translate('Top Selling')}} @elseif ($type == 'all-products') {{ translate('All Products')}} @endif @php if (!isset($type)){ $products = \App\Models\Product::where('user_id', $shop->user->id)->where('published', 1)->where('approved', 1)->orderBy('created_at', 'desc')->paginate(24); } elseif ($type == 'top-selling'){ $products = \App\Models\Product::where('user_id', $shop->user->id)->where('published', 1)->where('approved', 1)->orderBy('num_of_sale', 'desc')->paginate(24); } elseif ($type == 'all-products'){ $products = \App\Models\Product::where('user_id', $shop->user->id)->where('published', 1)->where('approved', 1)->paginate(24); } @endphp @foreach ($products as $key => $product) @include('frontend.partials.product_box_1',['product' => $product]) @endforeach {{ $products->links() }} @endsection