{#if !isLoggedIn}

Admin Portal

{#if error}

{error}

{/if}
{:else} {#if connStatus === "checking"}

Synchronizing...

Establishing connection with Evolution API

{:else if connStatus === "login"}

Instance Manager

{#if selectedInstance}

Option 1: Scan QR

{#if qrCode} WhatsApp QR Code {:else}

Generating QR Code...

{/if}

Open WhatsApp > Linked Devices > Link a Device

Option 2: Pairing Code

{#if pairingCode}
Your Code
{pairingCode}
{/if}
{:else}

Welcome to Librarian AI

Please create a new WhatsApp instance or select an existing one from the manager to get started.

{/if}
{:else}

Messaging Dashboard

Launch WhatsApp Manager šŸš€
{#if infoMsg}

{infoMsg}

{/if}

Overdue Students Tracking

{#each overdueBooks as book} {/each}
ID NO ACC NO TITLE DUE DATE ACTION
{book.id_no} {book.acc_no} {book.title} {book.due_date}
{/if} {/if}