- ASIN
- {{ $product->asin ?? 'N/A' }}
- Type
- {{ $product->type ?? 'N/A' }}
- Price
- ${{ number_format($product->price ?? 0, 2) }}
- Status
-
{{-- Assuming 'availability' field exists, adjust if needed --}}
@if ($product->availability ?? true)
Available
@else
Not
Available
@endif
- Added On
- {{ $product->created_at->format('M d, Y') }}
- Last Updated
- {{ $product->updated_at->diffForHumans() }}
{{-- Description --}}
@if ($product->description)
@endif
{{-- Associated Campaigns --}}
{{-- Conditionally show Edit button --}}
{{-- Assuming 'inhouse' is the type for conventional/editable products --}}
@if ($product->type === 'inhouse')
{{-- <<< ADDED THIS @if CONDITION --}}
Edit Product
@endif {{-- <<< END @if CONDITION --}}
{{-- Delete button (kept for all types for now) --}}