Browse Source

update based on client request

master
farhan 4 months ago
parent
commit
bf3e220ec9

+ 10
- 8
app/Http/Controllers/MainController.php View File

14
         $totalPages = $guestbooks->count();
14
         $totalPages = $guestbooks->count();
15
 
15
 
16
         $host = $request->getHost();
16
         $host = $request->getHost();
17
-        if ($host == 'aliffayuna.com') {
18
-            return view('digital-card', compact(['rsvp', 'guestbooks', 'totalPages']));
19
-        } else if ($host == 'rsvp.aliffayuna.com') {
20
-            return view('rsvp-digital-card');
21
-        } else {
22
-            return view('digital-card', compact(['rsvp', 'guestbooks', 'totalPages']));
23
-            // return view('rsvp-digital-card');
24
-        }
17
+        // if ($host == 'aliffayuna.com') {
18
+        //     return view('digital-card', compact(['rsvp', 'guestbooks', 'totalPages', 'host']));
19
+        // } else if ($host == 'rsvp.aliffayuna.com') {
20
+        //     return view('rsvp-digital-card');
21
+        // } else {
22
+        //     return view('digital-card', compact(['rsvp', 'guestbooks', 'totalPages', 'host']));
23
+        //     // return view('rsvp-digital-card');
24
+        // }
25
+
26
+        return view('digital-card', compact(['rsvp', 'guestbooks', 'totalPages', 'host']));
25
     }
27
     }
26
 
28
 
