Skip to content

Commit a5249fc

Browse files
committed
Remove Invoice
1 parent a6268f7 commit a5249fc

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

app/Http/Controllers/User/CheckoutController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,4 @@ public function success(Checkout $checkout)
126126
return view('checkout.success');
127127
}
128128

129-
public function invoice(Checkout $checkout)
130-
{
131-
return $checkout;
132-
}
133129
}

resources/views/emails/checkout/afterCheckout.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<br>
66
Thank you for register on <b>{{$checkout->Camp->title}}</b>, please see payment instruction by clic the button below.
77

8-
@component('mail::button', ['url' => route('user.checkout.invoice', $checkout->id)])
9-
Get Invoice
8+
@component('mail::button', ['url' => route('dashboard', $checkout->id)])
9+
Dashboard
1010
@endcomponent
1111

1212
Thanks,<br>

routes/web.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
//
4141
Route::get('dashboard', [HomeController::class, 'dashboard'])->name('dashboard');
42-
Route::get('dashboard/checkout/invoice/{checkout}', [CheckoutController::class, 'invoice'])->name('user.checkout.invoice');
4342
});
4443

4544
require __DIR__.'/auth.php';

0 commit comments

Comments
 (0)