@props([ 'eyebrow' => null, 'title', 'subtitle' => null, 'icon' => null, 'model' => null, 'metrics' => [], 'details' => [], 'detailsTitle' => 'Key details', ]) @php $hasBody = ! empty($metrics) || ! empty($details) || trim((string) $slot) !== ''; @endphp
class('record-summary-card') }}>
@if ($icon) @endif
@if ($eyebrow)

{{ $eyebrow }}

@endif

{{ $title }}

@if ($subtitle)

{{ $subtitle }}

@endif
@if ($hasBody)
@if (! empty($metrics))
@foreach ($metrics as $metric)
{{ $metric['label'] ?? '' }} {{ $metric['value'] ?? '-' }}
@endforeach
@endif @if (! empty($details))
{{ $detailsTitle }}
@foreach ($details as $detail) @php $detailCell = $detail['cell'] ?? \Illuminate\Support\Arr::except($detail, ['label']); @endphp
{{ $detail['label'] ?? '' }}
@endforeach
@endif {{ $slot }}
@endif @if ($model)
@endif