@extends('layouts.public', ['shopNav' => true]) @section('title', $p->name) @section('description', $desc) @section('head') @endsection @section('content')
@if ($pp['images'])
{{ $p->name }}
@if (count($pp['images']) > 1)
@foreach ($pp['images'] as $i => $im)@endforeach
@endif @else
{{ mb_substr($p->name, 0, 1) }}Photo coming soon
@endif
@if ($p->brand !== '')

{{ $p->brand }}

@endif

{{ $p->name }}

@if ($pp['new'])New arrival@endif @if ($pp['reviews']) @include('partials.stars', ['rating' => $pp['rating']]) {{ number_format($pp['rating'], 1) }} ({{ $pp['reviews'] }} review{{ $pp['reviews'] > 1 ? 's' : '' }}) @else No reviews yet. Be the first to write one. @endif @if ($pp['price'] !== null)

{{ naira($pp['price']) }}@if ($pp['old']) {{ naira($pp['old']) }} Save {{ naira($pp['old'] - $pp['price']) }}@endif

@else

Ask for price

@endif

{{ $stockText }}

@if ($pp['spec'] !== '')

{{ $pp['spec'] }}

@endif @if ($buyable)
@endif

Need it installed? Book a technician for delivery and installation.

@include('partials.share', ['url' => $url, 'text' => $share])
@if ($pp['description'] !== '')

Description

@foreach (preg_split('/\n{2,}/', $pp['description']) as $para)

{!! nl2br(e(trim($para))) !!}

@endforeach
@endif @if ($pp['details'])

Specifications

@foreach ($pp['details'] as $row)@endforeach
{{ $row[0] }}{{ $row[1] }}
@endif

Customer reviews

@if ($pp['reviews'])
{{ number_format($pp['rating'], 1) }}out of 5
@for ($k = 5; $k >= 1; $k--) @php($pc = count($reviews) ? round(100 * $dist[$k] / count($reviews)) : 0)
{{ $k }} ★{{ $dist[$k] }}
@endfor
@endif @foreach ($reviews as $r)
@include('partials.stars', ['rating' => (float) $r->rating]) @if ($r->title !== ''){{ $r->title }}@endif

{!! nl2br(e($r->body)) !!}

{{ $r->name }} · {{ $r->created_at->format('j M Y') }}@if ($r->verified) · Verified purchase@endif @if ($r->admin_reply)
Reply from {{ $store }}: {{ $r->admin_reply }}
@endif
@endforeach

Write a review

Your rating @for ($k = 5; $k >= 1; $k--)@endfor
@if ($related->isNotEmpty())

More in {{ $pp['cat'] ?: 'the shop' }}

@foreach ($related as $r) @if ($r['photo'])@else{{ mb_substr($r['name'], 0, 1) }}@endif{{ $r['name'] }}{{ naira($r['price']) }} @endforeach
@endif @endsection