@extends('crm::emails.layout-non-tenant', [
    'subject' => 'Live Site Access Request ' . ucfirst($status),
])

@section('content')

    <p>
        Your live site access request has been <strong>{{ $status }}</strong>.
    </p>

    <ul>
        <li><strong>Site:</strong> {{ $accessRequest->tenant?->name ?? $accessRequest->tenant_id }}</li>
        <li><strong>Actioned by:</strong> {{ $accessRequest->actionedBy->name ?? 'Unknown' }}</li>
    </ul>

    @if($status === 'approved')
        <p>
            You can now access this live site. Please note the approval is valid for <strong>1 hour</strong>
            and must be used within your current login session.
        </p>
    @endif

    @if($accessRequest->admin_notes)
        <p><strong>Notes:</strong> {{ $accessRequest->admin_notes }}</p>
    @endif

@endsection
