@extends('layouts.admin') @section('content')
@if($product->image_url) {{ $product->name }} @else
@endif @if($product->gallery_images && count($product->gallery_images) > 0)
@foreach($product->gallery_images as $image)
{{ $product->name }}
@endforeach
@endif
@if($product->category) {{ $product->category->name }} @endif

{{ $product->name }}

{!! nl2br(e($product->description)) !!}
@if($product->features && count($product->features) > 0)
Key Features
    @foreach($product->features as $feature)
  • {{ $feature }}
  • @endforeach
@endif @if($product->benefits && count($product->benefits) > 0)
Benefits
    @foreach($product->benefits as $benefit)
  • {{ $benefit }}
  • @endforeach
@endif @if($product->pricingTiers->count() > 0)
Pricing Options
@foreach($product->pricingTiers as $tier)
@endforeach
@endif
@if($product->technicalSpecs->count() > 0)

Technical Specifications

@php $groupedSpecs = $product->technicalSpecs->groupBy('spec_category'); @endphp @if($groupedSpecs->has(''))
@foreach($groupedSpecs[''] as $spec) @endforeach
{{ $spec->spec_name }} {{ $spec->spec_value }} @if($spec->spec_unit) {{ $spec->spec_unit }} @endif
@endif @foreach($groupedSpecs->except('') as $category => $specs)
{{ $category }}
@foreach($specs as $spec) @endforeach
{{ $spec->spec_name }} {{ $spec->spec_value }} @if($spec->spec_unit) {{ $spec->spec_unit }} @endif
@endforeach
@endif @if($relatedProducts->count() > 0)

Related Products

@foreach($relatedProducts as $relatedProduct)
@if($relatedProduct->image_url) {{ $relatedProduct->name }} @endif
{{ $relatedProduct->name }}

{{ Str::limit($relatedProduct->description, 80) }}

View Details
@endforeach
@endif
@endsection