@extends('layouts.master') @section('extraStyle') @endsection @section('content') @include('balde_components.navs.side-bar') @include('balde_components.navs.nav-bar-v2')
{{-- @csrf --}}

@if($field) {{__('Shop belong to field')}} "{{$field->name}}" @else {{__('Search result on shops with a name like')}} " {{$search_value}} " @endif

@forelse ($markets as $market)
@if($field) {{$field->name}} @else @if(count($market->fields)!=0) {{$market->fields->first()->name}} @endif @endif @if ($market->closed) closed @endif @if ($market->getFirstMediaUrl('image') != "") market @else market @endif

{{$market->name}}

{{$market->address}}

{!! $market->description !!}
{{$market->rate}}
{{__("Delivery")}}
{{__("Pick Up")}}
@empty
{{__('No shop is found')}}
@endforelse
{{-- products --}}

@if($category) {{__('Products belong to category')}} "{{$category->name}}" @else {{__('Search result on products with a name like')}} " {{$search_value}} " @endif

@forelse ($products as $product)
@if ($product->getFirstMediaUrl('image') != "") product image @else product image @endif
{{$product->category->name}}

{{$product->name}}

{{$product->market->name}}

{{$product->market->address}}

@if($product->rate)
{{$product->rate}}
@endif

{!! getPrice($product->getPrice()) !!}

@if ($product->discount_price !=0) -{{number_format(100-($product->discount_price * 100 / $product->price),0)}} % @endif
{{__("Delivery")}} {{__("Pick Up")}}
@empty
{{__('No product is found')}}
@endforelse
{{-- footer--}} @include('balde_components.footer') @endsection @section('extraJs') @endsection