@endif
@foreach($embeds as $embed)
@php
$name = $embed['author']['name'] ?? null;
$thumbnail = $embed['thumbnail']['url'] ?? null;
$author_icon_url = $embed['author']['icon_url'] ?? null;
$author_url = $embed['author']['url'] ?? null;
$footer_icon_url = $embed['footer']['icon_url'] ?? null;
$footer_text = $embed['footer']['text'] ?? null;
$footer_timestamp = $embed['timestamp'] ?? null;
@endphp
@if($name || $thumbnail)
@if($author_icon_url || $name)
@if($author_icon_url)

@endif
@if($author_url)
{!! $link($author_url, $name ? '
' . e($name) . '
' : '') !!}
@elseif($name)
{{ $name }}
@endif
@endif
@if($thumbnail)

@endif
@endif
@if($title = data_get($embed, 'title'))
{!! $link(
$url = data_get($embed, 'url'),
'
' . e($title) . '
'
) !!}
@endif
@if($description = data_get($embed, 'description'))
{!! nl2br($description) !!}
@endif
@if($fields = data_get($embed, 'fields'))
@foreach($fields as $field)
{{ data_get($field, 'name') }}
{{ data_get($field, 'value') }}
@endforeach
@endif
@if($image = data_get($embed, 'image.url'))

@endif
@if($footer_text || $footer_timestamp)
@endforeach