diff --git a/resources/views/pages/admin/manage/transaction/index.blade.php b/resources/views/pages/admin/manage/transaction/index.blade.php
index 75de0d8..6fd84d4 100644
--- a/resources/views/pages/admin/manage/transaction/index.blade.php
+++ b/resources/views/pages/admin/manage/transaction/index.blade.php
@@ -73,6 +73,13 @@
@if (in_array(auth()->user()->role_id, [1, 3, 4]))
+ -
+
+
+
+
-
+
+
+
+
+
+ Invoice
+
+
+
+
+
+
+
+
+
+
+
+ | Tanggal: |
+ {{ date('Y-m-d H:i') }} |
+
+
+ | Invoice: |
+ #{{ $transaction->id }} |
+
+
+ | Pelanggan: |
+ {{ $transaction->customer->name }} |
+
+
+
+
+
+
+
+
+
+ | Layanan |
+ Harga |
+
+
+ | {{ $transaction->service->name }} |
+ {{ number_format($transaction->price, 2) }} |
+
+
+ | Diskon |
+ {{ number_format($transaction->discount, 2) }} |
+
+
+ | Total |
+ {{ number_format($transaction->total, 2) }} |
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/routes/web.php b/routes/web.php
index 2313800..67878b7 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -17,7 +17,9 @@
use App\Http\Controllers\Admin\Setting\AccountController;
use App\Http\Controllers\Admin\Setting\ApplicationController;
use App\Http\Controllers\Client\HomepageController;
+use App\Models\Transaction;
use Illuminate\Support\Facades\Route;
+use Psy\Readline\Transient;
Route::prefix('auth')->group(function () {
Route::get('login', [LoginController::class, 'index'])->name('login');
@@ -176,3 +178,9 @@
});
Route::get('/', [HomepageController::class, 'index'])->name('homepage');
+
+Route::get('/print-page', function () {
+ return view('print-page', [
+ 'transaction' => Transaction::first()
+ ]); // Ganti dengan nama view halaman cetak Anda
+})->name('print.page');
|