update form premium
This commit is contained in:
parent
caea0f2873
commit
6f96b18126
@ -12,16 +12,13 @@
|
|||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">📋 Data Pemesan</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">📋 Data Pemesan</h2>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||||
<input v-model="form.nama_pemesan" type="text" placeholder="Nama Pemesan"
|
<input v-model="form.nama_pemesan" type="text" placeholder="Nama Pemesan" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.email" type="email" placeholder="Email"
|
<input v-model="form.email" type="email" placeholder="Email" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.no_tlpn" type="text" placeholder="No Telepon"
|
<input v-model="form.no_tlpn" type="text" placeholder="No Telepon" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
</div>
|
</div>
|
||||||
@ -31,32 +28,25 @@
|
|||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🧒 Data Anak</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🧒 Data Anak</h2>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
<input v-model="form.form.nama_lengkap" placeholder="Nama Lengkap"
|
<input v-model="form.form.nama_lengkap" placeholder="Nama Lengkap" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.nama_panggilan" placeholder="Nama Panggilan"
|
<input v-model="form.form.nama_panggilan" placeholder="Nama Panggilan" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.nama_bapak" placeholder="Nama Bapak"
|
<input v-model="form.form.nama_bapak" placeholder="Nama Bapak" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.nama_ibu" placeholder="Nama Ibu"
|
<input v-model="form.form.nama_ibu" placeholder="Nama Ibu" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.link_instagram" placeholder="Link Instagram"
|
<input v-model="form.form.link_instagram" placeholder="Link Instagram" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.link_facebook" placeholder="Link Facebook"
|
<input v-model="form.form.link_facebook" placeholder="Link Facebook" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.link_twitter" placeholder="Link Twitter"
|
<input v-model="form.form.link_twitter" placeholder="Link Twitter" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
</div>
|
</div>
|
||||||
@ -65,62 +55,103 @@
|
|||||||
<!-- Acara Khitan -->
|
<!-- Acara Khitan -->
|
||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🎉 Acara Khitan</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🎉 Acara Khitan</h2>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
||||||
<input v-model="form.form.hari_tanggal_acara" type="date" placeholder="Hari & Tanggal Acara"
|
<!-- Grid dua kolom untuk tanggal & waktu -->
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
<!-- Hari & Tanggal Acara -->
|
||||||
outline-none transition" />
|
<div>
|
||||||
<input v-model="form.form.waktu" placeholder="Waktu Acara"
|
<label class="block font-medium text-gray-700 mb-2">
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
Hari & Tanggal Acara
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
</label>
|
||||||
outline-none transition" />
|
<input v-model="form.form.hari_tanggal_acara" type="date" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
|
outline-none transition duration-200" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Waktu Acara -->
|
||||||
|
<div>
|
||||||
|
<label class="block font-medium text-gray-700 mb-2">
|
||||||
|
Waktu Acara
|
||||||
|
</label>
|
||||||
|
<input v-model="form.form.waktu" type="time" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
|
outline-none transition duration-200" />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Alamat Acara -->
|
||||||
|
<div class="mt-6">
|
||||||
|
<label class="block font-medium text-gray-700 mb-2">
|
||||||
|
Alamat Acara
|
||||||
|
</label>
|
||||||
|
<textarea v-model="form.form.alamat" rows="3" placeholder="Tulis alamat lengkap acara" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
|
outline-none transition resize-none"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Link Gmaps -->
|
||||||
|
<div class="mt-4">
|
||||||
|
<label class="block font-medium text-gray-700 mb-2">
|
||||||
|
Link Google Maps
|
||||||
|
</label>
|
||||||
|
<input v-model="form.form.link_gmaps" type="url" placeholder="https://maps.google.com/..." class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
|
outline-none transition duration-200" />
|
||||||
</div>
|
</div>
|
||||||
<textarea v-model="form.form.alamat" rows="3" placeholder="Alamat Acara"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
|
||||||
outline-none transition resize-none"></textarea>
|
|
||||||
<input v-model="form.form.link_gmaps" placeholder="Link Gmaps"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
|
||||||
outline-none transition" />
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<!-- Syukuran -->
|
<!-- Syukuran -->
|
||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🍽️ Acara Syukuran</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🍽️ Acara Syukuran</h2>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
<input v-model="form.form.hari_tanggal_syukuran" type="date" placeholder="Hari & Tanggal Syukuran"
|
<input v-model="form.form.hari_tanggal_syukuran" type="date" placeholder="Hari & Tanggal Syukuran" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
|
||||||
outline-none transition" />
|
|
||||||
<input v-model="form.form.waktu_syukuran" placeholder="Waktu Syukuran"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
|
|
||||||
|
<input v-model="form.form.waktu_syukuran" type="time" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
|
outline-none transition duration-200" />
|
||||||
</div>
|
</div>
|
||||||
<textarea v-model="form.form.alamat_syukuran" rows="3" placeholder="Alamat Syukuran"
|
<textarea v-model="form.form.alamat_syukuran" rows="3" placeholder="Alamat Syukuran" class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition resize-none"></textarea>
|
outline-none transition resize-none"></textarea>
|
||||||
<input v-model="form.form.link_gmaps_syukuran" placeholder="Link Gmaps Syukuran"
|
<input v-model="form.form.link_gmaps_syukuran" placeholder="Link Gmaps Syukuran" class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
|
|
||||||
|
<!-- Hitung Mundur -->
|
||||||
|
<div>
|
||||||
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🍽️ Hitung Mundur</h2>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||||
|
<!-- Mulai -->
|
||||||
|
<div>
|
||||||
|
<label class="block text-gray-600 text-sm mb-1">Mulai dari</label>
|
||||||
|
<input v-model="form.form.hitung_mundur_mulai" type="datetime-local"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Sampai -->
|
||||||
|
<div>
|
||||||
|
<label class="block text-gray-600 text-sm mb-1">Sampai dengan</label>
|
||||||
|
<input v-model="form.form.hitung_mundur_selesai" type="datetime-local"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Lainnya -->
|
<!-- Lainnya -->
|
||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🕒 Informasi Tambahan</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🕒 Informasi Tambahan</h2>
|
||||||
<input v-model="form.form.hitung_mundur" type="datetime-local" placeholder="Hitung Mundur Acara"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 mb-2
|
<input v-model="form.form.link_live_streaming" placeholder="Link Live Streaming" class="w-full border border-gray-300 rounded-lg px-3 py-2 mb-2
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.link_live_streaming" placeholder="Link Live Streaming"
|
<textarea v-model="form.form.say_something" rows="3" placeholder="Say Something..." class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 mb-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
|
||||||
outline-none transition" />
|
|
||||||
<textarea v-model="form.form.say_something" rows="3" placeholder="Say Something..."
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition resize-none"></textarea>
|
outline-none transition resize-none"></textarea>
|
||||||
</section>
|
</section>
|
||||||
@ -129,37 +160,31 @@
|
|||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💳 Rekening</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💳 Rekening</h2>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||||
<input v-model="form.form.rekening_1" placeholder="Rekening 1"
|
<input v-model="form.form.rekening_1" placeholder="Rekening 1" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.rekening_2" placeholder="Rekening 2"
|
<input v-model="form.form.rekening_2" placeholder="Rekening 2" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
<input v-model="form.form.rekening_3" placeholder="Rekening 3"
|
<input v-model="form.form.rekening_3" placeholder="Rekening 3" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Musik -->
|
<!-- Musik -->
|
||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🎵 Musik</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🎵 Musik</h2>
|
||||||
<input v-model="form.form.link_music" placeholder="Link Music (opsional)"
|
<input v-model="form.form.link_music" placeholder="Link Music (opsional)" class="w-full border border-gray-300 rounded-lg px-3 py-2
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2
|
|
||||||
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
focus:ring-2 focus:ring-blue-400 focus:border-blue-400
|
||||||
outline-none transition" />
|
outline-none transition" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Foto Upload -->
|
<!-- Foto Upload -->
|
||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🖼️ Galeri Foto</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🖼️ Galeri Foto</h2>
|
||||||
<div
|
<div class="border-2 border-dashed border-gray-300 rounded-xl p-8 flex flex-col justify-center items-center
|
||||||
class="border-2 border-dashed border-gray-300 rounded-xl p-8 flex flex-col justify-center items-center
|
text-gray-400 hover:border-blue-400 hover:text-blue-500 transition">
|
||||||
text-gray-400 hover:border-blue-400 hover:text-blue-500 transition"
|
|
||||||
>
|
|
||||||
<input id="gallery" type="file" multiple accept="image/*" class="hidden" @change="handleFileChange" />
|
<input id="gallery" type="file" multiple accept="image/*" class="hidden" @change="handleFileChange" />
|
||||||
<label v-if="!previews.length" for="gallery" class="cursor-pointer flex flex-col items-center">
|
<label v-if="!previews.length" for="gallery" class="cursor-pointer flex flex-col items-center">
|
||||||
<span class="text-4xl font-bold">+</span>
|
<span class="text-4xl font-bold">+</span>
|
||||||
@ -168,17 +193,13 @@
|
|||||||
<div v-else class="grid grid-cols-3 sm:grid-cols-4 gap-4">
|
<div v-else class="grid grid-cols-3 sm:grid-cols-4 gap-4">
|
||||||
<div v-for="(src, i) in previews" :key="i" class="relative group">
|
<div v-for="(src, i) in previews" :key="i" class="relative group">
|
||||||
<img :src="src" class="w-24 h-24 object-cover rounded-lg border shadow" />
|
<img :src="src" class="w-24 h-24 object-cover rounded-lg border shadow" />
|
||||||
<button
|
<button @click="removeFile(i)" class="absolute -top-2 -right-2 bg-red-500 text-white rounded-full w-5 h-5
|
||||||
@click="removeFile(i)"
|
|
||||||
class="absolute -top-2 -right-2 bg-red-500 text-white rounded-full w-5 h-5
|
|
||||||
flex items-center justify-center text-xs opacity-0 group-hover:opacity-100 transition"
|
flex items-center justify-center text-xs opacity-0 group-hover:opacity-100 transition"
|
||||||
title="Hapus foto"
|
title="Hapus foto">
|
||||||
>
|
|
||||||
✕
|
✕
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<label v-if="previews.length < 8" for="gallery"
|
<label v-if="previews.length < 8" for="gallery" class="cursor-pointer flex flex-col items-center justify-center w-24 h-24
|
||||||
class="cursor-pointer flex flex-col items-center justify-center w-24 h-24
|
|
||||||
border-2 border-dashed border-gray-300 rounded-lg text-gray-400
|
border-2 border-dashed border-gray-300 rounded-lg text-gray-400
|
||||||
hover:border-blue-400 hover:text-blue-500 transition">
|
hover:border-blue-400 hover:text-blue-500 transition">
|
||||||
<span class="text-3xl font-bold">+</span>
|
<span class="text-3xl font-bold">+</span>
|
||||||
@ -190,12 +211,10 @@
|
|||||||
|
|
||||||
<!-- Tombol -->
|
<!-- Tombol -->
|
||||||
<div class="text-end mt-6">
|
<div class="text-end mt-6">
|
||||||
<button @click="batal"
|
<button @click="batal" class="bg-gray-600 text-white font-semibold px-6 py-2 rounded-lg transition mr-2">
|
||||||
class="bg-gray-600 text-white font-semibold px-6 py-2 rounded-lg transition mr-2">
|
|
||||||
Batal
|
Batal
|
||||||
</button>
|
</button>
|
||||||
<button @click="konfirmasi"
|
<button @click="konfirmasi" class="bg-blue-700 text-white font-semibold px-6 py-2 rounded-lg transition">
|
||||||
class="bg-blue-700 text-white font-semibold px-6 py-2 rounded-lg transition">
|
|
||||||
Konfirmasi
|
Konfirmasi
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -206,30 +225,31 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
import Swal from 'sweetalert2'
|
||||||
|
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
|
// ✅ State utama form
|
||||||
const form = ref({
|
const form = ref({
|
||||||
nama_pemesan: '',
|
nama_pemesan: '',
|
||||||
email: '',
|
email: '',
|
||||||
no_tlpn: '',
|
no_tlpn: '',
|
||||||
form: {
|
form: {
|
||||||
nama_lengkap: '',
|
nama_anak: '',
|
||||||
nama_panggilan: '',
|
nama_panggilan: '',
|
||||||
nama_bapak: '',
|
nama_bapak: '',
|
||||||
nama_ibu: '',
|
nama_ibu: '',
|
||||||
link_instagram: '',
|
tanggal_acara: '',
|
||||||
link_facebook: '',
|
waktu_acara: '',
|
||||||
link_twitter: '',
|
alamat_acara: '',
|
||||||
hari_tanggal_acara: '',
|
link_gmaps_acara: '',
|
||||||
waktu: '',
|
tanggal_syukuran: '',
|
||||||
alamat: '',
|
|
||||||
link_gmaps: '',
|
|
||||||
hari_tanggal_syukuran: '',
|
|
||||||
waktu_syukuran: '',
|
waktu_syukuran: '',
|
||||||
alamat_syukuran: '',
|
alamat_syukuran: '',
|
||||||
link_gmaps_syukuran: '',
|
link_gmaps_syukuran: '',
|
||||||
hitung_mundur: '',
|
hitung_mundur_mulai: '',
|
||||||
|
hitung_mundur_selesai: '',
|
||||||
link_live_streaming: '',
|
link_live_streaming: '',
|
||||||
say_something: '',
|
say_something: '',
|
||||||
rekening_1: '',
|
rekening_1: '',
|
||||||
@ -240,53 +260,75 @@ const form = ref({
|
|||||||
foto: []
|
foto: []
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// ✅ Preview foto
|
||||||
const previews = ref([])
|
const previews = ref([])
|
||||||
|
|
||||||
|
// ✅ Upload file
|
||||||
const handleFileChange = (e) => {
|
const handleFileChange = (e) => {
|
||||||
const files = Array.from(e.target.files)
|
const files = Array.from(e.target.files)
|
||||||
const totalFiles = form.value.foto.length + files.length
|
const totalFiles = form.value.foto.length + files.length
|
||||||
|
|
||||||
if (totalFiles > 8) {
|
if (totalFiles > 8) {
|
||||||
alert('Maksimal 8 foto!')
|
Swal.fire('Maksimal 8 foto!', '', 'warning')
|
||||||
e.target.value = ''
|
e.target.value = ''
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
files.forEach(file => {
|
files.forEach(file => {
|
||||||
if (file.size > 2 * 1024 * 1024) {
|
if (file.size > 2 * 1024 * 1024) {
|
||||||
alert(`File ${file.name} terlalu besar! Maksimal 2MB.`)
|
Swal.fire(`File ${file.name} terlalu besar (maks. 2MB)!`, '', 'error')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!['image/jpeg', 'image/png', 'image/jpg'].includes(file.type)) {
|
if (!['image/jpeg', 'image/png', 'image/jpg'].includes(file.type)) {
|
||||||
alert(`File ${file.name} harus berupa JPEG atau PNG!`)
|
Swal.fire(`File ${file.name} harus berupa JPEG atau PNG!`, '', 'error')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
form.value.foto.push(file)
|
form.value.foto.push(file)
|
||||||
previews.value.push(URL.createObjectURL(file))
|
previews.value.push(URL.createObjectURL(file))
|
||||||
})
|
})
|
||||||
|
|
||||||
e.target.value = ''
|
e.target.value = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ✅ Hapus file
|
||||||
const removeFile = (index) => {
|
const removeFile = (index) => {
|
||||||
form.value.foto.splice(index, 1)
|
form.value.foto.splice(index, 1)
|
||||||
previews.value.splice(index, 1)
|
previews.value.splice(index, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ✅ Simpan data dan kirim ke WhatsApp admin
|
||||||
const konfirmasi = async () => {
|
const konfirmasi = async () => {
|
||||||
try {
|
if (!form.value.nama_pemesan || !form.value.email) {
|
||||||
if (!form.value.nama_pemesan || !form.value.email) {
|
Swal.fire('Lengkapi semua kolom wajib!', '', 'warning')
|
||||||
alert('Harap isi semua kolom wajib!')
|
return
|
||||||
return
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
const confirm = await Swal.fire({
|
||||||
|
title: 'Simpan Data?',
|
||||||
|
text: 'Pastikan data sudah benar sebelum dikirim.',
|
||||||
|
icon: 'question',
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: '#2563eb',
|
||||||
|
cancelButtonColor: '#d33',
|
||||||
|
confirmButtonText: 'Ya, Simpan',
|
||||||
|
cancelButtonText: 'Batal'
|
||||||
|
})
|
||||||
|
|
||||||
|
if (!confirm.isConfirmed) return
|
||||||
|
|
||||||
|
try {
|
||||||
const data = new FormData()
|
const data = new FormData()
|
||||||
data.append('nama_pemesan', form.value.nama_pemesan)
|
data.append('nama_pemesan', form.value.nama_pemesan)
|
||||||
data.append('email', form.value.email)
|
data.append('email', form.value.email)
|
||||||
data.append('no_tlpn', form.value.no_tlpn)
|
data.append('no_tlpn', form.value.no_tlpn)
|
||||||
data.append('template_slug', 'undangan-khitan-premium')
|
data.append('template_slug', 'undangan-khitan-premium')
|
||||||
|
|
||||||
|
// Tambah field form anak
|
||||||
for (const [key, value] of Object.entries(form.value.form)) {
|
for (const [key, value] of Object.entries(form.value.form)) {
|
||||||
data.append(`form[${key}]`, value)
|
data.append(`form[${key}]`, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tambah foto
|
||||||
form.value.foto.forEach((file, index) => {
|
form.value.foto.forEach((file, index) => {
|
||||||
data.append(`foto[${index}]`, file)
|
data.append(`foto[${index}]`, file)
|
||||||
})
|
})
|
||||||
@ -295,20 +337,92 @@ const konfirmasi = async () => {
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: data
|
body: data
|
||||||
})
|
})
|
||||||
|
|
||||||
const result = await res.json()
|
const result = await res.json()
|
||||||
|
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
if (res.status === 422) throw new Error(Object.values(result.errors).flat().join('\n'))
|
if (res.status === 422) {
|
||||||
|
throw new Error(Object.values(result.errors).flat().join('\n'))
|
||||||
|
}
|
||||||
throw new Error(result.message || 'Gagal mengirim data')
|
throw new Error(result.message || 'Gagal mengirim data')
|
||||||
}
|
}
|
||||||
|
|
||||||
alert(result.message || 'Data berhasil disimpan!')
|
await Swal.fire({
|
||||||
|
title: 'Berhasil!',
|
||||||
|
text: result.message || 'Data berhasil disimpan!',
|
||||||
|
icon: 'success',
|
||||||
|
confirmButtonColor: '#16a34a'
|
||||||
|
})
|
||||||
|
|
||||||
|
// ✅ Kirim ke WhatsApp admin
|
||||||
|
const adminNumber = '62895333053398'
|
||||||
|
const pesan = `
|
||||||
|
Halo Admin 👋
|
||||||
|
Ada pesanan baru untuk *Undangan Khitan Premium* 🎉
|
||||||
|
|
||||||
|
🧾 *Data Pemesan*
|
||||||
|
- Nama: ${form.value.nama_pemesan}
|
||||||
|
- Email: ${form.value.email}
|
||||||
|
- No. Telepon: ${form.value.no_tlpn}
|
||||||
|
|
||||||
|
🧒 *Data Anak*
|
||||||
|
- Nama Lengkap: ${form.value.form.nama_lengkap || '-'}
|
||||||
|
- Nama Panggilan: ${form.value.form.nama_panggilan || '-'}
|
||||||
|
- Bapak: ${form.value.form.nama_bapak || '-'}
|
||||||
|
- Ibu: ${form.value.form.nama_ibu || '-'}
|
||||||
|
|
||||||
|
🎉 *Acara Khitan*
|
||||||
|
- Tanggal: ${form.value.form.hari_tanggal_acara || '-'}
|
||||||
|
- Waktu: ${form.value.form.waktu || '-'}
|
||||||
|
- Alamat: ${form.value.form.alamat || '-'}
|
||||||
|
- Gmaps: ${form.value.form.link_gmaps || '-'}
|
||||||
|
|
||||||
|
🍽️ *Syukuran*
|
||||||
|
- Tanggal: ${form.value.form.hari_tanggal_syukuran || '-'}
|
||||||
|
- Waktu: ${form.value.form.waktu_syukuran || '-'}
|
||||||
|
- Alamat: ${form.value.form.alamat_syukuran || '-'}
|
||||||
|
- Gmaps: ${form.value.form.link_gmaps_syukuran || '-'}
|
||||||
|
|
||||||
|
🕒 *Hitung Mundur*
|
||||||
|
- Mulai: ${form.value.form.hitung_mundur_mulai || '-'}
|
||||||
|
- Selesai: ${form.value.form.hitung_mundur_selesai || '-'}
|
||||||
|
|
||||||
|
💬 *Say Something:*
|
||||||
|
${form.value.form.say_something || '-'}
|
||||||
|
|
||||||
|
💳 *Rekening:*
|
||||||
|
${form.value.form.rekening_1 || '-'}
|
||||||
|
${form.value.form.rekening_2 || '-'}
|
||||||
|
${form.value.form.rekening_3 || '-'}
|
||||||
|
|
||||||
|
🎵 *Musik:* ${form.value.form.link_music || '-'}
|
||||||
|
📺 *Live Streaming:* ${form.value.form.link_live_streaming || '-'}
|
||||||
|
|
||||||
|
Terima kasih 🙏
|
||||||
|
`
|
||||||
|
|
||||||
|
const waUrl = `https://wa.me/${adminNumber}?text=${encodeURIComponent(pesan)}`
|
||||||
|
window.open(waUrl, '_blank')
|
||||||
|
|
||||||
router.push('/')
|
router.push('/')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
alert('Terjadi kesalahan: ' + err.message)
|
Swal.fire('Gagal!', err.message || 'Terjadi kesalahan saat menyimpan.', 'error')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const batal = () => router.back()
|
|
||||||
|
const batal = () => {
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Batalkan?',
|
||||||
|
text: 'Perubahan yang belum disimpan akan hilang.',
|
||||||
|
icon: 'warning',
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: '#d33',
|
||||||
|
cancelButtonColor: '#6b7280',
|
||||||
|
confirmButtonText: 'Ya, Batalkan'
|
||||||
|
}).then(result => {
|
||||||
|
if (result.isConfirmed) router.back()
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,491 +1,381 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="min-h-screen bg-gray-50 py-10 px-6">
|
<div class="min-h-screen bg-gray-50 py-10 px-6">
|
||||||
<div class="max-w-5xl mx-auto bg-white rounded-2xl shadow-lg p-8">
|
<div class="max-w-5xl mx-auto bg-white rounded-2xl shadow-lg p-8">
|
||||||
<h1 class="text-2xl font-bold text-center text-gray-800">
|
<h1 class="text-2xl font-bold text-center text-gray-800">
|
||||||
Form Undangan Pernikahan Premium
|
Form Undangan Pernikahan Premium
|
||||||
</h1>
|
</h1>
|
||||||
<p class="text-center text-gray-500 text-sm mb-8">
|
<p class="text-center text-gray-500 text-sm mb-8">
|
||||||
Isi semua data berikut dengan lengkap dan benar.
|
Isi semua data berikut dengan lengkap dan benar.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- Data Pemesan -->
|
<!-- Data Pemesan -->
|
||||||
<section class="mb-8">
|
<section class="mb-8">
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">📋 Data Pemesan</h2>
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">📋 Data Pemesan</h2>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||||
<input
|
<input v-model="form.nama_pemesan" type="text" placeholder="Nama Pemesan" required
|
||||||
v-model="form.nama_pemesan"
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
type="text"
|
<input v-model="form.email" type="email" placeholder="Email" required
|
||||||
placeholder="Nama Pemesan"
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
required
|
<input v-model="form.no_tlpn" type="text" placeholder="No Telepon"
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.email"
|
|
||||||
type="email"
|
|
||||||
placeholder="Email"
|
|
||||||
required
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.no_tlpn"
|
|
||||||
type="text"
|
|
||||||
placeholder="No Telepon"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Data Mempelai -->
|
|
||||||
<section class="mb-8">
|
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💍 Data Mempelai</h2>
|
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
||||||
<!-- Mempelai Pria -->
|
|
||||||
<div>
|
|
||||||
<h3 class="font-medium text-gray-700 mb-2">Mempelai Pria</h3>
|
|
||||||
<div class="grid gap-2">
|
|
||||||
<input
|
|
||||||
v-model="form.form.nama_lengkap_pria"
|
|
||||||
placeholder="Nama Lengkap"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.nama_panggilan_pria"
|
|
||||||
placeholder="Nama Panggilan"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.nama_bapak_pria"
|
|
||||||
placeholder="Nama Bapak"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.nama_ibu_pria"
|
|
||||||
placeholder="Nama Ibu"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_instagram_pria"
|
|
||||||
placeholder="Link Instagram"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_facebook_pria"
|
|
||||||
placeholder="Link Facebook"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_twitter_pria"
|
|
||||||
placeholder="Link Twitter"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Mempelai Wanita -->
|
|
||||||
<div>
|
|
||||||
<h3 class="font-medium text-gray-700 mb-2">Mempelai Wanita</h3>
|
|
||||||
<div class="grid gap-2">
|
|
||||||
<input
|
|
||||||
v-model="form.form.nama_lengkap_wanita"
|
|
||||||
placeholder="Nama Lengkap"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.nama_panggilan_wanita"
|
|
||||||
placeholder="Nama Panggilan"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.nama_bapak_wanita"
|
|
||||||
placeholder="Nama Bapak"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.nama_ibu_wanita"
|
|
||||||
placeholder="Nama Ibu"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_instagram_wanita"
|
|
||||||
placeholder="Link Instagram"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_facebook_wanita"
|
|
||||||
placeholder="Link Facebook"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_twitter_wanita"
|
|
||||||
placeholder="Link Twitter"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Detail Acara -->
|
|
||||||
<section class="mb-8">
|
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">📅 Detail Acara</h2>
|
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
||||||
<!-- Akad -->
|
|
||||||
<div>
|
|
||||||
<h3 class="font-medium text-gray-700 mb-2">Akad</h3>
|
|
||||||
<div class="grid gap-2">
|
|
||||||
<input
|
|
||||||
v-model="form.form.hari_tanggal_akad"
|
|
||||||
type="date"
|
|
||||||
placeholder="Hari & Tanggal Akad"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.waktu_akad"
|
|
||||||
type="time"
|
|
||||||
placeholder="Waktu Akad"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<textarea
|
|
||||||
v-model="form.form.alamat_akad"
|
|
||||||
rows="3"
|
|
||||||
placeholder="Alamat Akad"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"
|
|
||||||
></textarea>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_gmaps_akad"
|
|
||||||
type="text"
|
|
||||||
placeholder="Link Google Maps Akad"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Resepsi -->
|
|
||||||
<div>
|
|
||||||
<h3 class="font-medium text-gray-700 mb-2">Resepsi</h3>
|
|
||||||
<div class="grid gap-2">
|
|
||||||
<input
|
|
||||||
v-model="form.form.hari_tanggal_resepsi"
|
|
||||||
type="date"
|
|
||||||
placeholder="Hari & Tanggal Resepsi"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.waktu_resepsi"
|
|
||||||
type="time"
|
|
||||||
placeholder="Waktu Resepsi"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<textarea
|
|
||||||
v-model="form.form.alamat_resepsi"
|
|
||||||
rows="3"
|
|
||||||
placeholder="Alamat Resepsi"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"
|
|
||||||
></textarea>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_gmaps_resepsi"
|
|
||||||
type="text"
|
|
||||||
placeholder="Link Google Maps Resepsi"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Syukuran -->
|
|
||||||
<div>
|
|
||||||
<h3 class="font-medium text-gray-700 mb-2">Syukuran</h3>
|
|
||||||
<div class="grid gap-2">
|
|
||||||
<input
|
|
||||||
v-model="form.form.hari_tanggal_syukuran"
|
|
||||||
type="date"
|
|
||||||
placeholder="Hari & Tanggal Syukuran"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.waktu_syukuran"
|
|
||||||
type="time"
|
|
||||||
placeholder="Waktu Syukuran"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<textarea
|
|
||||||
v-model="form.form.alamat_syukuran"
|
|
||||||
rows="3"
|
|
||||||
placeholder="Alamat Syukuran"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"
|
|
||||||
></textarea>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_gmaps_syukuran"
|
|
||||||
type="text"
|
|
||||||
placeholder="Link Google Maps Syukuran"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Hitung Mundur -->
|
|
||||||
<div>
|
|
||||||
<h3 class="font-medium text-gray-700 mb-2">Hitung Mundur</h3>
|
|
||||||
<input
|
|
||||||
v-model="form.form.hitung_mundur"
|
|
||||||
type="datetime-local"
|
|
||||||
placeholder="Hitung Mundur Waktu Acara"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Cerita Kita -->
|
|
||||||
<section class="mb-8">
|
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💌 Cerita Kita</h2>
|
|
||||||
<textarea
|
|
||||||
v-model="form.form.cerita_kita"
|
|
||||||
rows="4"
|
|
||||||
placeholder="Ceritakan kisah kalian..."
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"
|
|
||||||
></textarea>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Say Something -->
|
|
||||||
<section class="mb-8">
|
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💬 Say Something</h2>
|
|
||||||
<textarea
|
|
||||||
v-model="form.form.say_something"
|
|
||||||
rows="4"
|
|
||||||
placeholder="Kata-kata spesial atau pesan untuk tamu..."
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"
|
|
||||||
></textarea>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Rekening & Musik -->
|
|
||||||
<section class="mb-8">
|
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💳 Rekening & Musik</h2>
|
|
||||||
<div class="grid md:grid-cols-3 gap-4">
|
|
||||||
<input
|
|
||||||
v-model="form.form.rekening_1"
|
|
||||||
placeholder="Rekening 1"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.rekening_2"
|
|
||||||
placeholder="Rekening 2"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.rekening_3"
|
|
||||||
placeholder="Rekening 3"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_music"
|
|
||||||
placeholder="Link Music (opsional)"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-4 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
<input
|
|
||||||
v-model="form.form.link_live_streaming"
|
|
||||||
placeholder="Link Live Streaming (opsional)"
|
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-4 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition"
|
|
||||||
/>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Foto Upload -->
|
|
||||||
<section class="mb-8">
|
|
||||||
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🖼️ Galeri Foto</h2>
|
|
||||||
<div
|
|
||||||
class="border-2 border-dashed border-gray-300 rounded-xl p-8 flex flex-col justify-center items-center text-gray-400 hover:border-blue-400 hover:text-blue-500 transition"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
id="gallery"
|
|
||||||
type="file"
|
|
||||||
multiple
|
|
||||||
accept="image/*"
|
|
||||||
class="hidden"
|
|
||||||
@change="handleFileChange"
|
|
||||||
/>
|
|
||||||
<label v-if="!previews.length" for="gallery" class="cursor-pointer flex flex-col items-center">
|
|
||||||
<span class="text-4xl font-bold">+</span>
|
|
||||||
<span class="text-sm mt-2">Pilih Foto (maks. 8, JPEG/PNG, maks. 2MB)</span>
|
|
||||||
</label>
|
|
||||||
<div v-else class="grid grid-cols-3 sm:grid-cols-4 gap-4">
|
|
||||||
<div
|
|
||||||
v-for="(src, i) in previews"
|
|
||||||
:key="i"
|
|
||||||
class="relative group"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
:src="src"
|
|
||||||
class="w-24 h-24 object-cover rounded-lg border shadow"
|
|
||||||
/>
|
|
||||||
<button
|
|
||||||
@click="removeFile(i)"
|
|
||||||
class="absolute -top-2 -right-2 bg-red-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs opacity-0 group-hover:opacity-100 transition"
|
|
||||||
title="Hapus foto"
|
|
||||||
>
|
|
||||||
✕
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<label
|
|
||||||
v-if="previews.length < 8"
|
|
||||||
for="gallery"
|
|
||||||
class="cursor-pointer flex flex-col items-center justify-center w-24 h-24 border-2 border-dashed border-gray-300 rounded-lg text-gray-400 hover:border-blue-400 hover:text-blue-500 transition"
|
|
||||||
>
|
|
||||||
<span class="text-3xl font-bold">+</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Tombol -->
|
|
||||||
<div class="text-end mt-6">
|
|
||||||
<button
|
|
||||||
@click="batal"
|
|
||||||
class="bg-gray-600 text-white font-semibold px-6 py-2 rounded-lg transition mr-2"
|
|
||||||
>
|
|
||||||
Batal
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
@click="konfirmasi"
|
|
||||||
class="bg-blue-700 text-white font-semibold px-6 py-2 rounded-lg transition"
|
|
||||||
>
|
|
||||||
Konfirmasi
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Data Mempelai -->
|
||||||
|
<section class="mb-8">
|
||||||
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💍 Data Mempelai</h2>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
|
<!-- Mempelai Pria -->
|
||||||
|
<div>
|
||||||
|
<h3 class="font-medium text-gray-700 mb-2">Mempelai Pria</h3>
|
||||||
|
<div class="grid gap-2">
|
||||||
|
<input v-model="form.form.nama_lengkap_pria" placeholder="Nama Lengkap"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.nama_panggilan_pria" placeholder="Nama Panggilan"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.nama_bapak_pria" placeholder="Nama Bapak"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.nama_ibu_pria" placeholder="Nama Ibu"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.link_instagram_pria" placeholder="Link Instagram"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.link_facebook_pria" placeholder="Link Facebook"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.link_twitter_pria" placeholder="Link Twitter"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Mempelai Wanita -->
|
||||||
|
<div>
|
||||||
|
<h3 class="font-medium text-gray-700 mb-2">Mempelai Wanita</h3>
|
||||||
|
<div class="grid gap-2">
|
||||||
|
<input v-model="form.form.nama_lengkap_wanita" placeholder="Nama Lengkap"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.nama_panggilan_wanita" placeholder="Nama Panggilan"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.nama_bapak_wanita" placeholder="Nama Bapak"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.nama_ibu_wanita" placeholder="Nama Ibu"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.link_instagram_wanita" placeholder="Link Instagram"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.link_facebook_wanita" placeholder="Link Facebook"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.link_twitter_wanita" placeholder="Link Twitter"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-pink-400 focus:border-pink-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Detail Acara -->
|
||||||
|
<section class="mb-8">
|
||||||
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">📅 Detail Acara</h2>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
|
<!-- Akad -->
|
||||||
|
<div>
|
||||||
|
<h3 class="font-medium text-gray-700 mb-2">Akad</h3>
|
||||||
|
<div class="grid gap-2">
|
||||||
|
<input v-model="form.form.hari_tanggal_akad" type="date" placeholder="Hari & Tanggal Akad"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.waktu_akad" type="time" placeholder="Waktu Akad"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<textarea v-model="form.form.alamat_akad" rows="3" placeholder="Alamat Akad"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"></textarea>
|
||||||
|
<input v-model="form.form.link_gmaps_akad" type="text" placeholder="Link Google Maps Akad"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Resepsi -->
|
||||||
|
<div>
|
||||||
|
<h3 class="font-medium text-gray-700 mb-2">Resepsi</h3>
|
||||||
|
<div class="grid gap-2">
|
||||||
|
<input v-model="form.form.hari_tanggal_resepsi" type="date" placeholder="Hari & Tanggal Resepsi"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.waktu_resepsi" type="time" placeholder="Waktu Resepsi"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<textarea v-model="form.form.alamat_resepsi" rows="3" placeholder="Alamat Resepsi"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"></textarea>
|
||||||
|
<input v-model="form.form.link_gmaps_resepsi" type="text" placeholder="Link Google Maps Resepsi"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Syukuran -->
|
||||||
|
<div>
|
||||||
|
<h3 class="font-medium text-gray-700 mb-2">Syukuran</h3>
|
||||||
|
<div class="grid gap-2">
|
||||||
|
<input v-model="form.form.hari_tanggal_syukuran" type="date" placeholder="Hari & Tanggal Syukuran"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.waktu_syukuran" type="time" placeholder="Waktu Syukuran"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<textarea v-model="form.form.alamat_syukuran" rows="3" placeholder="Alamat Syukuran"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"></textarea>
|
||||||
|
<input v-model="form.form.link_gmaps_syukuran" type="text" placeholder="Link Google Maps Syukuran"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Hitung Mundur -->
|
||||||
|
<div>
|
||||||
|
<h3 class="font-medium text-gray-700 mb-3">Hitung Mundur</h3>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
|
<!-- Mulai -->
|
||||||
|
<div>
|
||||||
|
<label class="block text-gray-600 text-sm mb-1">Mulai dari</label>
|
||||||
|
<input v-model="form.form.hitung_mundur_mulai" type="datetime-local"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Sampai -->
|
||||||
|
<div>
|
||||||
|
<label class="block text-gray-600 text-sm mb-1">Sampai dengan</label>
|
||||||
|
<input v-model="form.form.hitung_mundur_selesai" type="datetime-local"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Cerita Kita -->
|
||||||
|
<section class="mb-8">
|
||||||
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💌 Cerita Kita</h2>
|
||||||
|
<textarea v-model="form.form.cerita_kita" rows="4" placeholder="Ceritakan kisah kalian..."
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"></textarea>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Say Something -->
|
||||||
|
<section class="mb-8">
|
||||||
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💬 Say Something</h2>
|
||||||
|
<textarea v-model="form.form.say_something" rows="4" placeholder="Kata-kata spesial atau pesan untuk tamu..."
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"></textarea>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Rekening & Musik -->
|
||||||
|
<section class="mb-8">
|
||||||
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">💳 Rekening & Musik</h2>
|
||||||
|
<div class="grid md:grid-cols-3 gap-4">
|
||||||
|
<input v-model="form.form.rekening_1" placeholder="Rekening 1"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.rekening_2" placeholder="Rekening 2"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.rekening_3" placeholder="Rekening 3"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
<input v-model="form.form.link_music" placeholder="Link Music (opsional)"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-4 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
<input v-model="form.form.link_live_streaming" placeholder="Link Live Streaming (opsional)"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 mt-4 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Foto Upload -->
|
||||||
|
<section class="mb-8">
|
||||||
|
<h2 class="font-semibold text-blue-600 mb-3 border-b pb-1">🖼️ Galeri Foto</h2>
|
||||||
|
<div
|
||||||
|
class="border-2 border-dashed border-gray-300 rounded-xl p-8 flex flex-col justify-center items-center text-gray-400 hover:border-blue-400 hover:text-blue-500 transition">
|
||||||
|
<input id="gallery" type="file" multiple accept="image/*" class="hidden" @change="handleFileChange" />
|
||||||
|
<label v-if="!previews.length" for="gallery" class="cursor-pointer flex flex-col items-center">
|
||||||
|
<span class="text-4xl font-bold">+</span>
|
||||||
|
<span class="text-sm mt-2">Pilih Foto (maks. 8, JPEG/PNG, maks. 2MB)</span>
|
||||||
|
</label>
|
||||||
|
<div v-else class="grid grid-cols-3 sm:grid-cols-4 gap-4">
|
||||||
|
<div v-for="(src, i) in previews" :key="i" class="relative group">
|
||||||
|
<img :src="src" class="w-24 h-24 object-cover rounded-lg border shadow" />
|
||||||
|
<button @click="removeFile(i)"
|
||||||
|
class="absolute -top-2 -right-2 bg-red-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs opacity-0 group-hover:opacity-100 transition"
|
||||||
|
title="Hapus foto">
|
||||||
|
✕
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<label v-if="previews.length < 8" for="gallery"
|
||||||
|
class="cursor-pointer flex flex-col items-center justify-center w-24 h-24 border-2 border-dashed border-gray-300 rounded-lg text-gray-400 hover:border-blue-400 hover:text-blue-500 transition">
|
||||||
|
<span class="text-3xl font-bold">+</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Tombol -->
|
||||||
|
<div class="text-end mt-6">
|
||||||
|
<button @click="batal" class="bg-gray-600 text-white font-semibold px-6 py-2 rounded-lg transition mr-2">
|
||||||
|
Batal
|
||||||
|
</button>
|
||||||
|
<button @click="konfirmasi" class="bg-blue-700 text-white font-semibold px-6 py-2 rounded-lg transition">
|
||||||
|
Konfirmasi
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</div>
|
||||||
|
</template>
|
||||||
<script setup>
|
|
||||||
import { ref } from 'vue'
|
<script setup>
|
||||||
import { useRouter } from 'vue-router'
|
import { ref } from 'vue'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
const router = useRouter()
|
|
||||||
|
const router = useRouter()
|
||||||
const form = ref({
|
|
||||||
nama_pemesan: '',
|
// Form data
|
||||||
email: '',
|
const form = ref({
|
||||||
no_tlpn: '',
|
nama_pemesan: '',
|
||||||
form: {
|
email: '',
|
||||||
nama_lengkap_pria: '',
|
no_tlpn: '',
|
||||||
nama_panggilan_pria: '',
|
form: {
|
||||||
nama_bapak_pria: '',
|
nama_lengkap_pria: '',
|
||||||
nama_ibu_pria: '',
|
nama_panggilan_pria: '',
|
||||||
link_instagram_pria: '',
|
nama_bapak_pria: '',
|
||||||
link_facebook_pria: '',
|
nama_ibu_pria: '',
|
||||||
link_twitter_pria: '',
|
link_instagram_pria: '',
|
||||||
nama_lengkap_wanita: '',
|
link_facebook_pria: '',
|
||||||
nama_panggilan_wanita: '',
|
link_twitter_pria: '',
|
||||||
nama_bapak_wanita: '',
|
nama_lengkap_wanita: '',
|
||||||
nama_ibu_wanita: '',
|
nama_panggilan_wanita: '',
|
||||||
link_instagram_wanita: '',
|
nama_bapak_wanita: '',
|
||||||
link_facebook_wanita: '',
|
nama_ibu_wanita: '',
|
||||||
link_twitter_wanita: '',
|
link_instagram_wanita: '',
|
||||||
cerita_kita: '',
|
link_facebook_wanita: '',
|
||||||
hari_tanggal_akad: '',
|
link_twitter_wanita: '',
|
||||||
waktu_akad: '',
|
cerita_kita: '',
|
||||||
alamat_akad: '',
|
hari_tanggal_akad: '',
|
||||||
link_gmaps_akad: '',
|
waktu_akad: '',
|
||||||
hari_tanggal_resepsi: '',
|
alamat_akad: '',
|
||||||
waktu_resepsi: '',
|
link_gmaps_akad: '',
|
||||||
alamat_resepsi: '',
|
hari_tanggal_resepsi: '',
|
||||||
link_gmaps_resepsi: '',
|
waktu_resepsi: '',
|
||||||
hari_tanggal_syukuran: '',
|
alamat_resepsi: '',
|
||||||
waktu_syukuran: '',
|
link_gmaps_resepsi: '',
|
||||||
alamat_syukuran: '',
|
hari_tanggal_syukuran: '',
|
||||||
link_gmaps_syukuran: '',
|
waktu_syukuran: '',
|
||||||
hitung_mundur: '',
|
alamat_syukuran: '',
|
||||||
link_live_streaming: '',
|
link_gmaps_syukuran: '',
|
||||||
say_something: '',
|
hitung_mundur_mulai: '',
|
||||||
rekening_1: '',
|
hitung_mundur_selesai: '',
|
||||||
rekening_2: '',
|
link_live_streaming: '',
|
||||||
rekening_3: '',
|
say_something: '',
|
||||||
link_music: ''
|
rekening_1: '',
|
||||||
},
|
rekening_2: '',
|
||||||
foto: []
|
rekening_3: '',
|
||||||
})
|
link_music: ''
|
||||||
|
},
|
||||||
const previews = ref([])
|
foto: []
|
||||||
|
})
|
||||||
const handleFileChange = (e) => {
|
|
||||||
const files = Array.from(e.target.files)
|
// ===========================
|
||||||
const totalFiles = form.value.foto.length + files.length
|
// ALERT SYSTEM (Custom Modal)
|
||||||
|
// ===========================
|
||||||
if (totalFiles > 8) {
|
const showAlert = ref(false)
|
||||||
alert('Maksimal 8 foto!')
|
const alertTitle = ref('')
|
||||||
e.target.value = ''
|
const alertMessage = ref('')
|
||||||
|
const alertType = ref('info') // success | error | warning | info
|
||||||
|
|
||||||
|
const triggerAlert = (type, title, message) => {
|
||||||
|
alertType.value = type
|
||||||
|
alertTitle.value = title
|
||||||
|
alertMessage.value = message
|
||||||
|
showAlert.value = true
|
||||||
|
setTimeout(() => (showAlert.value = false), 4000) // auto close
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================
|
||||||
|
// FILE UPLOAD
|
||||||
|
// ===========================
|
||||||
|
const previews = ref([])
|
||||||
|
|
||||||
|
const handleFileChange = (e) => {
|
||||||
|
const files = Array.from(e.target.files)
|
||||||
|
const totalFiles = form.value.foto.length + files.length
|
||||||
|
|
||||||
|
if (totalFiles > 8) {
|
||||||
|
triggerAlert('warning', 'Terlalu Banyak Foto', 'Maksimal 8 foto yang bisa diunggah.')
|
||||||
|
e.target.value = ''
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
files.forEach(file => {
|
||||||
|
if (file.size > 2 * 1024 * 1024) {
|
||||||
|
triggerAlert('warning', 'Ukuran File Terlalu Besar', `File ${file.name} melebihi 2MB.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (!['image/jpeg', 'image/png', 'image/jpg'].includes(file.type)) {
|
||||||
files.forEach(file => {
|
triggerAlert('error', 'Format Tidak Didukung', `File ${file.name} harus berupa JPEG atau PNG.`)
|
||||||
// Validate file size (2MB) and type
|
return
|
||||||
if (file.size > 2 * 1024 * 1024) {
|
|
||||||
alert(`File ${file.name} terlalu besar! Maksimal 2MB.`)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!['image/jpeg', 'image/png', 'image/jpg'].includes(file.type)) {
|
|
||||||
alert(`File ${file.name} harus berupa JPEG atau PNG!`)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
form.value.foto.push(file)
|
|
||||||
previews.value.push(URL.createObjectURL(file))
|
|
||||||
})
|
|
||||||
|
|
||||||
e.target.value = ''
|
|
||||||
}
|
|
||||||
|
|
||||||
const removeFile = (index) => {
|
|
||||||
form.value.foto.splice(index, 1)
|
|
||||||
previews.value.splice(index, 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
const konfirmasi = async () => {
|
|
||||||
try {
|
|
||||||
// Basic client-side validation
|
|
||||||
if (!form.value.nama_pemesan || !form.value.email) {
|
|
||||||
alert('Harap isi semua kolom wajib (Nama Pemesan, Email)!')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const data = new FormData()
|
|
||||||
data.append('nama_pemesan', form.value.nama_pemesan)
|
|
||||||
data.append('email', form.value.email)
|
|
||||||
data.append('no_tlpn', form.value.no_tlpn)
|
|
||||||
data.append('template_slug', 'undangan-pernikahan-premium')
|
|
||||||
|
|
||||||
// Append form fields individually to ensure Laravel receives them as an array
|
|
||||||
for (const [key, value] of Object.entries(form.value.form)) {
|
|
||||||
data.append(`form[${key}]`, value)
|
|
||||||
}
|
|
||||||
|
|
||||||
form.value.foto.forEach((file, index) => {
|
|
||||||
data.append(`foto[${index}]`, file)
|
|
||||||
})
|
|
||||||
|
|
||||||
console.log([...data]) // untuk debugging
|
|
||||||
|
|
||||||
const res = await fetch('http://localhost:8000/api/pelanggans', {
|
|
||||||
method: 'POST',
|
|
||||||
body: data
|
|
||||||
})
|
|
||||||
|
|
||||||
const result = await res.json()
|
|
||||||
|
|
||||||
if (!res.ok) {
|
|
||||||
if (res.status === 422) {
|
|
||||||
const errors = result.errors || {}
|
|
||||||
const errorMessages = Object.values(errors).flat().join('\n')
|
|
||||||
throw new Error(errorMessages || result.message || 'Validasi gagal')
|
|
||||||
}
|
|
||||||
if (res.status === 404) {
|
|
||||||
throw new Error(result.message || 'Template tidak ditemukan')
|
|
||||||
}
|
|
||||||
throw new Error(result.message || 'Gagal mengirim data')
|
|
||||||
}
|
|
||||||
|
|
||||||
alert(result.message || 'Data berhasil disimpan!')
|
|
||||||
router.push('/')
|
|
||||||
} catch (err) {
|
|
||||||
console.error(err)
|
|
||||||
alert('Terjadi kesalahan: ' + err.message)
|
|
||||||
}
|
}
|
||||||
|
form.value.foto.push(file)
|
||||||
|
previews.value.push(URL.createObjectURL(file))
|
||||||
|
})
|
||||||
|
|
||||||
|
e.target.value = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
const removeFile = (index) => {
|
||||||
|
form.value.foto.splice(index, 1)
|
||||||
|
previews.value.splice(index, 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================
|
||||||
|
// KONFIRMASI SIMPAN DATA
|
||||||
|
// ===========================
|
||||||
|
const konfirmasi = async () => {
|
||||||
|
try {
|
||||||
|
if (!form.value.nama_pemesan || !form.value.email) {
|
||||||
|
triggerAlert('warning', 'Data Belum Lengkap', 'Isi Nama Pemesan dan Email terlebih dahulu!')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = new FormData()
|
||||||
|
data.append('nama_pemesan', form.value.nama_pemesan)
|
||||||
|
data.append('email', form.value.email)
|
||||||
|
data.append('no_tlpn', form.value.no_tlpn)
|
||||||
|
data.append('template_slug', 'undangan-pernikahan-premium')
|
||||||
|
|
||||||
|
for (const [key, value] of Object.entries(form.value.form)) {
|
||||||
|
data.append(`form[${key}]`, value)
|
||||||
|
}
|
||||||
|
form.value.foto.forEach((file, index) => {
|
||||||
|
data.append(`foto[${index}]`, file)
|
||||||
|
})
|
||||||
|
|
||||||
|
const res = await fetch('http://localhost:8000/api/pelanggans', {
|
||||||
|
method: 'POST',
|
||||||
|
body: data
|
||||||
|
})
|
||||||
|
const result = await res.json()
|
||||||
|
|
||||||
|
if (!res.ok) {
|
||||||
|
const msg = result.message || 'Gagal menyimpan data'
|
||||||
|
throw new Error(msg)
|
||||||
|
}
|
||||||
|
|
||||||
|
const adminPhone = '62895333053398'
|
||||||
|
const pesan = `
|
||||||
|
Halo Admin 👋
|
||||||
|
|
||||||
|
Ada pemesanan undangan *Pernikahan Premium* baru nih!
|
||||||
|
|
||||||
|
📋 *Nama:* ${form.value.nama_pemesan}
|
||||||
|
📧 *Email:* ${form.value.email}
|
||||||
|
📞 *Telepon:* ${form.value.no_tlpn}
|
||||||
|
|
||||||
|
💍 *Mempelai:* ${form.value.form.nama_lengkap_pria} ❤️ ${form.value.form.nama_lengkap_wanita}
|
||||||
|
|
||||||
|
🕒 *Hitung Mundur:*
|
||||||
|
${form.value.form.hitung_mundur_mulai || '-'} s.d ${form.value.form.hitung_mundur_selesai || '-'}
|
||||||
|
|
||||||
|
Silakan cek dashboard admin untuk detail lengkapnya.
|
||||||
|
`.trim()
|
||||||
|
|
||||||
|
const waUrl = `https://wa.me/${adminPhone}?text=${encodeURIComponent(pesan)}`
|
||||||
|
|
||||||
|
triggerAlert('success', 'Data Berhasil Disimpan', 'Kamu akan diarahkan ke WhatsApp admin...')
|
||||||
|
setTimeout(() => {
|
||||||
|
window.open(waUrl, '_blank')
|
||||||
|
router.push('/')
|
||||||
|
}, 2000)
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err)
|
||||||
|
triggerAlert('error', 'Terjadi Kesalahan', err.message)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const batal = () => router.back()
|
|
||||||
</script>
|
const batal = () => router.back()
|
||||||
|
</script>
|
||||||
|
|||||||
@ -66,11 +66,29 @@
|
|||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"></textarea>
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition resize-none"></textarea>
|
||||||
<input v-model="form.form.link_gmaps" type="text" placeholder="Link Gmaps"
|
<input v-model="form.form.link_gmaps" type="text" placeholder="Link Gmaps"
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
<input v-model="form.form.hitung_mundur" type="datetime-local" placeholder="Hitung Mundur Waktu Acara"
|
<!-- Hitung Mundur -->
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
<div>
|
||||||
|
<h3 class="font-medium text-gray-700 mb-3">Hitung Mundur</h3>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
|
<!-- Mulai -->
|
||||||
|
<div>
|
||||||
|
<label class="block text-gray-600 text-sm mb-1">Mulai dari</label>
|
||||||
|
<input v-model="form.form.hitung_mundur_mulai" type="datetime-local"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Sampai -->
|
||||||
|
<div>
|
||||||
|
<label class="block text-gray-600 text-sm mb-1">Sampai dengan</label>
|
||||||
|
<input v-model="form.form.hitung_mundur_selesai" type="datetime-local"
|
||||||
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
|
</div>
|
||||||
<input v-model="form.form.link_live_streaming" type="text" placeholder="Link Live Streaming"
|
<input v-model="form.form.link_live_streaming" type="text" placeholder="Link Live Streaming"
|
||||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 outline-none transition" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Pesan & Rekening -->
|
<!-- Pesan & Rekening -->
|
||||||
@ -155,13 +173,11 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
import Swal from 'sweetalert2'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
const ADMIN_WA = '62895333053398'
|
||||||
|
|
||||||
// Nomor WhatsApp admin (ganti sesuai kebutuhan)
|
|
||||||
const ADMIN_WA = '62895333053398' // format internasional tanpa "+"
|
|
||||||
|
|
||||||
// ======================= FORM ==========================
|
|
||||||
const form = ref({
|
const form = ref({
|
||||||
nama_pemesan: '',
|
nama_pemesan: '',
|
||||||
email: '',
|
email: '',
|
||||||
@ -180,7 +196,8 @@ const form = ref({
|
|||||||
waktu: '',
|
waktu: '',
|
||||||
alamat: '',
|
alamat: '',
|
||||||
link_gmaps: '',
|
link_gmaps: '',
|
||||||
hitung_mundur: '',
|
hitung_mundur_mulai: '',
|
||||||
|
hitung_mundur_selesai: '',
|
||||||
link_live_streaming: '',
|
link_live_streaming: '',
|
||||||
say_something: '',
|
say_something: '',
|
||||||
rekening_1: '',
|
rekening_1: '',
|
||||||
@ -191,7 +208,6 @@ const form = ref({
|
|||||||
foto: []
|
foto: []
|
||||||
})
|
})
|
||||||
|
|
||||||
// ===================== FOTO PREVIEW =====================
|
|
||||||
const previews = ref([])
|
const previews = ref([])
|
||||||
|
|
||||||
const handleFileChange = (e) => {
|
const handleFileChange = (e) => {
|
||||||
@ -224,7 +240,6 @@ const removeFile = (index) => {
|
|||||||
previews.value.splice(index, 1)
|
previews.value.splice(index, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================== KONFIRMASI ======================
|
|
||||||
const konfirmasi = async () => {
|
const konfirmasi = async () => {
|
||||||
try {
|
try {
|
||||||
if (!form.value.nama_pemesan || !form.value.email) {
|
if (!form.value.nama_pemesan || !form.value.email) {
|
||||||
@ -265,8 +280,21 @@ const konfirmasi = async () => {
|
|||||||
throw new Error(result.message || 'Gagal mengirim data')
|
throw new Error(result.message || 'Gagal mengirim data')
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================== SUKSES -> BUKA WHATSAPP ======================
|
await Swal.fire({
|
||||||
alert(result.message || 'Data berhasil disimpan!')
|
title: '🎉 Berhasil!',
|
||||||
|
text: result.message || 'Data undangan kamu berhasil disimpan.',
|
||||||
|
icon: 'success',
|
||||||
|
confirmButtonText: 'Lanjut ke WhatsApp',
|
||||||
|
confirmButtonColor: '#2563eb',
|
||||||
|
background: '#f9fafb',
|
||||||
|
color: '#111827',
|
||||||
|
showClass: {
|
||||||
|
popup: 'animate__animated animate__fadeInDown'
|
||||||
|
},
|
||||||
|
hideClass: {
|
||||||
|
popup: 'animate__animated animate__fadeOutUp'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const f = form.value
|
const f = form.value
|
||||||
const child = f.form
|
const child = f.form
|
||||||
@ -298,19 +326,27 @@ Saya ingin membuat *Undangan Ulang Tahun Premium* 🎂
|
|||||||
${child.say_something || '-'}
|
${child.say_something || '-'}
|
||||||
|
|
||||||
Terima kasih 🙏
|
Terima kasih 🙏
|
||||||
`
|
`
|
||||||
|
|
||||||
const encodedMsg = encodeURIComponent(message)
|
const encodedMsg = encodeURIComponent(message)
|
||||||
const waUrl = `https://wa.me/${ADMIN_WA}?text=${encodedMsg}`
|
const waUrl = `https://wa.me/${ADMIN_WA}?text=${encodedMsg}`
|
||||||
|
|
||||||
window.open(waUrl, '_blank')
|
Swal.fire({
|
||||||
|
title: 'Membuka WhatsApp...',
|
||||||
router.push('/')
|
text: 'Mohon tunggu sebentar ⏳',
|
||||||
|
timer: 1500,
|
||||||
|
timerProgressBar: true,
|
||||||
|
showConfirmButton: false,
|
||||||
|
willClose: () => {
|
||||||
|
window.open(waUrl, '_blank')
|
||||||
|
router.push('/')
|
||||||
|
}
|
||||||
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
Swal.fire('❌ Gagal', err.message, 'error')
|
||||||
alert('Terjadi kesalahan: ' + err.message)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const batal = () => router.back()
|
const batal = () => router.back()
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
11
proyek-frontend/package-lock.json
generated
11
proyek-frontend/package-lock.json
generated
@ -16,6 +16,7 @@
|
|||||||
"eslint": "^9.34.0",
|
"eslint": "^9.34.0",
|
||||||
"lucide-vue-next": "^0.542.0",
|
"lucide-vue-next": "^0.542.0",
|
||||||
"nuxt": "^4.0.3",
|
"nuxt": "^4.0.3",
|
||||||
|
"sweetalert2": "^11.26.2",
|
||||||
"tailwindcss": "^4.1.12",
|
"tailwindcss": "^4.1.12",
|
||||||
"vue": "^3.5.20",
|
"vue": "^3.5.20",
|
||||||
"vue-router": "^4.5.1"
|
"vue-router": "^4.5.1"
|
||||||
@ -15773,6 +15774,16 @@
|
|||||||
"license": "CC0-1.0",
|
"license": "CC0-1.0",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"node_modules/sweetalert2": {
|
||||||
|
"version": "11.26.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.26.2.tgz",
|
||||||
|
"integrity": "sha512-tR5oADjrN6gv+0Y/tpfMXM/rSlx/QHmRhygBHhWh29iw1AO/x7D8OhghyogaY+NLZrd4qfhssVafRBHi+DREzQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"funding": {
|
||||||
|
"type": "individual",
|
||||||
|
"url": "https://github.com/sponsors/limonte"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/system-architecture": {
|
"node_modules/system-architecture": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/system-architecture/-/system-architecture-0.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/system-architecture/-/system-architecture-0.1.0.tgz",
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
"eslint": "^9.34.0",
|
"eslint": "^9.34.0",
|
||||||
"lucide-vue-next": "^0.542.0",
|
"lucide-vue-next": "^0.542.0",
|
||||||
"nuxt": "^4.0.3",
|
"nuxt": "^4.0.3",
|
||||||
|
"sweetalert2": "^11.26.2",
|
||||||
"tailwindcss": "^4.1.12",
|
"tailwindcss": "^4.1.12",
|
||||||
"vue": "^3.5.20",
|
"vue": "^3.5.20",
|
||||||
"vue-router": "^4.5.1"
|
"vue-router": "^4.5.1"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user