Inbox

@if(count($emails) > 0) {{ count(array_filter($emails, fn($e) => $e['isUnread'] ?? false)) }} @endif
@if($loading && count($emails) === 0)
@elseif($error)

{{ $error }}

@elseif(count($emails) === 0)

No emails found

@else @foreach($emails as $email) @if(!isset($email['error']))
{{ $email['from']['name'] ?: $email['from']['email'] }} {{ \Carbon\Carbon::parse($email['date'])->diffForHumans(null, true) }}

{{ $email['subject'] }}

{{ $email['snippet'] }}

@if(!empty($email['labelIds']))
@if(in_array('IMPORTANT', $email['labelIds'])) important @endif @if(in_array('STARRED', $email['labelIds'])) starred @endif
@endif
@endif @endforeach @if($nextPageToken)
@endif @endif