@extends('layouts.app') @section('title', $product->name) @section('content')

{{ $product->name }}

{{ $product->name }}
@if ($product->images != null) @foreach ($product->images as $key => $image)
{{ $product->name }} - Image {{ $key + 2 }}
@endforeach @endif
{{ $product->name }}
@if ($product->images != null) @foreach ($product->images as $key => $image)
{{ $product->name }} - Thumbnail {{ $key + 2 }}
@endforeach @endif
@csrf

{{ $product->name }}

{{ $product->category->name }}

144 Review

${{ $product->get_min_price() }} - ${{ $product->get_max_price() }}

  • Free Shipment
  • In stock

Extra savings on EVERYTHING—this week only!

Add this item to cart and get 20% OFF on your order with code SPRING20

@foreach ($product->variation_by_name('size')->get() as $key => $value) @endforeach

Size

Qty

Price

Qty

{{ $value->get_attribute->name }} {{ $value->stock }} ${{ $value->price }}
@guest @else @if (Auth::user()->hasRole('vendor') && $product->belongsToSeller()) Manage Product @else @endif @endguest
@if ($product->pollination != null)
Pollination Info
{!! $product->pollination !!}
@endif @if ($product->planting != null)
Planting & Care
{!! $product->planting !!}
@endif @if ($product->related != null)
Related Resources
{!! $product->related !!}
@endif @if ($product->faqs != null)
FAQs
{!! $product->faqs !!}
@endif
@if ($product->organic != null) @endif @if ($product->plant_type != null) @endif @if ($product->lifecycle != null) @endif @if ($product->mature_height != null) @endif @if ($product->mature_width != null) @endif @if ($product->sunlight != null) @endif @if ($product->growth_rate != null) @endif @if ($product->planting_season != null) @endif @if ($product->year_to_bear != null) @endif @if ($product->does_not_ship_to != null) @endif @if ($product->grows_well != null) @endif
Organic: {{ $product->organic == 0 ? 'NO' : 'YES' }}
Type: {{ $product->plant_type }}
Hierloom: {{ $product->hierloom == 0 ? 'NO' : 'YES' }}
Lifecycle: {{ $product->lifecycle }}
Mature Height: {{ $product->mature_height }}
Mature Width: {{ $product->mature_width }}
Sunlight: {{ $product->sunlight }}
Growth Rate: {{ $product->growth_rate }}
Planting Season: {{ $product->planting_season }}
Year to Bear: {{ $product->year_to_bear }}
Does Not Ship To: {{ $product->does_not_ship_to }}
Grows Well In Zones: {{ $product->grows_well }}

Growing Zones: {{ $product->grows_well }}

@if ($product->grows_well != null)

({{ $product->growing_zones }})

@endif
@if ($product->supplies) @endif @if ($product->ingredients) @endif
{!! $product->description !!}
@if ($product->supplies) @endif @if ($product->ingredients) @endif

Customer Reviews & Photos

{{ number_format($product->comments->avg('review') ?? 0, 1) }}

@for ($i = 1; $i <= 5; $i++) @endfor

{{ $product->comments->count() }} Reviews

    @for ($rating = 5; $rating >= 1; $rating--)
  • {{ $rating }}
    @for ($i = 1; $i <= $rating; $i++) @endfor @for ($i = $rating + 1; $i <= 5; $i++) @endfor
    {{ $product->getReview($rating) ?? 0 }}
  • @endfor

@forelse ($product->comments as $item)

{{ $item->user->name }}

{{ $item->created_at->format('M d, Y') }}

@for ($i = 1; $i <= 5; $i++) @endfor ({{ $item->review }}/5)

{{ $item->comments }}

@empty

No Review Right Now

@endforelse
@if ($recommended->count() > 0)

Recommended for you

@endif @endsection @push('css') @endpush @push('js') @endpush @push('js') @endpush