<x-mail::message>
    @php $__brandName = (string) \App\Models\SystemSetting::get('app_name', config('app.name', 'WaDesk')); @endphp
    # You've been invited to {{ $workspace->name }}

    Hi {{ $invitee->name }},

    **{{ $inviter->name }}** has invited you to join the **{{ $workspace->name }}** workspace
    on {{ $__brandName }} as a **{{ ucfirst($role) }}**.

    @if ($tempPassword)
        We've created an account for you. Use the credentials below to sign in for the first time —
        once inside, you can change your password from your account settings.

        <x-mail::panel>
            **Email:** {{ $invitee->email }}<br />
            **Temporary password:** `{{ $tempPassword }}`
        </x-mail::panel>
    @else
        Your existing {{ $__brandName }} account has been added to the workspace. Sign in as usual to start
        working — {{ $workspace->name }} will appear in your workspace switcher.
    @endif

    <x-mail::button :url="$loginUrl">
        Sign in to {{ $__brandName }}
    </x-mail::button>

    If you weren't expecting this email you can ignore it — your account won't be charged and
    you don't need to take any action.

    Thanks,<br />
    The {{ $__brandName }} team
</x-mail::message>
