feat(tender): tambahkan informasi pengguna pada email penawaran
- Menambahkan parameter pengguna pada konstruktor SendPenawaranKJPPTenderJob. - Mengupdate pengambilan data pengguna di TenderController. - Memperbarui tampilan email untuk menampilkan tanda tangan dan nama pengguna yang benar.
This commit is contained in:
@@ -929,7 +929,8 @@ class TenderController extends Controller
|
||||
'villages' => $villages,
|
||||
'districts' => $districts,
|
||||
'cities' => $cities,
|
||||
'provinces' => $provinces
|
||||
'provinces' => $provinces,
|
||||
'user' => $this->user,
|
||||
])->render();
|
||||
|
||||
SendPenawaranKJPPTenderJob::dispatch(
|
||||
@@ -940,7 +941,8 @@ class TenderController extends Controller
|
||||
$villages,
|
||||
$districts,
|
||||
$cities,
|
||||
$provinces
|
||||
$provinces,
|
||||
$user
|
||||
);
|
||||
|
||||
try {
|
||||
|
||||
@@ -22,11 +22,12 @@ class SendPenawaranKJPPTenderJob implements ShouldQueue
|
||||
protected $districts;
|
||||
protected $cities;
|
||||
protected $provinces;
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* Create a new job instance.
|
||||
*/
|
||||
public function __construct($kjpps, $dp1, $penawaran, $permohonan, $villages, $districts, $cities, $provinces)
|
||||
public function __construct($kjpps, $dp1, $penawaran, $permohonan, $villages, $districts, $cities, $provinces, $user)
|
||||
{
|
||||
$this->kjpps = $kjpps;
|
||||
$this->dp1 = $dp1; // Simpan keseluruhan array dp1, bukan dp1[0]
|
||||
@@ -36,6 +37,7 @@ class SendPenawaranKJPPTenderJob implements ShouldQueue
|
||||
$this->districts = $districts;
|
||||
$this->cities = $cities;
|
||||
$this->provinces = $provinces;
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,7 +52,8 @@ class SendPenawaranKJPPTenderJob implements ShouldQueue
|
||||
$this->villages,
|
||||
$this->districts,
|
||||
$this->cities,
|
||||
$this->provinces
|
||||
$this->provinces,
|
||||
$this->user // Kirim user ke email sebagai cc dan bcc
|
||||
);
|
||||
|
||||
$email->with([
|
||||
@@ -61,6 +64,7 @@ class SendPenawaranKJPPTenderJob implements ShouldQueue
|
||||
'districts' => $this->districts,
|
||||
'cities' => $this->cities,
|
||||
'provinces' => $this->provinces,
|
||||
'user' => $this->user // Kirim user ke email sebagai cc dan bcc
|
||||
]);
|
||||
|
||||
$send = Mail::to($this->kjpps)->send($email);
|
||||
|
||||
@@ -165,10 +165,10 @@
|
||||
|
||||
<div class="signature">
|
||||
Best Regards,<br />
|
||||
<img src="{{ asset('storage/signatures/' . $permohonan->user->id . '/' . $permohonan->user->sign) }}"
|
||||
alt="{{ $permohonan->user->name }}" width="200">
|
||||
<img src="{{ asset('storage/signatures/' . $user->id . '/' . $user->sign) }}"
|
||||
alt="{{ $user->name }}" width="200">
|
||||
<p>
|
||||
{{ $permohonan->user->name }}
|
||||
{{ $user->name }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user