This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bbc90f
commit 0fe8498
Showing
10 changed files
with
199 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
database/migrations/2022_05_16_174019_update_orders_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('orders', function (Blueprint $table) { | ||
$table->timestamp('payment_expiry_time')->nullable(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('orders', function (Blueprint $table) { | ||
$table->dropColumn('payment_expiry_time'); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<x-base-layout> | ||
<x-base-body selected="My order"> | ||
<div class="mt-24 mx-20"> | ||
<h2 class="font-bold text-3xl text-lilac-100">Konfirmasi Pembayaran</h2> | ||
</div> | ||
<div class="flex justify-center"> | ||
<div class="w-full max-w-7xl shadow rounded-lg p-10 my-6"> | ||
<p>Order ID : {{ $order->id }}</p> | ||
<p>Name : {{ auth()->user()->name }}</p> | ||
<p>Email : {{ auth()->user()->email }}</p> | ||
<p>Total Price : {{ $order->total_price }}</p> | ||
<p>Payment Status : {{ $order->payment_status }}</p> | ||
<p>Payment Method : {{ $order->payment_method }}</p> | ||
<p>Pay Before : {{ $order->payment_expiry_time }}</p> | ||
<p>Virtual Account : {{ $order->virtual_account }}</p> | ||
<a href="{{ route('check-payment', [$order->id]) }}"> | ||
<x-button filled="true">Konfirmasi Pembayaran</x-button> | ||
</a> | ||
</div> | ||
</div> | ||
</x-base-body> | ||
</x-base-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters