mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-10 09:12:15 +01:00
Added mail to inform users about still running time entries
This commit is contained in:
committed by
Constantin Graf
parent
855db81104
commit
8db0a7d25e
43
app/Mail/TimeEntryStillRunningMail.php
Normal file
43
app/Mail/TimeEntryStillRunningMail.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\Models\TimeEntry;
|
||||
use App\Models\User;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
|
||||
class TimeEntryStillRunningMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public TimeEntry $timeEntry;
|
||||
|
||||
public User $user;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(TimeEntry $timeEntry, User $user)
|
||||
{
|
||||
$this->timeEntry = $timeEntry;
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*/
|
||||
public function build(): self
|
||||
{
|
||||
return $this->markdown('emails.time-entry-still-running', [
|
||||
'dashboardUrl' => URL::route('dashboard'),
|
||||
])
|
||||
->subject(__('Your Time Tracker is still running!'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user