@extends('crm::emails.layout-non-tenant', [
    'subject' => "Content Sync Request {$status}",
])

@section('content')

    <p>
        Your content sync request has been <strong>{{ strtolower($status) }}</strong>.
    </p>

    <ul>
        <li><strong>Site:</strong> {{ $contentSync->tenant->name }}</li>
        <li><strong>Direction:</strong> {{ ucfirst($contentSync->details['direction'] ?? 'Unknown') }}</li>
        @if(!empty($contentSync->details['scope']))
            <li><strong>Scope:</strong> {{ $contentSync->details['scope'] }}</li>
        @endif
        <li><strong>{{ $status }} by:</strong> {{ $contentSync->approvedByUser->name }}</li>
        @if($contentSync->approval_notes)
            <li><strong>Notes:</strong> {{ $contentSync->approval_notes }}</li>
        @endif
    </ul>

    @if($contentSync->isApproved())
        <p>
            Your sync is now active. The token is valid for {{ \App\Models\ContentSync::TTL }} minutes from the time of approval.
        </p>
    @endif

@endsection
