diff --git a/app/Http/Controllers/FeedbackController.php b/app/Http/Controllers/FeedbackController.php index 7905da1..4d95105 100644 --- a/app/Http/Controllers/FeedbackController.php +++ b/app/Http/Controllers/FeedbackController.php @@ -16,6 +16,7 @@ class FeedbackController extends Controller $message = $request->input('message'); $data = ['name' => $name,'email'=> $email,'message'=> $message, 'subject' => $subject ]; + Mail::to('jaro@ttx.sk')->send(new SendFeedbackMail($data)); return response()->json(['success' => 'Send email successfully.']); diff --git a/app/Mail/SendFeedbackMail.php b/app/Mail/SendFeedbackMail.php index ea0f894..0158ba2 100644 --- a/app/Mail/SendFeedbackMail.php +++ b/app/Mail/SendFeedbackMail.php @@ -32,6 +32,6 @@ class SendFeedbackMail extends Mailable */ public function build() { - return $this->subject('IKEA Feedback Mail')->view('mails.feedback'); + return $this->subject('IKEA Feedback Mail')->view('mails.feedback')->with(['data' => $this->data]); } } diff --git a/resources/js/Pages/IkeaRoot.vue b/resources/js/Pages/IkeaRoot.vue index a4a511c..85ff7a5 100644 --- a/resources/js/Pages/IkeaRoot.vue +++ b/resources/js/Pages/IkeaRoot.vue @@ -27,6 +27,8 @@ const sdropdown = ref([ ]); const products = ref([]); +const searchField = ref('descLong'); +const searchValue = ref(''); const countryHash = ref([]); const countryCurrency = ref({}); @@ -527,11 +529,14 @@ watch(ccodes, (codes) => {
+