kjpps = $kjpps; $this->dp1 = $dp1; // Simpan keseluruhan array dp1, bukan dp1[0] $this->penawaran = $penawaran; $this->permohonan = $permohonan; $this->villages = $villages; $this->districts = $districts; $this->cities = $cities; $this->provinces = $provinces; $this->user = $user; } /** * Execute the job. */ public function handle(): void { $email = new SendPenawaranKJPPEmail( $this->dp1, $this->penawaran, $this->permohonan, $this->villages, $this->districts, $this->cities, $this->provinces, $this->user // Kirim user ke email sebagai cc dan bcc ); $email->with([ 'dp1' => $this->dp1, // Kirim seluruh array dp1 ke email 'penawaran' => $this->penawaran, 'permohonan' => $this->permohonan, 'villages' => $this->villages, '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); } }