@foreach ($products as $product)
|
@php
$spec = [];
if (!empty($product->diameter)) $spec[] = '直徑:' . $product->diameter;
if (!empty($product->length)) $spec[] = '長度:' . $product->length;
if (!empty($product->high)) $spec[] = '高度:' . $product->high;
if (!empty($product->cuff)) $spec[] = 'cuff:' . $product->cuff;
if (!empty($product->angle)) $spec[] = 'angle:' . $product->angle . '°';
if (!empty($product->type)) $spec[] = 'type:' . $product->type;
if (!empty($product->post_h)) $spec[] = 'PostH:' . $product->post_h;
@endphp
@if (empty($spec))
無規格
@else
{{ implode(' ', $spec) }}
@endif
|
{{ $product->product_id }} |
{{ $product->product_name }} |
|
|
@endforeach