@extends('layouts.user_type.guest') @section('header_title', __('Instagram accounts')) @push('extra_css') @endpush @section('content')
@include('user.user_menu') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

{{ __('Instagram accounts') }}

{{ __('Connect a Meta account to let the robot manage Instagram Business pages through the official Meta Graph API.') }}

@if($accounts->count())
@foreach($accounts as $account)
{{ $account->handle }}
@if($account->display_name)
{{ $account->display_name }}
@endif @if($account->meta_page_name)
{{ __('Meta Page') }}: {{ $account->meta_page_name }}
@endif @if($account->instagram_business_account_id)
{{ __('IG Business ID') }}: {{ $account->instagram_business_account_id }}
@endif @if($account->last_synced_at)
{{ __('Last sync') }}: {{ $account->last_synced_at->diffForHumans() }}
@endif
{{ $account->status_label }}
{{ __('View page') }} {{ __('Products') }} {{ __('Conversations') }} @if($account->isConnected())
@csrf
@endif {{ __('Edit') }}
@csrf @method('DELETE')
@endforeach
{{ $accounts->links() }} @else

{{ __('No Instagram accounts connected yet') }}

{{ __('Use Meta OAuth to connect Instagram Business accounts. Manual records cannot be controlled by the robot.') }}

{{ __('Connect with Meta') }}
@endif

{{ __('Robot capabilities after Meta connection') }}

@foreach($featurePreview as $feature)
{{ $feature['title'] }}

{{ $feature['description'] }}

@endforeach
@endsection