@extends('layouts.app') @section('title', $product->name) @section('content')
← {{ __('products.index_back_to_list') }}
@if ($product->image_url) {{ $product->name }} @else
@endif

{{ $product->name }}

@if ($product->asin)
{{ __('products.show_asin') }}
{{ $product->asin }}
@endif
{{ __('products.show_type') }}
{{ $product->type ? __('products.form_type_' . strtolower($product->type)) : 'N/A' }}
{{-- ADDED: Primary Campaign Display --}} @if ($product->campaign)
{{ __('products.form_campaign_label') }}
{{ $product->campaign->title }}
@endif
{{ __('products.show_price') }}
${{ number_format($product->price ?? 0, 2) }}
{{ __('products.show_status') }}
@if ($product->availability ?? true) {{ __('products.status_available') }} @else {{ __('products.status_not_available') }} @endif
{{ __('products.show_added_on') }}
{{ $product->created_at->format('M d, Y') }}
{{ __('products.show_last_updated') }}
{{ $product->updated_at->diffForHumans() }}
@if ($product->description)

{{ __('products.show_description') }}

{!! nl2br(e($product->description)) !!}
@endif {{-- ADDED: Associated Campaigns Section --}}

{{ __('products.show_associated_campaigns') }}

@forelse ($product->campaigns as $campaign) {{ $campaign->title }} @empty

{{ __('products.show_no_campaigns') }}

@endforelse
{{ __('products.show_edit_button') }}
@csrf @method('DELETE')
@endsection