|
@@ -81,6 +81,8 @@ class PhysiciansController extends Controller
|
|
'g-recaptcha-response' => 'required|recaptcha'
|
|
'g-recaptcha-response' => 'required|recaptcha'
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
+ $request['form_name'] = 'physician_training_request';
|
|
|
|
+
|
|
$record = new PhysicianTrainingRequest;
|
|
$record = new PhysicianTrainingRequest;
|
|
$record->iid = $this->makeIID();
|
|
$record->iid = $this->makeIID();
|
|
$record->uid = Uuid::uuid6();
|
|
$record->uid = Uuid::uuid6();
|
|
@@ -96,6 +98,7 @@ class PhysiciansController extends Controller
|
|
$record->notes = $request->get('notes');
|
|
$record->notes = $request->get('notes');
|
|
|
|
|
|
$record->save();
|
|
$record->save();
|
|
|
|
+ $this->saveWebForm($request);
|
|
|
|
|
|
$this->sendWebsiteEmailNotification([
|
|
$this->sendWebsiteEmailNotification([
|
|
'template' => 'training-request',
|
|
'template' => 'training-request',
|
|
@@ -118,6 +121,8 @@ class PhysiciansController extends Controller
|
|
'message' => 'required|string',
|
|
'message' => 'required|string',
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
+ $request['form_name'] = 'physician_contact_message';
|
|
|
|
+
|
|
$record = new PhysicianContactMessage;
|
|
$record = new PhysicianContactMessage;
|
|
$record->iid = $this->makeIID();
|
|
$record->iid = $this->makeIID();
|
|
$record->uid = Uuid::uuid6();
|
|
$record->uid = Uuid::uuid6();
|
|
@@ -131,6 +136,8 @@ class PhysiciansController extends Controller
|
|
$record->message = $request->get('message');
|
|
$record->message = $request->get('message');
|
|
|
|
|
|
$record->save();
|
|
$record->save();
|
|
|
|
+ $this->saveWebForm($request);
|
|
|
|
+
|
|
$this->sendWebsiteEmailNotification([
|
|
$this->sendWebsiteEmailNotification([
|
|
'template' => 'physician-contact',
|
|
'template' => 'physician-contact',
|
|
'subject' => 'Hemband Physician Contact Form',
|
|
'subject' => 'Hemband Physician Contact Form',
|
|
@@ -152,6 +159,8 @@ class PhysiciansController extends Controller
|
|
'g-recaptcha-response' => 'required|recaptcha'
|
|
'g-recaptcha-response' => 'required|recaptcha'
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
+ $request['form_name'] = 'physician_directory_listing_request';
|
|
|
|
+
|
|
$record = new PhysicianDirectoryListingRequest;
|
|
$record = new PhysicianDirectoryListingRequest;
|
|
$record->iid = $this->makeIID();
|
|
$record->iid = $this->makeIID();
|
|
$record->uid = Uuid::uuid6();
|
|
$record->uid = Uuid::uuid6();
|
|
@@ -165,6 +174,8 @@ class PhysiciansController extends Controller
|
|
$record->comment = $request->get('comment');
|
|
$record->comment = $request->get('comment');
|
|
|
|
|
|
$record->save();
|
|
$record->save();
|
|
|
|
+ $this->saveWebForm($request);
|
|
|
|
+
|
|
$this->sendWebsiteEmailNotification([
|
|
$this->sendWebsiteEmailNotification([
|
|
'template' => 'physician-directory-listing-request',
|
|
'template' => 'physician-directory-listing-request',
|
|
'subject' => 'Hemband Physician Directory Listing Request Form',
|
|
'subject' => 'Hemband Physician Directory Listing Request Form',
|
|
@@ -186,6 +197,8 @@ class PhysiciansController extends Controller
|
|
'g-recaptcha-response' => 'required|recaptcha'
|
|
'g-recaptcha-response' => 'required|recaptcha'
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
+ $request['form_name'] = 'physician_marketing_materials_request';
|
|
|
|
+
|
|
$record = new PhysicianMarketingMaterialsRequest;
|
|
$record = new PhysicianMarketingMaterialsRequest;
|
|
$record->iid = $this->makeIID();
|
|
$record->iid = $this->makeIID();
|
|
$record->uid = Uuid::uuid6();
|
|
$record->uid = Uuid::uuid6();
|
|
@@ -200,6 +213,8 @@ class PhysiciansController extends Controller
|
|
$record->comment = $request->get('comment');
|
|
$record->comment = $request->get('comment');
|
|
|
|
|
|
$record->save();
|
|
$record->save();
|
|
|
|
+ $this->saveWebForm($request);
|
|
|
|
+
|
|
$this->sendWebsiteEmailNotification([
|
|
$this->sendWebsiteEmailNotification([
|
|
'template' => 'physician-marketing-materials-request',
|
|
'template' => 'physician-marketing-materials-request',
|
|
'subject' => 'Hemband Physician Marketing Materials Request Form',
|
|
'subject' => 'Hemband Physician Marketing Materials Request Form',
|
|
@@ -223,6 +238,8 @@ class PhysiciansController extends Controller
|
|
'g-recaptcha-response' => 'required|recaptcha'
|
|
'g-recaptcha-response' => 'required|recaptcha'
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
+ $request['form_name'] = 'physician_ligator_order';
|
|
|
|
+
|
|
$record = new LigatorOrder;
|
|
$record = new LigatorOrder;
|
|
$record->iid = $this->makeIID();
|
|
$record->iid = $this->makeIID();
|
|
$record->uid = Uuid::uuid6();
|
|
$record->uid = Uuid::uuid6();
|
|
@@ -245,6 +262,7 @@ class PhysiciansController extends Controller
|
|
$record->delivery_option = $request->get('delivery_option');
|
|
$record->delivery_option = $request->get('delivery_option');
|
|
$record->agrees_to_terms = $request->get('agrees_to_terms');
|
|
$record->agrees_to_terms = $request->get('agrees_to_terms');
|
|
$record->save();
|
|
$record->save();
|
|
|
|
+ $this->saveWebForm($request);
|
|
|
|
|
|
$this->sendWebsiteEmailNotification([
|
|
$this->sendWebsiteEmailNotification([
|
|
'template' => 'physician-order-ligators',
|
|
'template' => 'physician-order-ligators',
|