@extends('panel.layout.settings', ['disable_tblr' => true, 'disable_titlebar' => true])
@section('title', __('Connect Social Media Accounts'))
@section('settings')
@lang('Connect Social Media Accounts')
@lang('Connect your social media accounts to seamlessly manage, post, and publish content across multiple platforms.')
Connected Accounts
@foreach ($platforms as $platform)
@php
$image = 'vendor/social-media/icons/' . $platform->value . '.svg';
$image_dark_version = 'vendor/social-media/icons/' . $platform->value . '-light.svg';
$darkImageExists = file_exists(public_path($image_dark_version));
$is_connected = $platform->platform()?->isConnected();
$userPlatform = $platform->platform();
@endphp
@if (!$is_connected)
@continue
@endif
$darkImageExists,
])
src="{{ asset($image) }}"
alt="{{ $platform->name }}"
/>
@if ($darkImageExists)
@endif
{{ str($platform->name)->title() }}
@if ($is_connected)
@lang('Connected')
@if ($userPlatform)
@endif
@endif
@endforeach
@endsection
@push('script')
@endpush