wip
This commit is contained in:
1 parent
b761537b98
commit
a3e369f303
7 files changed
+67
-2
No files matched your search
@@ -77,6 +77,7 @@ class MailAdressensTable
|
|||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
], layout: FiltersLayout::AboveContent)
|
], layout: FiltersLayout::AboveContent)
|
||||||
|
->persistFiltersInSession()
|
||||||
->filtersResetActionPosition(null)
|
->filtersResetActionPosition(null)
|
||||||
->hiddenFilterIndicators()
|
->hiddenFilterIndicators()
|
||||||
->deferFilters(false)
|
->deferFilters(false)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class MailGruppensTable
|
|||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('id'),
|
TextColumn::make('id'),
|
||||||
TextColumn::make('name')->label('Bezeichnung'),
|
TextColumn::make('name')->label('Betreff'),
|
||||||
TextColumn::make('absender_name')->label('Absender Name'),
|
TextColumn::make('absender_name')->label('Absender Name'),
|
||||||
TextColumn::make('absender_mail')
|
TextColumn::make('absender_mail')
|
||||||
->icon(Heroicon::Envelope)
|
->icon(Heroicon::Envelope)
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ class MailVorlagesTable
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
], layout: FiltersLayout::AboveContent)
|
], layout: FiltersLayout::AboveContent)
|
||||||
|
->persistFiltersInSession()
|
||||||
->filtersResetActionPosition(null)
|
->filtersResetActionPosition(null)
|
||||||
->hiddenFilterIndicators()
|
->hiddenFilterIndicators()
|
||||||
->deferFilters(false)
|
->deferFilters(false)
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class ProjekteResource extends Resource
|
|||||||
public static function getRelations(): array
|
public static function getRelations(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
ProjektFileImportsRelationManager::class,
|
// ProjektFileImportsRelationManager::class,
|
||||||
ProjektAllgemeinflaechensRelationManager::class,
|
ProjektAllgemeinflaechensRelationManager::class,
|
||||||
ProjektObjekteRelationManager::class,
|
ProjektObjekteRelationManager::class,
|
||||||
ProjektObjekteImDetailRelationManager::class,
|
ProjektObjekteImDetailRelationManager::class,
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class TextblocksTable
|
|||||||
return Textblock::pluck('name', 'id')->toArray();
|
return Textblock::pluck('name', 'id')->toArray();
|
||||||
}),
|
}),
|
||||||
], layout: FiltersLayout::AboveContent)
|
], layout: FiltersLayout::AboveContent)
|
||||||
|
->persistFiltersInSession()
|
||||||
->paginated(false)
|
->paginated(false)
|
||||||
->recordActions([
|
->recordActions([
|
||||||
EditAction::make()->iconButton(),
|
EditAction::make()->iconButton(),
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Mail;
|
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Mail\Mailable;
|
||||||
|
use Illuminate\Mail\Mailables\Address;
|
||||||
|
use Illuminate\Mail\Mailables\Attachment;
|
||||||
|
use Illuminate\Mail\Mailables\Content;
|
||||||
|
use Illuminate\Mail\Mailables\Envelope;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class Newsletter extends Mailable
|
||||||
|
{
|
||||||
|
use Queueable, SerializesModels;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new message instance.
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the message envelope.
|
||||||
|
*/
|
||||||
|
public function envelope($absender_email, $absender_name): Envelope
|
||||||
|
{
|
||||||
|
return new Envelope(
|
||||||
|
from: new Address($absender_email, $absender_name),
|
||||||
|
subject: 'Newsletter',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the message content definition.
|
||||||
|
*/
|
||||||
|
public function content(): Content
|
||||||
|
{
|
||||||
|
return new Content(
|
||||||
|
view: 'mail.newsletter',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the attachments for the message.
|
||||||
|
*
|
||||||
|
* @return array<int, Attachment>
|
||||||
|
*/
|
||||||
|
public function attachments(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<div style="font-family: Arial, sans-serif;">
|
||||||
|
<h2>{{ $quote->name }}</h2>
|
||||||
|
<blockquote>
|
||||||
|
"{{ $quote->absender_mail }}"
|
||||||
|
</blockquote>
|
||||||
|
<p>- {{ $quote->absender_name ?? 'Unknown' }}</p>
|
||||||
|
</div>
|
||||||
Reference in new issue
Block a user