Browse Source

close rsvp for vip

master
farhan 3 months ago
parent
commit
e726f5b6e2
2 changed files with 21 additions and 2 deletions
  1. 5
    2
      app/Http/Controllers/MainController.php
  2. 16
    0
      resources/views/rsvp-close.blade.php

+ 5
- 2
app/Http/Controllers/MainController.php View File

@@ -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) {

+ 16
- 0
resources/views/rsvp-close.blade.php View File

@@ -0,0 +1,16 @@
1
+<!DOCTYPE html>
2
+<html lang="en" data-theme="light">
3
+<head>
4
+    <meta charset="UTF-8">
5
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+    <title>{{config('app.name')}}</title>
8
+
9
+    @vite(['resources/css/app.css','resources/js/app.js'])
10
+</head>
11
+<body class="bg-babyblue">
12
+    <div class="border-2 border-navbarcolor">
13
+        <h1 class="text-navbarcolor text-xl">Sesi pendaftaran RSVP sudah tamat.</h1>
14
+    </div>
15
+</body>
16
+</html>

Loading…
Cancel
Save