diff --git a/app/Http/Controllers/CustomerController.php b/app/Http/Controllers/CustomerController.php index 734faf9..d99d18e 100644 --- a/app/Http/Controllers/CustomerController.php +++ b/app/Http/Controllers/CustomerController.php @@ -418,6 +418,7 @@ class CustomerController extends Controller 'od.harga_satuan', 'od.status_order as status_order_detail', 'od.catatan', + 'od.total_kalori', DB::raw('COALESCE(mm.nama_menu, mcu.nama_mcu) as nama_item'), 'mm.foto as foto' ) @@ -462,7 +463,8 @@ class CustomerController extends Controller 'jumlah' => $item->jumlah, 'harga_satuan' => $item->harga_satuan, 'status_order' => $item->status_order_detail, - 'catatan' => $item->catatan ?? '-' + 'catatan' => $item->catatan ?? '-', + 'total_kalori' => $item->total_kalori // tambahkan field tambahan jika diperlukan ]; })->values(), @@ -507,7 +509,7 @@ class CustomerController extends Controller 'cara_pembayaran' =>'MCU', ]; $order = Order::create($payload); - + $payloadDetail = [ 'order_id' => $order->order_id, 'jumlah' => 1, diff --git a/public/gambar/1VhHxJmuroGL7z6.jpg b/public/gambar/1VhHxJmuroGL7z6.jpg new file mode 100644 index 0000000..8d6d04c Binary files /dev/null and b/public/gambar/1VhHxJmuroGL7z6.jpg differ diff --git a/public/gambar/3Y3Ez9eazDjltwU.jpg b/public/gambar/3Y3Ez9eazDjltwU.jpg new file mode 100644 index 0000000..f2484da Binary files /dev/null and b/public/gambar/3Y3Ez9eazDjltwU.jpg differ diff --git a/public/gambar/6cphK0gBVbdDpy7.jpg b/public/gambar/6cphK0gBVbdDpy7.jpg new file mode 100644 index 0000000..f7d8215 Binary files /dev/null and b/public/gambar/6cphK0gBVbdDpy7.jpg differ diff --git a/public/gambar/BDyQv2C3ZJstYk5.jpg b/public/gambar/BDyQv2C3ZJstYk5.jpg new file mode 100644 index 0000000..98d1c32 Binary files /dev/null and b/public/gambar/BDyQv2C3ZJstYk5.jpg differ diff --git a/public/gambar/BcQLFyCRKbD7fGm.jpg b/public/gambar/BcQLFyCRKbD7fGm.jpg new file mode 100644 index 0000000..65c49f2 Binary files /dev/null and b/public/gambar/BcQLFyCRKbD7fGm.jpg differ diff --git a/public/gambar/BhVLQcmU0pVMzQ5.jpg b/public/gambar/BhVLQcmU0pVMzQ5.jpg new file mode 100644 index 0000000..524daf2 Binary files /dev/null and b/public/gambar/BhVLQcmU0pVMzQ5.jpg differ diff --git a/public/gambar/DA1gXOOK4cMnL65.jpg b/public/gambar/DA1gXOOK4cMnL65.jpg new file mode 100644 index 0000000..ce2830e Binary files /dev/null and b/public/gambar/DA1gXOOK4cMnL65.jpg differ diff --git a/public/gambar/DX8Ev2haNMqhqgq.jpg b/public/gambar/DX8Ev2haNMqhqgq.jpg new file mode 100644 index 0000000..37dc734 Binary files /dev/null and b/public/gambar/DX8Ev2haNMqhqgq.jpg differ diff --git a/public/gambar/EcyHylUTMAVohMF.jpg b/public/gambar/EcyHylUTMAVohMF.jpg new file mode 100644 index 0000000..8d6d04c Binary files /dev/null and b/public/gambar/EcyHylUTMAVohMF.jpg differ diff --git a/public/gambar/MIBkGAo6Wsv5U8J.jpg b/public/gambar/MIBkGAo6Wsv5U8J.jpg new file mode 100644 index 0000000..a664e84 Binary files /dev/null and b/public/gambar/MIBkGAo6Wsv5U8J.jpg differ diff --git a/public/gambar/NWj9s7XJsEznf32.jpg b/public/gambar/NWj9s7XJsEznf32.jpg new file mode 100644 index 0000000..4acf3d8 Binary files /dev/null and b/public/gambar/NWj9s7XJsEznf32.jpg differ diff --git a/public/gambar/Nmq2csw3jlvDbFn.jpg b/public/gambar/Nmq2csw3jlvDbFn.jpg new file mode 100644 index 0000000..ff5288c Binary files /dev/null and b/public/gambar/Nmq2csw3jlvDbFn.jpg differ diff --git a/public/gambar/OfSOkI4v8QOFLDQ.jpg b/public/gambar/OfSOkI4v8QOFLDQ.jpg new file mode 100644 index 0000000..1fe92ed Binary files /dev/null and b/public/gambar/OfSOkI4v8QOFLDQ.jpg differ diff --git a/public/gambar/Ukd0oblLPOj2gGk.jpg b/public/gambar/Ukd0oblLPOj2gGk.jpg new file mode 100644 index 0000000..bb812ac Binary files /dev/null and b/public/gambar/Ukd0oblLPOj2gGk.jpg differ diff --git a/public/gambar/V47AjynduyGYBKJ.jpg b/public/gambar/V47AjynduyGYBKJ.jpg new file mode 100644 index 0000000..a1877fb Binary files /dev/null and b/public/gambar/V47AjynduyGYBKJ.jpg differ diff --git a/public/gambar/ZyRXajWB3BFyCIJ.jpg b/public/gambar/ZyRXajWB3BFyCIJ.jpg new file mode 100644 index 0000000..d7fdf6b Binary files /dev/null and b/public/gambar/ZyRXajWB3BFyCIJ.jpg differ diff --git a/public/gambar/c8RrP9pmbFQ5wPd.jpg b/public/gambar/c8RrP9pmbFQ5wPd.jpg new file mode 100644 index 0000000..ab98a02 Binary files /dev/null and b/public/gambar/c8RrP9pmbFQ5wPd.jpg differ diff --git a/public/gambar/cG1OGeEi5XzhUOK.jpg b/public/gambar/cG1OGeEi5XzhUOK.jpg new file mode 100644 index 0000000..7d8f1d1 Binary files /dev/null and b/public/gambar/cG1OGeEi5XzhUOK.jpg differ diff --git a/public/gambar/clLvziFQZnHVnMq.jpg b/public/gambar/clLvziFQZnHVnMq.jpg new file mode 100644 index 0000000..891abf5 Binary files /dev/null and b/public/gambar/clLvziFQZnHVnMq.jpg differ diff --git a/public/gambar/d8ASQ3mkBbAkjPR.jpg b/public/gambar/d8ASQ3mkBbAkjPR.jpg new file mode 100644 index 0000000..65c49f2 Binary files /dev/null and b/public/gambar/d8ASQ3mkBbAkjPR.jpg differ diff --git a/public/gambar/dAVbOJQeJnGogUg.jpg b/public/gambar/dAVbOJQeJnGogUg.jpg new file mode 100644 index 0000000..98d1c32 Binary files /dev/null and b/public/gambar/dAVbOJQeJnGogUg.jpg differ diff --git a/public/gambar/m0UEA7GZ3eqH6yZ.jpg b/public/gambar/m0UEA7GZ3eqH6yZ.jpg new file mode 100644 index 0000000..322ca31 Binary files /dev/null and b/public/gambar/m0UEA7GZ3eqH6yZ.jpg differ diff --git a/public/gambar/sKEpPVmmXHGH42e.jpg b/public/gambar/sKEpPVmmXHGH42e.jpg new file mode 100644 index 0000000..7502f24 Binary files /dev/null and b/public/gambar/sKEpPVmmXHGH42e.jpg differ diff --git a/public/gambar/sjFBBFhx2wpSuE8.jpg b/public/gambar/sjFBBFhx2wpSuE8.jpg new file mode 100644 index 0000000..c42d79b Binary files /dev/null and b/public/gambar/sjFBBFhx2wpSuE8.jpg differ diff --git a/public/gambar/teCc2Q88QGhBUQL.jpg b/public/gambar/teCc2Q88QGhBUQL.jpg new file mode 100644 index 0000000..7502f24 Binary files /dev/null and b/public/gambar/teCc2Q88QGhBUQL.jpg differ diff --git a/public/gambar/ui9A9mjwVaZq2hj.jpg b/public/gambar/ui9A9mjwVaZq2hj.jpg new file mode 100644 index 0000000..013d276 Binary files /dev/null and b/public/gambar/ui9A9mjwVaZq2hj.jpg differ diff --git a/public/gambar/vajeyxcmaRf6JR3.jpg b/public/gambar/vajeyxcmaRf6JR3.jpg new file mode 100644 index 0000000..f4729a6 Binary files /dev/null and b/public/gambar/vajeyxcmaRf6JR3.jpg differ diff --git a/public/gambar/yugmkzUNtvyoKXG.jpg b/public/gambar/yugmkzUNtvyoKXG.jpg new file mode 100644 index 0000000..bb812ac Binary files /dev/null and b/public/gambar/yugmkzUNtvyoKXG.jpg differ diff --git a/public/gambar/zc8vn0ZMLirPaAJ.jpg b/public/gambar/zc8vn0ZMLirPaAJ.jpg new file mode 100644 index 0000000..deacad0 Binary files /dev/null and b/public/gambar/zc8vn0ZMLirPaAJ.jpg differ diff --git a/public/js/checkout/index.js b/public/js/checkout/index.js index 8551bfd..ef33bc0 100644 --- a/public/js/checkout/index.js +++ b/public/js/checkout/index.js @@ -102,7 +102,7 @@ document.addEventListener('DOMContentLoaded', () => { btnLoad.disabled = false; btnLoad.innerHTML = 'Selanjutnya'; } - + }); }); @@ -324,7 +324,7 @@ function renderCartSummary() { const disableSore = isToday && jam >= 13; const countDate = pesananList.length; - + pesananHTML += `
@@ -348,7 +348,7 @@ function renderCartSummary() { ${(karhohidrats || []).map(k => ` `).join('')} @@ -404,7 +404,7 @@ function renderCartSummary() {
- +
${countDate > 1 @@ -425,14 +425,14 @@ function renderCartSummary() { const itemHTML = `
-
- +
${item.nama_menu} + class="img-fluid rounded" style="max-height: 280px; width: 100%; object-fit: cover;">
@@ -449,10 +449,10 @@ function renderCartSummary() {
Menu: ${item.apakah_someday ? 'Sameday' : 'Menu Normal'}
- +
Silahkan isi tanggal pemesanan, pilih karbohidrat dan catatan pemesanan (opsional) yang diinginkan
${pesananHTML} - +ilahkan isi tanggal pemesanan, pilih karbohidrat dan catatan pemesanan (opsional) yang diinginkan