/**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create($webinar_uuid)
 {
     $smtpList = Smtp::whereEnabled(1)->get();
     $webinar = decodeWebinar($webinar_uuid);
     $data = ['webinar' => $webinar, 'smtpList' => $smtpList];
     return $this->view('partials.emails.create', $data);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($userId, $webinarUUID)
 {
     $user = Auth::user();
     $webinar = Webinar::where('uuid', '=', $webinarUUID)->with('subscribers_lists')->with('panelists')->first();
     $enabled_streaming_servers = StreamingServer::where('enabled', '=', 1)->get();
     $subscribersLists = $user->subscribers_lists()->where("webinar_id", "=", NULL)->get();
     $webinar_list = $webinar->webinar_subscriber_list()->first();
     $panelists = $webinar->panelists;
     $smtpList = Smtp::whereEnabled(1)->get();
     $emailNotifications = EmailNotification::all();
     return $this->view('partials.webinars.edit', compact('webinar', 'enabled_streaming_servers', 'panelists', 'webinar_list', 'smtpList', 'emailNotifications'));
 }