diff --git a/app/Http/Controllers/pembayaranController.php b/app/Http/Controllers/pembayaranController.php new file mode 100644 index 00000000..3e875d51 --- /dev/null +++ b/app/Http/Controllers/pembayaranController.php @@ -0,0 +1,36 @@ + array( + // 'order_id' => rand(), + // 'gross_amount' => 10000, + // ), + // 'customer_details' => array( + // 'first_name' => 'nurul prima', + // 'last_name' => 'annisa', + // 'email' => 'npannisa23@example.com', + // 'phone' => '08111222333', + // ), + // ); + + // $snapToken = \Midtrans\Snap::getSnapToken($params); + // return view('user.transaction.pembeli.bayar-transaction', ['snap_token'=>$snapToken]); + // } + // } diff --git a/composer.json b/composer.json index 181dfc70..6f0ba6b4 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ "laravel/framework": "^10.10", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", + "midtrans/midtrans-php": "^2.5", "realrashid/sweet-alert": "^7.1" }, "require-dev": { diff --git a/composer.lock b/composer.lock index aa33680c..b8fab7bc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a47c4c4dd117ce52e4b5d03d7487513b", + "content-hash": "d1d51760d2576a17e3aa9e852fe61200", "packages": [ { "name": "brick/math", @@ -1808,6 +1808,61 @@ ], "time": "2023-08-05T12:09:49+00:00" }, + { + "name": "midtrans/midtrans-php", + "version": "2.5.2", + "source": { + "type": "git", + "url": "https://github.com/Midtrans/midtrans-php.git", + "reference": "a1ad0c824449ca8c68c4cf11b3417ad518311d2b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Midtrans/midtrans-php/zipball/a1ad0c824449ca8c68c4cf11b3417ad518311d2b", + "reference": "a1ad0c824449ca8c68c4cf11b3417ad518311d2b", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "php": ">=5.4" + }, + "require-dev": { + "phpunit/phpunit": "5.7.*", + "psy/psysh": "0.4.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Midtrans\\": "Midtrans/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andri Setiawan", + "email": "andri.setiawan@veritrans.co.id" + }, + { + "name": "Alvin Litani", + "email": "alvin.litani@veritrans.co.id" + }, + { + "name": "Ismail Faruqi", + "email": "ismail.faruqi@veritrans.co.id" + } + ], + "description": "PHP Wrapper for Midtrans Payment API.", + "homepage": "https://midtrans.com", + "support": { + "issues": "https://github.com/Midtrans/midtrans-php/issues", + "source": "https://github.com/Midtrans/midtrans-php/tree/2.5.2" + }, + "time": "2021-08-23T08:52:05+00:00" + }, { "name": "monolog/monolog", "version": "3.4.0", diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 68961532..61dddf00 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -4210,5 +4210,52 @@ body:not(.sidebar-mini) .sidebar-style-2 .sidebar-menu li.active ul.dropdown-men .flex-container { display: flex; - justify-content: space-between; /* Menggeser elemen ke kanan */ + justify-content: space-between; } + +/* CSS untuk gambar profil */ +.card-head{ + /* background-image: linear-gradient(to bottom right, rgb(144, 12, 63) 0%, rgb(186, 39, 96) 100%, rgb(161, 9, 73) 100%); */ + text-align: center; + width: 100%; + background-color: #E6EBEE; + border-radius: 10px 10px 10px 10px ; + color: #393B45; + height: 350px; + font-weight: 800; +} +#card_head { + width: 100%; + height: 100%; + object-fit: cover; + border-radius: 10px 10px 10px 10px ; +} + +.image-crop { + display: block; + position: relative; + background-color: #E6EBEE; + width: 170px; + height: 170px; + margin: 0 auto; + margin-top: -70px; + margin-left: 60px; + overflow: hidden; + border-radius: 50%; + box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); + border: 3px solid #fff; + background-size: cover; /* Menyesuaikan gambar dengan elemen */ + background-position: center; /* Menengahkan gambar */ + background-repeat: no-repeat; /* Menghindari pengulangan gambar */ +} + + + + + +.row-divider { + margin-bottom: 10px; +} + + + diff --git a/public/assets/images/profilee.jpg b/public/assets/images/profilee.jpg new file mode 100644 index 00000000..daa4a67e Binary files /dev/null and b/public/assets/images/profilee.jpg differ diff --git a/public/assets/images/sampul.jpg b/public/assets/images/sampul.jpg new file mode 100644 index 00000000..9d8ec259 Binary files /dev/null and b/public/assets/images/sampul.jpg differ diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index bf593251..612612d8 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -93,7 +93,7 @@
{{ $HistoryTransactionPembeli['orderId'] }} | {{ $HistoryTransactionPembeli['seller'] }} | {{ $HistoryTransactionPembeli['total'] }} | -{{ $HistoryTransactionPembeli['dueDate'] }} | +{{ $HistoryTransactionPembeli['dueDate'] }} |
@php
- $statusClass="";
- if ($HistoryTransactionPembeli['status'] === 'OnProgress'){
- $statusClass = 'badge-warning';
- }elseif ($HistoryTransactionPembeli['status'] === 'Success'){
- $statusClass ='btn btn-info';
- }elseif ($HistoryTransactionPembeli['status'] === 'Failed'){
- $statusClass ='badge badge-danger';
+ $statusClass = '';
+ if ($HistoryTransactionPembeli['status'] === 'OnProgress') {
+ $statusClass = 'badge-warning';
+ } elseif ($HistoryTransactionPembeli['status'] === 'Success') {
+ $statusClass = 'btn btn-info';
+ } elseif ($HistoryTransactionPembeli['status'] === 'Failed') {
+ $statusClass = 'badge badge-danger';
}
@endphp
- {{ $HistoryTransactionPembeli['status'] }} |
+