@php
    $product = $getRecord();
    $value = $product->barcode ?: $product->sku;
@endphp

@if ($value)
    <img
        src="{{ route('barcode.show', ['product' => $product, 'format' => 'svg']) }}"
        alt="{{ $value }}"
        title="{{ $value }}"
        style="height: 2.25rem; width: auto; display: block;"
    >
@else
    <span class="text-gray-400 dark:text-gray-500">—</span>
@endif