| {{ format_date($product->dated, 'date') }} |
{{ $product->product_name }} |
{{-- {{ '$' . currency_format($product->price) }} | --}}
@php
$cats = [];
try { $cats = $product->categories()->pluck('title')->toArray(); } catch (\Throwable $e) { $cats = []; }
@endphp
{{ empty($cats) ? '-' : implode(', ', $cats) }}
|
{{--
| --}}
|
@php
// Check if the product has category name "Slabs"
$hasSlabs = false;
if (!empty($product->categories)) {
foreach ($product->categories as $cat) {
if (strtolower($cat->title) === 'slabs') {
$hasSlabs = true;
break;
}
}
}
@endphp
@if ($product->is_featured == 'Yes')
@else
@endif
|
Edit
Delete
Manage Colors
|
|
@empty