@extends('website.layouts.master') {{--@section('title') {{__('website.shop').' - '.$shop->getQualifiedName()}} @stop--}} @section('css') @stop @section('script.title') @stop @section('content') @php $brand_translation = $brand->translations->where('language_id',getLocaleId())->first(); @endphp {{__('theme.home')}} {{__('theme.all_brands')}} {!! $brand_translation->name ?? $brand->name !!} {{__('website.products')}} {{ $brand_translation->name ?? $brand->name }} {!! optional($brand->country)->name !!} {!! $brand_translation->description ?? $brand->description !!} @lang('theme.sort_by'): {{-- --}} @lang('theme.best_match') @lang('theme.newest') @lang('theme.oldest') @lang('theme.price'): @lang('theme.low_to_high') @lang('theme.price'): @lang('theme.high_to_low') @lang('theme.free_shipping') ({{ $products->where('free_shipping', 1)->count() }}) @lang('theme.has_offers') ({{ $products->where('offer_price', '>', 0)->where('offer_start', '<', \Carbon\Carbon::now())->where('offer_end', '>', \Carbon\Carbon::now())->count() }}) @lang('theme.new_arrivals') ({{ $products->where('created_at', '>', \Carbon\Carbon::now()->subDays(config('system.filter.new_arraival', 7)))->count() }}) @if ($products->count()) @foreach ($products as $item) @php $item_translation = $item->translations->where('language_id',getLocaleId())->first(); @endphp {{ $item_translation->title ?? $item->title}} {!! $item_translation->description ?? $item->description !!} @if (config('system_settings.show_item_conditions')) {!! $item->condition !!} @endif {{-- {{ $item->manufacturer->name }} --}} @if ($item->shop->isVerified() && Route::current()->getName() != 'show.store') @lang('theme.from_verified_seller') @endif @foreach ($item->getLabels() as $label) {!! $label !!} @endforeach {!! get_formated_price($item->current_sale_price(), config('system_settings.decimals', 2)) !!} @if ($item->hasOffer()) {!! get_formated_price($item->sale_price, config('system_settings.decimals', 2)) !!} @endif @endforeach @else {{ trans('theme.no_product_found') }} {{ trans('theme.button.choose_from_categories') }} @endif {{ $products->links('vendor.pagination.default') }} @stop @section('script') @stop
{!! optional($brand->country)->name !!}
{!! $brand_translation->description ?? $brand->description !!}
{!! $item_translation->description ?? $item->description !!}
{!! get_formated_price($item->sale_price, config('system_settings.decimals', 2)) !!}