@if (siteUrlSettings('site_logo'))
) }})
@else
{{ siteUrlSettings('site_name') ?? config('app.name') }}
@endif
{{ $title }}
{{ $heading }}
{{ $message }}
@if (siteUrlSettings('site_phone') || siteUrlSettings('site_email'))
@endif
@php
$socials = [
'facebook' => [
'value' => siteUrlSettings('site_facebook'),
'icon' => 'bi-facebook',
'prefix' => 'https://facebook.com/'
],
'twitter' => [
'value' => siteUrlSettings('site_twitter'),
'icon' => 'bi-twitter-x',
'prefix' => 'https://x.com/'
],
'instagram' => [
'value' => siteUrlSettings('site_instagram'),
'icon' => 'bi-instagram',
'prefix' => 'https://instagram.com/'
],
'whatsapp' => [
'value' => siteUrlSettings('site_whatsapp'),
'icon' => 'bi-whatsapp',
'prefix' => 'https://wa.me/'
],
'linkedin' => [
'value' => siteUrlSettings('site_linkedin'),
'icon' => 'bi-linkedin',
'prefix' => ''
],
'youtube' => [
'value' => siteUrlSettings('site_youtube'),
'icon' => 'bi-youtube',
'prefix' => ''
]
];
@endphp
@if(collect($socials)->contains(fn($s) => !empty($s['value'])))
@foreach($socials as $name => $social)
@if($social['value'])
@php
$url = str_starts_with($social['value'], 'http')
? $social['value']
: $social['prefix'] . ltrim($social['value'], '@/');
@endphp
@endif
@endforeach
@endif