|
@@ -16,8 +16,11 @@ class MainController extends Controller
|
16
|
16
|
$allguestbooks = GuestBook::orderBy('created_at', 'desc')->get();
|
17
|
17
|
|
18
|
18
|
$host = $request->getHost();
|
19
|
|
-
|
20
|
|
- return view('digital-card', compact(['rsvp', 'guestbooks', 'totalPages', 'host', 'allguestbooks']));
|
|
19
|
+ if($host == 'rsvp.aliffayuna.com') {
|
|
20
|
+ return view('rsvp-close');
|
|
21
|
+ } else {
|
|
22
|
+ return view('digital-card', compact(['rsvp', 'guestbooks', 'totalPages', 'host', 'allguestbooks']));
|
|
23
|
+ }
|
21
|
24
|
}
|
22
|
25
|
|
23
|
26
|
public function saveRsvp(Request $request) {
|