@php
$val = data_get($item, $col['key']);
$type = $col['type'] ?? 'text';
@endphp
@switch($type)
@case('thumb')
@php $wide = ! empty($col['wide']); @endphp
@if ($val)
$wide]) src="{{ $val }}" alt="" width="{{ $wide ? 144 : 48 }}" height="48" loading="lazy">@else $wide]) aria-hidden="true">@endif
@break
@case('link')
{{ filled(trim((string) $val, " .-_")) ? $val : 'Untitled #'.$item->id }}
@break
@case('bool')
$val, 'pill--off' => ! $val])>{{ $val ? ($col['labels'][0] ?? 'Yes') : ($col['labels'][1] ?? 'No') }}
@break
@case('tag')
@if (filled($val)){{ $val }}@else — @endif
@break
@case('money')
{{ \App\Support\Fmt::rupees((int) $val) }}
@break
@case('date')
{{ $val ? $val->format('j M Y') : '—' }}
@break
@case('excerpt')
{{ \Illuminate\Support\Str::limit((string) $val, 80) }}
@break
@default
{{ \Illuminate\Support\Str::limit((string) $val, 80) ?: '—' }}
@endswitch