mirror of
https://github.com/anna-sara/filament_inventory
synced 2025-10-26 20:17:14 +01:00
Added mailtemplates
This commit is contained in:
parent
66e47c85e0
commit
79d7a915af
7 changed files with 168 additions and 28 deletions
|
|
@ -45,6 +45,8 @@ class Reserve extends BasePage implements HasTable
|
|||
|
||||
protected static string $view = 'filament.pages.reserve';
|
||||
|
||||
protected static ?string $title = "Reservera spel | vBytes Inventory";
|
||||
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,10 +3,37 @@
|
|||
<head>
|
||||
<title>Reservation skapad</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Reservation skapad</h1>
|
||||
<body style="font-family: 'Poppins', Arial, sans-serif">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" style="padding: 20px;">
|
||||
<table class="content" width="600" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #cccccc;">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td class="header" style="background-color: #0080bb; padding: 20px; text-align: center; color: white; font-size: 18px;">
|
||||
<img style="height: 80px; width: auto"class=" w-auto h-full" src="/img/logo.png" alt="logo">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Body -->
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
<h1 style="margin: 0;">Reservation skapad</h1>
|
||||
<p>{{ $reservationName }} har reserverat {{ $reservationDesc }}</p>
|
||||
<p>Mail: {{ $reservationEmail }}</p>
|
||||
<p>Telefon: {{ $reservationPhone }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td class="footer" style="background-color: #0080bb; padding: 40px; text-align: center; color: white; font-size: 14px;">
|
||||
Since 2016 | vBytes
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -3,11 +3,38 @@
|
|||
<head>
|
||||
<title>Vara levererad</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Vara levererad</h1>
|
||||
<body style="font-family: 'Poppins', Arial, sans-serif">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" style="padding: 20px;">
|
||||
<table class="content" width="600" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #cccccc;">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td class="header" style="background-color: #0080bb; padding: 20px; text-align: center; color: white; font-size: 18px;">
|
||||
<img style="height: 80px; width: auto"class=" w-auto h-full" src="/img/logo.png" alt="logo">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Body -->
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
<h1 style="margin: 0;">Vara levererad</h1>
|
||||
<p>Du har fått {{ $reservationDesc }} levererad</p>
|
||||
<p>Du ska återlämna varan {{ $reservationReturnDate }}</p>
|
||||
<p>Med vänliga hälsningar</p>
|
||||
<p>vBytes</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td class="footer" style="background-color: #0080bb; padding: 40px; text-align: center; color: white; font-size: 14px;">
|
||||
Since 2016 | vBytes
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -3,11 +3,38 @@
|
|||
<head>
|
||||
<title>Reservation skapad</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Reservation skapad</h1>
|
||||
<body style="font-family: 'Poppins', Arial, sans-serif">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" style="padding: 20px;">
|
||||
<table class="content" width="600" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #cccccc;">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td class="header" style="background-color: #0080bb; padding: 20px; text-align: center; color: white; font-size: 18px;">
|
||||
<img style="height: 80px; width: auto"class=" w-auto h-full" src="/img/logo.png" alt="logo">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Body -->
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
<h1 style="margin: 0;">Reservation skapad</h1>
|
||||
<p>Du har reserverat {{ $reservationDesc }}</p>
|
||||
<p>Ansvarig på vBytes kommer att ta kontakt med dig för att bestämma tid för överlämning.</p>
|
||||
<p>Med vänliga hälsningar</p>
|
||||
<p>vBytes</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td class="footer" style="background-color: #0080bb; padding: 40px; text-align: center; color: white; font-size: 14px;">
|
||||
Since 2016 | vBytes
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -3,10 +3,37 @@
|
|||
<head>
|
||||
<title>Reservation borttagen</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Reservation borttagen</h1>
|
||||
<body style="font-family: 'Poppins', Arial, sans-serif">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" style="padding: 20px;">
|
||||
<table class="content" width="600" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #cccccc;">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td class="header" style="background-color: #0080bb; padding: 20px; text-align: center; color: white; font-size: 18px;">
|
||||
<img style="height: 80px; width: auto"class=" w-auto h-full" src="/img/logo.png" alt="logo">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Body -->
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
<h1 style="margin: 0;">Reservation borttagen</h1>
|
||||
<p>Din reserveration för {{ $reservationDesc }} har blivit borttagen</p>
|
||||
<p>Med vänliga hälsningar</p>
|
||||
<p>vBytes</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td class="footer" style="background-color: #0080bb; padding: 40px; text-align: center; color: white; font-size: 14px;">
|
||||
Since 2016 | vBytes
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -3,11 +3,38 @@
|
|||
<head>
|
||||
<title>Påminnelse om återlämning</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Påminnelse om återlämning</h1>
|
||||
<body style="font-family: 'Poppins', Arial, sans-serif">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" style="padding: 20px;">
|
||||
<table class="content" width="600" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #cccccc;">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td class="header" style="background-color: #0080bb; padding: 20px; text-align: center; color: white; font-size: 18px;">
|
||||
<img style="height: 80px; width: auto"class=" w-auto h-full" src="/img/logo.png" alt="logo">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Body -->
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
<h1 style="margin: 0;">Påminnelse om återlämning</h1>
|
||||
<p>Det är snart dags att lämna tillbaka {{ $reservationDesc }}</p>
|
||||
<p>Du ska återlämna varan {{ $reservationReturnDate }}</p>
|
||||
<p>Med vänliga hälsningar</p>
|
||||
<p>vBytes</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td class="footer" style="background-color: #0080bb; padding: 40px; text-align: center; color: white; font-size: 14px;">
|
||||
Since 2016 | vBytes
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,11 +5,14 @@ use Illuminate\Foundation\Application;
|
|||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
use App\Filament\Pages\Reserve;
|
||||
use App\Models\Reserveditem;
|
||||
|
||||
|
||||
//Route::group(['domain' => 'boka.vbytes.se'], function(){
|
||||
Route::get('/boka', Reserve::class);
|
||||
//});
|
||||
|
||||
//Route::get('/demo', function () { return new App\Mail\Delivered(Reserveditem::first()); });
|
||||
|
||||
|
||||
require __DIR__.'/auth.php';
|
||||
|
|
|
|||
Loading…
Reference in a new issue