3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-04-04 06:48:49 +00:00
Files
snipe-it/resources/views/blade/data-row.blade.php
2026-03-24 12:39:16 +00:00

25 lines
696 B
PHP

@props([
'label',
'copy_what' => null,
'icon_type' => null,
'hide_if_null' => false,
'align' => 'left',
])
@if ($hide_if_null!='true')
<dt>
@if (isset($icon_type))
<x-icon type="{{ $icon_type }}" class="fa-fw"/>
@endif
{{ $label }}
</dt>
<dd style="text-align: {{ $align }} !important">
@if ((!$slot->isEmpty()) && ($copy_what!=''))
<x-copy-to-clipboard copy_what="{{ $copy_what }}">{{ $slot }}</x-copy-to-clipboard>
@elseif (!$slot->isEmpty())
{{ $slot }}
@else
<span class="text-muted"><em>{{ trans('general.no_value') }}</em></span>
@endif
</dd>
@endif