@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 }}

{{ $shop->name }} @if ($shop->verification_status == 1) @else @endif

{{ renderStarRating($shop->rating) }}
{{ $shop->address }}
@if (!isset($type))

{{ translate('Featured Products')}}

@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