This commit is contained in:
Baghaztra 2025-10-13 10:11:42 +07:00
commit 21afb74337

View File

@ -14,22 +14,125 @@ class TemplateSeeder extends Seeder
$k2 = Kategori::firstOrCreate(['nama' => 'ulang_tahun']); $k2 = Kategori::firstOrCreate(['nama' => 'ulang_tahun']);
$k3 = Kategori::firstOrCreate(['nama' => 'khitan']); $k3 = Kategori::firstOrCreate(['nama' => 'khitan']);
Template::create([
Template::create([ 'nama_template' => 'Undangan Pernikahan Starter',
'nama_template' => 'Undangan Minimalis',
'harga' => 100000, 'harga' => 100000,
'paket' => 'starter', 'paket' => 'starter',
'form' => [ 'form' => [
'fields' => [ 'fields' => [
['name' => 'nama_pengantin', 'label' => 'Nama Pengantin', 'type' => 'text', 'required' => true], ['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'tanggal_acara', 'label' => 'Tanggal Acara', 'type' => 'date', 'required' => true], ['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'lokasi', 'label' => 'Lokasi', 'type' => 'text'], ['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap_pria', 'label' => 'Nama Lengkap Pria', 'type' => 'text'],
['name' => 'nama_bapak_pria', 'label' => 'Nama Bapak Pria', 'type' => 'text'],
['name' => 'nama_ibu_pria', 'label' => 'Nama Ibu Pria', 'type' => 'text'],
['name' => 'nama_lengkap_wanita', 'label' => 'Nama Lengkap Wanita', 'type' => 'text'],
['name' => 'nama_bapak_wanita', 'label' => 'Nama Bapak Wanita', 'type' => 'text'],
['name' => 'nama_ibu_wanita', 'label' => 'Nama Ibu Wanita', 'type' => 'text'],
['name' => 'hari_tanggal_acara', 'label' => 'Hari & Tanggal Acara', 'type' => 'date'],
['name' => 'waktu', 'label' => 'Waktu', 'type' => 'text'],
['name' => 'alamat', 'label' => 'Alamat', 'type' => 'textarea'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
] ]
], ],
'kategori_id' => $k1->id, 'kategori_id' => $k1?->id,
'foto' => 'templates/Pernikahan.jpg', // taruh di storage/app/public/templates/ 'foto' => 'templates/Pernikahan.jpg',
]); ]);
Template::create([
'nama_template' => 'Undangan Pernikahan Basic',
'harga' => 175000,
'paket' => 'basic',
'form' => [
'fields' => [
['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap_pria', 'label' => 'Nama Lengkap Pria', 'type' => 'text'],
['name' => 'nama_bapak_pria', 'label' => 'Nama Bapak Pria', 'type' => 'text'],
['name' => 'nama_ibu_pria', 'label' => 'Nama Ibu Pria', 'type' => 'text'],
['name' => 'nama_lengkap_wanita', 'label' => 'Nama Lengkap Wanita', 'type' => 'text'],
['name' => 'nama_bapak_wanita', 'label' => 'Nama Bapak Wanita', 'type' => 'text'],
['name' => 'nama_ibu_wanita', 'label' => 'Nama Ibu Wanita', 'type' => 'text'],
['name' => 'hari_tanggal_akad', 'label' => 'Hari & Tanggal Acara (Akad)', 'type' => 'date'],
['name' => 'waktu_akad', 'label' => 'Waktu Akad', 'type' => 'text'],
['name' => 'alamat_akad', 'label' => 'Alamat Akad', 'type' => 'textarea'],
['name' => 'link_gmaps_akad', 'label' => 'Link Gmaps Akad', 'type' => 'text'],
['name' => 'hari_tanggal_resepsi', 'label' => 'Hari & Tanggal Acara (Resepsi)', 'type' => 'date'],
['name' => 'waktu_resepsi', 'label' => 'Waktu Resepsi', 'type' => 'text'],
['name' => 'alamat_resepsi', 'label' => 'Alamat Resepsi', 'type' => 'textarea'],
['name' => 'link_gmaps_resepsi', 'label' => 'Link Gmaps Resepsi', 'type' => 'text'],
['name' => 'say_something', 'label' => 'Say Something', 'type' => 'textarea'],
['name' => 'hitung_mundur', 'label' => 'Hitung Mundur Waktu Acara', 'type' => 'datetime-local'],
['name' => 'rekening_1', 'label' => 'Rekening 1', 'type' => 'text'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
['name' => 'foto_3', 'label' => 'Foto 3', 'type' => 'file'],
['name' => 'foto_4', 'label' => 'Foto 4', 'type' => 'file'],
['name' => 'link_music', 'label' => 'Link Music', 'type' => 'text'],
]
],
'kategori_id' => $k1?->id,
'foto' => 'templates/Pernikahan.jpg',
]);
Template::create([
'nama_template' => 'Undangan Pernikahan Premium',
'harga' => 350000,
'paket' => 'premium',
'form' => [
'fields' => [
['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap_pria', 'label' => 'Nama Lengkap Pria', 'type' => 'text'],
['name' => 'nama_panggilan_pria', 'label' => 'Nama Panggilan Pria', 'type' => 'text'],
['name' => 'nama_bapak_pria', 'label' => 'Nama Bapak Pria', 'type' => 'text'],
['name' => 'nama_ibu_pria', 'label' => 'Nama Ibu Pria', 'type' => 'text'],
['name' => 'link_instagram_pria', 'label' => 'Link Instagram Pria', 'type' => 'text'],
['name' => 'link_facebook_pria', 'label' => 'Link Facebook Pria', 'type' => 'text'],
['name' => 'link_twitter_pria', 'label' => 'Link Twitter Pria', 'type' => 'text'],
['name' => 'nama_lengkap_wanita', 'label' => 'Nama Lengkap Wanita', 'type' => 'text'],
['name' => 'nama_panggilan_wanita', 'label' => 'Nama Panggilan Wanita', 'type' => 'text'],
['name' => 'nama_bapak_wanita', 'label' => 'Nama Bapak Wanita', 'type' => 'text'],
['name' => 'nama_ibu_wanita', 'label' => 'Nama Ibu Wanita', 'type' => 'text'],
['name' => 'link_instagram_wanita', 'label' => 'Link Instagram Wanita', 'type' => 'text'],
['name' => 'link_facebook_wanita', 'label' => 'Link Facebook Wanita', 'type' => 'text'],
['name' => 'link_twitter_wanita', 'label' => 'Link Twitter Wanita', 'type' => 'text'],
['name' => 'cerita_kita', 'label' => 'Cerita Kita', 'type' => 'textarea'],
['name' => 'hari_tanggal_akad', 'label' => 'Hari & Tanggal Acara (Akad)', 'type' => 'date'],
['name' => 'waktu_akad', 'label' => 'Waktu Akad', 'type' => 'text'],
['name' => 'alamat_akad', 'label' => 'Alamat Akad', 'type' => 'textarea'],
['name' => 'link_gmaps_akad', 'label' => 'Link Gmaps Akad', 'type' => 'text'],
['name' => 'hari_tanggal_resepsi', 'label' => 'Hari & Tanggal Acara (Resepsi)', 'type' => 'date'],
['name' => 'waktu_resepsi', 'label' => 'Waktu Resepsi', 'type' => 'text'],
['name' => 'alamat_resepsi', 'label' => 'Alamat Resepsi', 'type' => 'textarea'],
['name' => 'link_gmaps_resepsi', 'label' => 'Link Gmaps Resepsi', 'type' => 'text'],
['name' => 'hari_tanggal_syukuran', 'label' => 'Hari & Tanggal Acara (Syukuran)', 'type' => 'date'],
['name' => 'waktu_syukuran', 'label' => 'Waktu Syukuran', 'type' => 'text'],
['name' => 'alamat_syukuran', 'label' => 'Alamat Syukuran', 'type' => 'textarea'],
['name' => 'link_gmaps_syukuran', 'label' => 'Link Gmaps Syukuran', 'type' => 'text'],
['name' => 'hitung_mundur', 'label' => 'Hitung Mundur Waktu Acara', 'type' => 'datetime-local'],
['name' => 'link_live_streaming', 'label' => 'Link Live Streaming', 'type' => 'text'],
['name' => 'say_something', 'label' => 'Say Something', 'type' => 'textarea'],
['name' => 'rekening_1', 'label' => 'Rekening 1', 'type' => 'text'],
['name' => 'rekening_2', 'label' => 'Rekening 2', 'type' => 'text'],
['name' => 'rekening_3', 'label' => 'Rekening 3', 'type' => 'text'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
['name' => 'foto_3', 'label' => 'Foto 3', 'type' => 'file'],
['name' => 'foto_4', 'label' => 'Foto 4', 'type' => 'file'],
['name' => 'foto_5', 'label' => 'Foto 5', 'type' => 'file'],
['name' => 'foto_6', 'label' => 'Foto 6', 'type' => 'file'],
['name' => 'foto_7', 'label' => 'Foto 7', 'type' => 'file'],
['name' => 'foto_8', 'label' => 'Foto 8', 'type' => 'file'],
['name' => 'link_music', 'label' => 'Link Music', 'type' => 'text'],
]
],
'kategori_id' => $k1?->id,
'foto' => 'templates/Pernikahan.jpg',
]);
// Template Pernikahan Premium // Template Pernikahan Premium
Template::create([ Template::create([
@ -83,6 +186,103 @@ Template::create([
'foto' => 'templates/Pernikahan.jpg', 'foto' => 'templates/Pernikahan.jpg',
]); ]);
Template::create([
'nama_template' => 'Undangan Ulang Tahun Starter',
'harga' => 100000,
'paket' => 'starter',
'form' => [
'fields' => [
['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap', 'label' => 'Nama Lengkap', 'type' => 'text'],
['name' => 'umur_yang_dirayakan', 'label' => 'Umur Yang Dirayakan', 'type' => 'number'],
['name' => 'hari_tanggal_acara', 'label' => 'Hari & Tanggal Acara', 'type' => 'date'],
['name' => 'waktu', 'label' => 'Waktu', 'type' => 'text'],
['name' => 'alamat', 'label' => 'Alamat', 'type' => 'textarea'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
]
],
'kategori_id' => $k2?->id,
'foto' => 'templates/HBD.jpg',
]);
Template::create([
'nama_template' => 'Undangan Ulang Tahun Basic',
'harga' => 175000,
'paket' => 'basic',
'form' => [
'fields' => [
['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap', 'label' => 'Nama Lengkap', 'type' => 'text'],
['name' => 'nama_panggilan', 'label' => 'Nama Panggilan', 'type' => 'text'],
['name' => 'nama_bapak', 'label' => 'Nama Bapak', 'type' => 'text'],
['name' => 'nama_ibu', 'label' => 'Nama Ibu', 'type' => 'text'],
['name' => 'umur_yang_dirayakan', 'label' => 'Umur Yang Dirayakan', 'type' => 'number'],
['name' => 'hari_tanggal_acara', 'label' => 'Hari & Tanggal Acara', 'type' => 'date'],
['name' => 'waktu', 'label' => 'Waktu', 'type' => 'text'],
['name' => 'alamat', 'label' => 'Alamat', 'type' => 'textarea'],
['name' => 'link_gmaps', 'label' => 'Link Gmaps', 'type' => 'text'],
['name' => 'say_something', 'label' => 'Say Something', 'type' => 'textarea'],
['name' => 'hitung_mundur', 'label' => 'Hitung Mundur Waktu Acara', 'type' => 'datetime-local'],
['name' => 'rekening_1', 'label' => 'Rekening 1', 'type' => 'text'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
['name' => 'foto_3', 'label' => 'Foto 3', 'type' => 'file'],
['name' => 'foto_4', 'label' => 'Foto 4', 'type' => 'file'],
['name' => 'link_music', 'label' => 'Link Music', 'type' => 'text'],
]
],
'kategori_id' => $k2?->id,
'foto' => 'templates/HBD.jpg',
]);
Template::create([
'nama_template' => 'Undangan Ulang Tahun Premium',
'harga' => 250000,
'paket' => 'premium',
'form' => [
'fields' => [
['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap', 'label' => 'Nama Lengkap', 'type' => 'text'],
['name' => 'nama_panggilan', 'label' => 'Nama Panggilan', 'type' => 'text'],
['name' => 'nama_bapak', 'label' => 'Nama Bapak', 'type' => 'text'],
['name' => 'nama_ibu', 'label' => 'Nama Ibu', 'type' => 'text'],
['name' => 'umur_yang_dirayakan', 'label' => 'Umur Yang Dirayakan', 'type' => 'number'],
['name' => 'anak_ke', 'label' => 'Anak Ke', 'type' => 'number'],
['name' => 'instagram', 'label' => 'Link Instagram', 'type' => 'text'],
['name' => 'facebook', 'label' => 'Link Facebook', 'type' => 'text'],
['name' => 'twitter', 'label' => 'Link Twitter', 'type' => 'text'],
['name' => 'hari_tanggal_acara', 'label' => 'Hari & Tanggal Acara', 'type' => 'date'],
['name' => 'waktu', 'label' => 'Waktu', 'type' => 'text'],
['name' => 'alamat', 'label' => 'Alamat', 'type' => 'textarea'],
['name' => 'link_gmaps', 'label' => 'Link Gmaps', 'type' => 'text'],
['name' => 'hitung_mundur', 'label' => 'Hitung Mundur Waktu Acara', 'type' => 'datetime-local'],
['name' => 'link_live_streaming', 'label' => 'Link Live Streaming', 'type' => 'text'],
['name' => 'say_something', 'label' => 'Say Something', 'type' => 'textarea'],
['name' => 'rekening_1', 'label' => 'Rekening 1', 'type' => 'text'],
['name' => 'rekening_2', 'label' => 'Rekening 2', 'type' => 'text'],
['name' => 'rekening_3', 'label' => 'Rekening 3', 'type' => 'text'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
['name' => 'foto_3', 'label' => 'Foto 3', 'type' => 'file'],
['name' => 'foto_4', 'label' => 'Foto 4', 'type' => 'file'],
['name' => 'foto_5', 'label' => 'Foto 5', 'type' => 'file'],
['name' => 'foto_6', 'label' => 'Foto 6', 'type' => 'file'],
['name' => 'foto_7', 'label' => 'Foto 7', 'type' => 'file'],
['name' => 'foto_8', 'label' => 'Foto 8', 'type' => 'file'],
['name' => 'link_music', 'label' => 'Link Music', 'type' => 'text'],
]
],
'kategori_id' => $k2?->id,
'foto' => 'templates/HBD.jpg',
]);
// Template Ulang Tahun Premium // Template Ulang Tahun Premium
Template::create([ Template::create([
'nama_template' => 'Undangan Ulang Tahun Premium', 'nama_template' => 'Undangan Ulang Tahun Premium',
@ -122,6 +322,105 @@ Template::create([
'foto' => 'templates/HBD.jpg', 'foto' => 'templates/HBD.jpg',
]); ]);
Template::create([
'nama_template' => 'Undangan Khitan Starter',
'harga' => 100000,
'paket' => 'starter',
'form' => [
'fields' => [
['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap', 'label' => 'Nama Lengkap', 'type' => 'text'],
['name' => 'nama_bapak', 'label' => 'Nama Bapak', 'type' => 'text'],
['name' => 'nama_ibu', 'label' => 'Nama Ibu', 'type' => 'text'],
['name' => 'hari_tanggal_acara', 'label' => 'Hari & Tanggal Acara', 'type' => 'date'],
['name' => 'waktu', 'label' => 'Waktu', 'type' => 'text'],
['name' => 'alamat', 'label' => 'Alamat', 'type' => 'textarea'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
]
],
'kategori_id' => $k3->id,
'foto' => 'templates/Khitan.jpg',
]);
Template::create([
'nama_template' => 'Undangan Khitan Basic',
'harga' => 175000,
'paket' => 'basic',
'form' => [
'fields' => [
['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap', 'label' => 'Nama Lengkap', 'type' => 'text'],
['name' => 'nama_panggilan', 'label' => 'Nama Panggilan', 'type' => 'text'],
['name' => 'nama_bapak', 'label' => 'Nama Bapak', 'type' => 'text'],
['name' => 'nama_ibu', 'label' => 'Nama Ibu', 'type' => 'text'],
['name' => 'hari_tanggal_acara', 'label' => 'Hari & Tanggal Acara', 'type' => 'date'],
['name' => 'waktu', 'label' => 'Waktu', 'type' => 'text'],
['name' => 'alamat', 'label' => 'Alamat', 'type' => 'textarea'],
['name' => 'link_gmaps', 'label' => 'Link Gmaps', 'type' => 'text'],
['name' => 'say_something', 'label' => 'Say Something', 'type' => 'textarea'],
['name' => 'hitung_mundur', 'label' => 'Hitung Mundur Waktu Acara', 'type' => 'datetime-local'],
['name' => 'rekening_1', 'label' => 'Rekening 1', 'type' => 'text'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
['name' => 'foto_3', 'label' => 'Foto 3', 'type' => 'file'],
['name' => 'foto_4', 'label' => 'Foto 4', 'type' => 'file'],
['name' => 'link_music', 'label' => 'Link Music', 'type' => 'text'],
]
],
'kategori_id' => $k3->id,
'foto' => 'templates/Khitan.jpg',
]);
Template::create([
'nama_template' => 'Undangan Khitan Premium',
'harga' => 250000,
'paket' => 'premium',
'form' => [
'fields' => [
['name' => 'nama_pemesan', 'label' => 'Nama Pemesan', 'type' => 'text', 'required' => true],
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'required' => true],
['name' => 'no_telepon', 'label' => 'No Telepon', 'type' => 'text'],
['name' => 'nama_lengkap', 'label' => 'Nama Lengkap', 'type' => 'text'],
['name' => 'nama_panggilan', 'label' => 'Nama Panggilan', 'type' => 'text'],
['name' => 'nama_bapak', 'label' => 'Nama Bapak', 'type' => 'text'],
['name' => 'nama_ibu', 'label' => 'Nama Ibu', 'type' => 'text'],
['name' => 'link_instagram', 'label' => 'Link Instagram', 'type' => 'text'],
['name' => 'link_facebook', 'label' => 'Link Facebook', 'type' => 'text'],
['name' => 'link_twitter', 'label' => 'Link Twitter', 'type' => 'text'],
['name' => 'hari_tanggal_acara', 'label' => 'Hari & Tanggal Acara', 'type' => 'date'],
['name' => 'waktu', 'label' => 'Waktu', 'type' => 'text'],
['name' => 'alamat', 'label' => 'Alamat', 'type' => 'textarea'],
['name' => 'link_gmaps', 'label' => 'Link Gmaps', 'type' => 'text'],
['name' => 'hari_tanggal_syukuran', 'label' => 'Hari & Tanggal Acara (Syukuran)', 'type' => 'date'],
['name' => 'waktu_syukuran', 'label' => 'Waktu Syukuran', 'type' => 'text'],
['name' => 'alamat_syukuran', 'label' => 'Alamat Syukuran', 'type' => 'textarea'],
['name' => 'link_gmaps_syukuran', 'label' => 'Link Gmaps Syukuran', 'type' => 'text'],
['name' => 'hitung_mundur', 'label' => 'Hitung Mundur Waktu Acara', 'type' => 'datetime-local'],
['name' => 'link_live_streaming', 'label' => 'Link Live Streaming', 'type' => 'text'],
['name' => 'say_something', 'label' => 'Say Something', 'type' => 'textarea'],
['name' => 'rekening_1', 'label' => 'Rekening 1', 'type' => 'text'],
['name' => 'rekening_2', 'label' => 'Rekening 2', 'type' => 'text'],
['name' => 'rekening_3', 'label' => 'Rekening 3', 'type' => 'text'],
['name' => 'foto_1', 'label' => 'Foto 1', 'type' => 'file'],
['name' => 'foto_2', 'label' => 'Foto 2', 'type' => 'file'],
['name' => 'foto_3', 'label' => 'Foto 3', 'type' => 'file'],
['name' => 'foto_4', 'label' => 'Foto 4', 'type' => 'file'],
['name' => 'foto_5', 'label' => 'Foto 5', 'type' => 'file'],
['name' => 'foto_6', 'label' => 'Foto 6', 'type' => 'file'],
['name' => 'foto_7', 'label' => 'Foto 7', 'type' => 'file'],
['name' => 'foto_8', 'label' => 'Foto 8', 'type' => 'file'],
['name' => 'link_music', 'label' => 'Link Music', 'type' => 'text'],
]
],
'kategori_id' => $k3->id,
'foto' => 'templates/Khitan.jpg',
]);
// Template Khitan Premium // Template Khitan Premium
Template::create([ Template::create([
'nama_template' => 'Undangan Khitan Premium', 'nama_template' => 'Undangan Khitan Premium',