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

{{ $product->name }}

{{ $product->brand }} @if($product->category) · {{ $product->category }} @endif
@if($product->detail_url)Open source@endif
Product details
@if($product->details)
Code
{{ $product->details->product_code ?: '—' }}
Model
{{ $product->details->model ?: '—' }}
Price
{{ $product->details->currency }} {{ $product->details->price ? number_format((float) $product->details->price) : '—' }}
Tags
@forelse($product->details->tags ?? [] as $tag){{ $tag }}@empty — @endforelse
Summary
{{ $product->details->short_description ?: '—' }}
Availability
{{ $product->details->availability ?: '—' }}
Merchant
{{ $product->details->merchant ?: '—' }}
@else

Details have not been scraped.

@endif
Images ({{ $product->images->count() }})
@forelse($product->images as $image)
@if($image->local_path)@endif
{{ $image->status }} · {{ $image->size ? number_format($image->size / 1024, 1).' KB' : '' }}
@empty

No images downloaded.

@endforelse
@if($product->details)
Installment Plans
@forelse($product->details->plans as $plan) @empty @endforelse
TenureMarkupMonthly Payment
{{ $plan->months }} Months {{ (float) $plan->interest === 0.0 ? '0% Markup' : 'Markup applicable' }} {{ $plan->currency }} {{ number_format((float) $plan->monthly_payment) }}
No installment plans stored.
Product Specifications
{!! nl2br(e($product->details->description ?: '—')) !!}
@if($product->details->terms)
Terms & Conditions
{!! nl2br(e($product->details->terms)) !!}
@endif
Raw source payload
{{ json_encode($product->details->raw_payload, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@endif @endsection