diff --git a/config/config.php b/config/config.php index 6042a97..3d6bd57 100755 --- a/config/config.php +++ b/config/config.php @@ -15,6 +15,13 @@ */ 'endpoint' => env('MAILTHIEF_ENDPOINT', 'emails'), + /** + * The theme which to use + * + * Supported: tailwind, bootstrap + */ + 'theme' => env('MAILTHIEF_THEME', 'tailwind'), + /** * Middleware classes to protect the inbox. */ diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index d1adf71..938fd1f 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -5,25 +5,11 @@
From: | +
+ @foreach($email->from as $from)
+ {{ data_get($from, 'name') }} {{ data_get($from, 'email') }} + @endforeach + |
+
---|---|
To: | +
+ @foreach($email->to as $recipient)
+ {{ data_get($recipient, 'name') }} {{ data_get($recipient, 'email') }} + @endforeach + |
+
Cc: | +
+ @foreach($email->cc as $cc)
+ {{ data_get($cc, 'name') }} {{ data_get($cc, 'email') }} + @endforeach + |
+
Bcc: | +
+ @foreach($email->bcc as $bcc)
+ {{ data_get($bcc, 'name') }}<{{ data_get($bcc, 'email') }}> + @endforeach + |
+
Subject: | +{{ $email->subject }} | +
Date: | +{{ $email->created_at->toDateTimeLocalString() }} | +
+ {{ $email->html }}
+
+ From: | -
- @foreach($email->from as $from)
- {{ @$from['name'] }} {{ @$from['email'] }} - @endforeach - |
-
---|---|
To: | -
- @foreach($email->to as $recipient)
- {{ @$recipient['name'] }} {{ @$recipient['email'] }} - @endforeach - |
-
Cc: | -
- @foreach($email->cc as $cc)
- {{ @$cc['name'] }} {{ @$cc['email'] }} - @endforeach - |
-
Bcc: | -
- @foreach($email->bcc as $bcc)
- {{ @$bcc['name'] }} <{{ @$bcc['email'] }}> - @endforeach - |
-
Subject: | -{{ $email->subject }} | -
Date: | -{{ $email->created_at->toDateTimeLocalString() }} | -
{{ $email->html }}
- From: | +
+ @foreach($email->from as $from)
+ {{ data_get($from, 'name') }} {{ data_get($from, 'email') }} + @endforeach + |
+
---|---|
To: | +
+ @foreach($email->to as $recipient)
+ {{ data_get($recipient, 'name') }} {{ data_get($recipient, 'email') }} + @endforeach + |
+
Cc: | +
+ @foreach($email->cc as $cc)
+ {{ data_get($cc, 'name') }} {{ data_get($cc, 'email') }} + @endforeach + |
+
Bcc: | +
+ @foreach($email->bcc as $bcc)
+ {{ data_get($bcc, 'name') }}<{{ data_get($bcc, 'email') }}> + @endforeach + |
+
Subject: | +{{ $email->subject }} | +
Date: | +{{ $email->created_at->toDateTimeLocalString() }} | +
{{ $email->html }}
+ Please select an email from the list.
+