@extends('crm::emails.layout-non-tenant', [
    'subject' => 'Content Sync Approval Required',
])

@section('content')

    <p>
        A content sync request has been submitted for a live site and requires your approval:
    </p>

    <ul>
        <li><strong>Requester:</strong> {{ $contentSync->user->name }} ({{ $contentSync->user->email }})</li>
        <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>Reason:</strong> {{ $contentSync->approval_reason }}</li>
        <li><strong>Requested:</strong> {{ $contentSync->created_at->format('d/m/Y H:i') }}</li>
    </ul>

    <p>
        Please review this request in the admin panel under Sync Content.
    </p>

@endsection
