diff --git a/app/Http/Controllers/Admin/BerandaController.php b/app/Http/Controllers/Admin/BerandaController.php
index a19ee06..bd8aae1 100755
--- a/app/Http/Controllers/Admin/BerandaController.php
+++ b/app/Http/Controllers/Admin/BerandaController.php
@@ -29,8 +29,8 @@ public function index()
$currMasuk = TransaksiBuket::whereMonth('created_at', $now->month)->whereYear('created_at', $now->year)->count() +
BookingFoto::whereMonth('created_at', $now->month)->whereYear('created_at', $now->year)->count();
- $currSelesai = TransaksiBuket::whereMonth('created_at', $now->month)->whereYear('created_at', $now->year)->where('status_transaksi', 'diterima')->count() +
- BookingFoto::whereMonth('created_at', $now->month)->whereYear('created_at', $now->year)->where('status_booking', 'diterima')->count();
+ $currSelesai = TransaksiBuket::whereMonth('created_at', $now->month)->whereYear('created_at', $now->year)->where('status_transaksi', 'selesai')->count() +
+ BookingFoto::whereMonth('created_at', $now->month)->whereYear('created_at', $now->year)->where('status_booking', 'selesai')->count();
$currBatal = TransaksiBuket::whereMonth('created_at', $now->month)->whereYear('created_at', $now->year)->where('status_transaksi', 'ditolak')->count() +
BookingFoto::whereMonth('created_at', $now->month)->whereYear('created_at', $now->year)->where('status_booking', 'ditolak')->count();
@@ -42,8 +42,8 @@ public function index()
$prevMasuk = TransaksiBuket::whereMonth('created_at', $lastMonth->month)->whereYear('created_at', $lastMonth->year)->count() +
BookingFoto::whereMonth('created_at', $lastMonth->month)->whereYear('created_at', $lastMonth->year)->count();
- $prevSelesai = TransaksiBuket::whereMonth('created_at', $lastMonth->month)->whereYear('created_at', $lastMonth->year)->where('status_transaksi', 'diterima')->count() +
- BookingFoto::whereMonth('created_at', $lastMonth->month)->whereYear('created_at', $lastMonth->year)->where('status_booking', 'diterima')->count();
+ $prevSelesai = TransaksiBuket::whereMonth('created_at', $lastMonth->month)->whereYear('created_at', $lastMonth->year)->where('status_transaksi', 'selesai')->count() +
+ BookingFoto::whereMonth('created_at', $lastMonth->month)->whereYear('created_at', $lastMonth->year)->where('status_booking', 'selesai')->count();
$prevBatal = TransaksiBuket::whereMonth('created_at', $lastMonth->month)->whereYear('created_at', $lastMonth->year)->where('status_transaksi', 'ditolak')->count() +
BookingFoto::whereMonth('created_at', $lastMonth->month)->whereYear('created_at', $lastMonth->year)->where('status_booking', 'ditolak')->count();
@@ -63,13 +63,13 @@ public function index()
'batal_grow' => $getGrowth($currBatal, $prevBatal),
];
- // --- 4. JADWAL & PENDING (Sudah Benar) ---
+ // --- 4. JADWAL & PENDING ---
$buketToday = TransaksiBuket::with(['pelanggan', 'buket'])->whereDate('tgl_ambil', $today)->where('status_transaksi', 'diterima')->get();
$fotoToday = BookingFoto::with(['pelanggan', 'paketFoto'])->whereDate('tgl_booking', $today)->where('status_booking', 'diterima')->orderBy('jam_mulai', 'asc')->get();
- $riwayatBuket = TransaksiBuket::with(['pelanggan', 'buket'])->where('status_transaksi', 'menunggu_verifikasi')->latest()->get();
- $riwayatFoto = BookingFoto::with(['pelanggan', 'paketFoto'])->where('status_booking', 'menunggu_verifikasi')->latest()->get();
+ $pesananBuket = TransaksiBuket::with(['pelanggan', 'buket'])->where('status_transaksi', 'menunggu_verifikasi')->latest()->get();
+ $pesananFoto = BookingFoto::with(['pelanggan', 'paketFoto'])->where('status_booking', 'menunggu_verifikasi')->latest()->get();
- return view('admin.beranda.index', compact('stat', 'buketToday', 'fotoToday', 'riwayatBuket', 'riwayatFoto'));
+ return view('admin.beranda.index', compact('stat', 'buketToday', 'fotoToday', 'pesananBuket', 'pesananFoto'));
}
}
diff --git a/resources/views/admin/beranda/admin.blade.php b/resources/views/admin/beranda/admin.blade.php
deleted file mode 100755
index b1ea2d8..0000000
--- a/resources/views/admin/beranda/admin.blade.php
+++ /dev/null
@@ -1,203 +0,0 @@
-@extends('layouts.admin')
-
-@section('title', 'Beranda')
-
-@section('content')
- 1 Congratulations Congratulations Congratulations Congratulations 1 Congratulations Congratulations Congratulations CongratulationsBunga Diambil Hari Ini
-
-
-
-
-
-
-
- Waktu
- Nama Pelanggan
- Nama Buket
- Aksi
-
-
-
- Si Ganteng
- Komentar dia...
- cb
-
-
-
-
-
- Jadwal Foto Hari Ini
-
-
-
-
-
-
-
- Waktu
- Nama Pelanggan
- Nama Paket
- Aksi
-
-
-
- Si Keren
- Komentar dia...
- cb
-
-
-
-
-
- Pesanan Pending
-
-
-
-
-
-
-
- No.
- Nama Pelanggan
- Nama Buket
- Tanggal Ambil
- Total
- Status
- Aksi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Selesai
-
-
-
-
-
-
-
-
-
-
-
-
-
- No.
- Nama Pelanggan
- Nama Paket
- Tanggal Booking
- Total
- Status
- Aksi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Selesai
-
-
-
-
-
-
-
| Waktu | -Nama Pelanggan | -Nama Buket | -Aksi | -
|---|---|---|---|
| Si Ganteng | -Komentar dia... | -cb | -- - - - | -
| Waktu | -Nama Pelanggan | -Nama Paket | -Aksi | -
|---|---|---|---|
| Si Keren | -Komentar dia... | -cb | -- - - - | -
| No. | -Nama Pelanggan | -Nama Buket | -Tanggal Ambil | -Total | -Status | -Aksi | -
|---|---|---|---|---|---|---|
|
- 1 - |
-
- Congratulations - |
-
- Congratulations - |
-
- Congratulations - |
-
- Congratulations - |
- - Selesai - | -- - - - | -
| No. | -Nama Pelanggan | -Nama Paket | -Tanggal Booking | -Total | -Status | -Aksi | -
|---|---|---|---|---|---|---|
|
- 1 - |
-
- Congratulations - |
-
- Congratulations - |
-
- Congratulations - |
-
- Congratulations - |
- - Selesai - | -- - - - | -