@extends('layouts.app') @section('content') @include('partials.navbar')
{{ $gadget->brand }} {{ $gadget->category }}

{{ $gadget->title }}

{!! $gadget->short_description !!}

@if (optional($gadget->user)->avatar) {{ $gadget->user->name }} @endif {{ $gadget->user->name ?? 'Unknown Author' }} | {{ $gadget->created_at->format('F j, Y') }} | 👁 {{ $gadget->views }} views
{{-- TAGS --}}
@if ($gadget->tags) @foreach ($gadget->tags as $tag) #{{ $tag }} @endforeach @endif
{{-- PRICE --}}
~ ${{ $gadget->price }}/-

Overview

{!! $gadget->short_description !!}

Product Highlight

{!! $gadget->full_description !!}

@if ($gadget->africa_description)
🌍 Why It Matters for Africa
{!! $gadget->africa_description !!}
@endif

Pros & Cons

GOOD
    @php $pros = is_array($gadget->pros) ? $gadget->pros : json_decode($gadget->pros, true); @endphp @foreach ($pros ?? [] as $pro)
  • {{ $pro }}
  • @endforeach
BAD
    @php $cons = is_array($gadget->cons) ? $gadget->cons : json_decode($gadget->cons, true); @endphp @foreach ($cons ?? [] as $con)
  • {{ $con }}
  • @endforeach
@if ($gadget->specs)
Specifications
@php $specs = is_array($gadget->specs) ? $gadget->specs : json_decode($gadget->specs, true); @endphp @if ($specs) @foreach ($specs as $key => $value)
{{ $key }} {{ $value }}
@endforeach @endif
@endif
@if ($gadget->youtube_embed)
@endif
Gadget Maker Profile

{{ $gadget->maker_bio ?? '' }}

@if (!empty($gadget->maker_website)) @php $host = parse_url($gadget->maker_website, PHP_URL_HOST); $host = preg_replace('/^www\./', '', $host); @endphp {{ $host }} @else @endif

@if (isset($related) && $related->count())

Related Gadgets

@foreach ($related as $item)
{{ $item->title }}

{{ \Illuminate\Support\Str::limit($item->short_description, 240) }}

GADGET DETAILS →
@endforeach
@endif


@endsection