27
     public function saveRsvp(Request $request) {
29
     public function saveRsvp(Request $request) {

+ 21
- 0
resources/views/components/event-info.blade.php View File

37
         <p class="font-medium text-sm text-gray-500">Kuantan, Pahang.</p>
37
         <p class="font-medium text-sm text-gray-500">Kuantan, Pahang.</p>
38
     </div>
38
     </div>
39
     <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center ">
39
     <hr class="border-t-1 border-gray-300 my-5 w-4/5 self-center ">
40
+    @if ($host == 'aliffayuna.com')
40
     <div class="text-center ">
41
     <div class="text-center ">
41
         <p class="font-medium text-gray-600 pb-2">Aturcara Majlis</p>
42
         <p class="font-medium text-gray-600 pb-2">Aturcara Majlis</p>
42
         <p class="font-medium text-sm text-gray-600">11.00 Pagi :</p>
43
         <p class="font-medium text-sm text-gray-600">11.00 Pagi :</p>
48
         <p class="font-medium text-sm text-gray-600">4.00 Petang :</p>
49
         <p class="font-medium text-sm text-gray-600">4.00 Petang :</p>
49
         <p class="font-medium text-sm text-gray-500 pb-4">Majlis Tamat</p>
50
         <p class="font-medium text-sm text-gray-500 pb-4">Majlis Tamat</p>
50
     </div>
51
     </div>
52
+    @else
53
+        {{-- tentatif baru untuk rsvp yang en aliff bagitahu --}}
54
+        {{-- <div class="text-center ">
55
+            <p class="font-medium text-gray-600 pb-2">Aturcara Majlis</p>
56
+            <p class="font-medium text-sm text-gray-600">11.00 Pagi :</p>
57
+            <p class="font-medium text-sm text-gray-500 pb-4">Majlis Bermula</p>
58
+            <p class="font-medium text-sm text-gray-600">12.00 Tengahari :</p>
59
+            <p class="font-medium text-sm text-gray-500 pb-4">Ketibaan Tetamu</p>
60
+            <p class="font-medium text-sm text-gray-600">12.15 Petang :</p>
61
+            <p class="font-medium text-sm text-gray-500 pb-4">Ketibaan Tetamu kehormat</p>
62
+            <p class="font-medium text-sm text-gray-600">12.30 Petang :</p>
63
+            <p class="font-medium text-sm text-gray-500 pb-4">Keberangkatan tiba Kebawah Duli Paduka Baginda Sultan Pahang bersama Kebawah Duli Paduka Baginda Tengku Ampuan Pahang</p>
64
+            <p class="font-medium text-sm text-gray-600">2.15 Petang :</p>
65
+            <p class="font-medium text-sm text-gray-500 pb-4">Mula Sesi Bergambar</p>
66
+            <p class="font-medium text-sm text-gray-600">4.00 Petang :</p>
67
+            <p class="font-medium text-sm text-gray-500 pb-4">Majlis Tamat</p>
68
+        </div> --}}
69
+    @endif
70
+    
71
+    
51
     {{-- <div class="flex justify-center space-x-4 py-10">
72
     {{-- <div class="flex justify-center space-x-4 py-10">
52
         <a href="https://wa.me/01133133619" target="_blank" class="flex items-center space-x-2 font-medium text-green-600">
73
         <a href="https://wa.me/01133133619" target="_blank" class="flex items-center space-x-2 font-medium text-green-600">
53
             <i class="fa-brands fa-whatsapp"></i>
74
             <i class="fa-brands fa-whatsapp"></i>

+ 25
- 2
resources/views/modals/contact-modal.blade.php View File

5
         <div class="flex justify-between">
5
         <div class="flex justify-between">
6
           <p class="font-medium text-gray-600">Ariff</p>
6
           <p class="font-medium text-gray-600">Ariff</p>
7
           <div class="flex space-x-3">
7
           <div class="flex space-x-3">
8
-            <a href="tel:+60124990504" class="flex items-center space-x-2 font-medium text-blue-900">
8
+            <a href="tel:+60192290504" class="flex items-center space-x-2 font-medium text-blue-900">
9
               <i class="fa-solid fa-phone-volume text-2xl"></i>
9
               <i class="fa-solid fa-phone-volume text-2xl"></i>
10
             </a>
10
             </a>
11
-            <a href="https://wa.me/60124990504" target="_blank" class="flex items-center space-x-2 font-medium text-green-600">
11
+            <a href="https://wa.me/60192290504" target="_blank" class="flex items-center space-x-2 font-medium text-green-600">
12
               <i class="fa-brands fa-whatsapp text-3xl"></i>
12
               <i class="fa-brands fa-whatsapp text-3xl"></i>
13
             </a>
13
             </a>
14
           </div>
14
           </div>
24
             </a>
24
             </a>
25
           </div>
25
           </div>
26
         </div>
26
         </div>
27
+        {{-- tambah 2 lagi nombor pic --}}
28
+        {{-- <div class="flex justify-between">
29
+          <p class="font-medium text-gray-600">Nama</p>
30
+          <div class="flex space-x-3">
31
+            <a href="tel:+6" class="flex items-center space-x-2 font-medium text-blue-900">//masuk no phone
32
+              <i class="fa-solid fa-phone-volume text-2xl"></i>
33
+            </a>
34
+            <a href="https://wa.me/6" target="_blank" class="flex items-center space-x-2 font-medium text-green-600">//masuk no phone
35
+              <i class="fa-brands fa-whatsapp text-3xl"></i>
36
+            </a>
37
+          </div>
38
+        </div>
39
+        <div class="flex justify-between">
40
+          <p class="font-medium text-gray-600">Nama</p>
41
+          <div class="flex space-x-3">
42
+            <a href="tel:+6" class="flex items-center space-x-2 font-medium text-blue-900">//masuk no phone
43
+              <i class="fa-solid fa-phone-volume text-2xl"></i>
44
+            </a>
45
+            <a href="https://wa.me/6" target="_blank" class="flex items-center space-x-2 font-medium text-green-600"> //masuk no phone
46
+              <i class="fa-brands fa-whatsapp text-3xl"></i>
47
+            </a>
48
+          </div>
49
+        </div> --}}
27
       </div>
50
       </div>
28
       <div class="modal-action">
51
       <div class="modal-action">
29
         <form method="dialog">
52
         <form method="dialog">

Loading…
Cancel
Save