update list all customer transactions with the button

This commit is contained in:
edmondlang
2023-06-30 14:21:47 +08:00
parent a90c79396b
commit 738394c143
2 changed files with 6 additions and 1 deletions
@@ -52,6 +52,11 @@
<wallet-top-up-form-component :data="data" :amount="(!data.wallet ? amount : (Math.round((((amount - data.wallet.amount) < '0.00' ? '0.00' : (amount - data.wallet.amount)) + Number.EPSILON) * 100) / 100).toFixed(2))" :creditable="creditable"></wallet-top-up-form-component>
</div>
</div>
<div class="row m-t-20">
<div class="col">
<a :href="route('account.statment', data.reference)">View Account Statement<i class="fa fa-angle-right p-l-5"></i></a>
</div>
</div>
</div>
</div>
</template>
+1 -1
View File
@@ -77,7 +77,7 @@ Route::get('/customer/{marking}', function ($marking) {
Route::get('/customer/{marking}/transactions', function ($marking) {
$id = \App\Models\Company::where('reference', '=', $marking)->first()->id;
return view('pages.transactions.history', ['id' => $id]);
})->name('transactions.history');
})->name('account.statment');
Route::get('/payments', function () {
return view('pages.payments');