@if (core()->getConfigData('catalog.products.social_share.enabled'))
@php
$message = core()->getConfigData('catalog.products.social_share.share_message');
@endphp
{!! view_render_event('bagisto.shop.products.view.share.before', ['product' => $product]) !!}
@lang('admin::app.configuration.index.catalog.products.social-share.share')
@foreach(['facebook', 'twitter', 'instagram', 'pinterest', 'linkedin', 'whatsapp', 'email'] as $social)
@if (! core()->getConfigData('catalog.products.social_share.' . $social))
@continue
@endif
@include('social_share::links.' . $social , compact('product', 'message'))
@endforeach
{!! view_render_event('bagisto.shop.products.view.share.after', ['product' => $product]) !!}
@push('scripts')
@endpush
@endif