@extends('layouts.front-end.app') @section('title',\App\CPU\translate('Shop Page')) @push('css_or_js') @if($shop['id'] != 0) @else @endif @if($shop['id'] != 0) @else @endif @endpush @section('content') @php($decimal_point_settings = \App\CPU\Helpers::get_business_settings('decimal_point_settings'))
@if($shop['id'] != 0) @else @php($banner=\App\CPU\Helpers::get_business_settings('shop_banner')) @endif
{{-- sidebar opener --}} {{-- seller info+contact --}}
{{-- logo --}}
@if($shop['id'] != 0)
@if($seller_temporary_close || $inhouse_temporary_close) {{\App\CPU\translate('closed_now')}} @elseif(($seller_id==0 && $inhouse_vacation_status && $current_date >= $inhouse_vacation_start_date && $current_date <= $inhouse_vacation_end_date) || $seller_id!=0 && $seller_vacation_status && $current_date >= $seller_vacation_start_date && $current_date <= $seller_vacation_end_date) {{\App\CPU\translate('closed_now')}} @endif
@else
@if($seller_temporary_close || $inhouse_temporary_close) {{\App\CPU\translate('closed_now')}} @elseif(($seller_id==0 && $inhouse_vacation_status && $current_date >= $inhouse_vacation_start_date && $current_date <= $inhouse_vacation_end_date) || $seller_id!=0 && $seller_vacation_status && $current_date >= $seller_vacation_start_date && $current_date <= $seller_vacation_end_date) {{\App\CPU\translate('closed_now')}} @endif
@endif
@if($shop['id'] != 0) {{ $shop->name}} @else {{ $web_config['name']->value }} @endif
@for($count=0; $count<5; $count++) @if($avg_rating >= $count+1) @else @endif @endfor ({{round($avg_rating,2)}})
{{ $total_review}} {{\App\CPU\translate('reviews')}} {{ $total_order}} {{\App\CPU\translate('orders')}}
{{-- contact --}}
@if($seller_id!=0) @if (auth('customer')->check())
@else @endif @endif
@if(isset($shop->temporary_close) && ($shop->temporary_close || ($shop->vacation_status && date('Y-m-d') >= date('Y-m-d', strtotime($shop->vacation_start_date)) && date('Y-m-d') <= date('Y-m-d', strtotime($shop->vacation_end_date))))) @else {{-- Modal --}} @endif
{{-- sidebar (Category) - before toggle --}}
{{-- sidebar (Category mobile) - after toggle --}}
×

{{\App\CPU\translate('categories')}}

@foreach($categories as $category)
{{$category->childes->count()>0?'+':''}}
@endforeach
{{-- main body (Products) --}}
@include('web-views.products._ajax-products',['products'=>$products,'decimal_point_settings'=>$decimal_point_settings])
@endsection @push('script') @endpush