Quellcode durchsuchen

close rsvp for vip

master
farhan vor 3 Monaten
Ursprung
Commit
e726f5b6e2
2 geänderte Dateien mit 21 neuen und 2 gelöschten Zeilen
  1. 5
    2
      app/Http/Controllers/MainController.php
  2. 16
    0
      resources/views/rsvp-close.blade.php

+ 5
- 2
app/Http/Controllers/MainController.php Datei anzeigen

@@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern