@php
$city = $business->cities->first();
$country = business_country_name($business);
@endphp
Business Name
{{ $business->name }}
@if ($business->categories->isNotEmpty())
Category
{{ $business->categories->pluck('name')->join(', ') }}
@endif
@if ($business->website || $business->email)
@if ($business->website)
Website
@php
$website = $business->website;
if (!preg_match('/^https?:\/\//', $website)) {
$website = 'https://' . $website;
}
@endphp
{{ $business->website }}
@endif
@endif
@php
$locationParts = array_filter([
$business->address,
$city?->name,
$country,
]);
$fullLocation = implode(', ', $locationParts);
@endphp
@if ($fullLocation)
{{ $fullLocation }}
@endif
@if ($business->description)
About Profile
{{ $business->description }}
@endif
@if ($hasSocialLinks)
Social Media
@endif
@isset($socials['facebook'])
@endisset
@isset($socials['instagram'])
@endisset
@isset($socials['youtube'])
@endisset
@isset($socials['twitter'])
@endisset