123 lines
3.1 KiB
PHP
123 lines
3.1 KiB
PHP
<?php
|
|
|
|
use App\Models\RefundUser;
|
|
use App\Models\ContactUser;
|
|
use App\Models\TransactionPembeli;
|
|
use App\Models\TransactionPenjual;
|
|
use App\Http\Controllers\PembayaranController;
|
|
use App\Http\Controllers\ProfileController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
// dashboard
|
|
|
|
Route::get('/welcome', function () {
|
|
return view('welcome'
|
|
);
|
|
});
|
|
|
|
Route::get('/', function () {
|
|
return view('index',[
|
|
'name'=>'npannisa',
|
|
"TransactionPembeli"=>TransactionPembeli::HistoryTransactionPembeli()
|
|
]);
|
|
});
|
|
|
|
|
|
// contact
|
|
Route::get('/contact', function () {
|
|
return view('user/contact/contact',[
|
|
'name' => "npannisa",
|
|
"contacts"=>ContactUser::ContactUser(),
|
|
]);
|
|
});
|
|
|
|
// refund
|
|
Route::get('/refund', function () {
|
|
return view('user/refund/refund',[
|
|
'name'=>'npannisa',
|
|
"refundUserss"=>RefundUser::HistoryRefundUser()
|
|
]);
|
|
});
|
|
|
|
|
|
// transaction
|
|
|
|
Route::get('/pembeli', function () {
|
|
return view('user/transaction/Pembeli/transaction-pembeli',[
|
|
'name'=>'npannisa',
|
|
"TransactionPembeli"=>TransactionPembeli::HistoryTransactionPembeli()
|
|
]);
|
|
});
|
|
|
|
Route::get('/detail-transaction', function () {
|
|
return view('user/transaction/Pembeli/detail-transaction',[
|
|
'name'=>'npannisa',
|
|
"TransactionPembeli"=>TransactionPembeli::HistoryTransactionPembeli()
|
|
]);
|
|
});
|
|
|
|
Route::get('/refund-transaction', function () {
|
|
return view('user/transaction/Pembeli/refund-transaction',[
|
|
'name'=>'npannisa',
|
|
"TransactionPembeli"=>TransactionPembeli::HistoryTransactionPembeli()
|
|
]);
|
|
});
|
|
|
|
|
|
Route::get('/new-transaction', function () {
|
|
return view('user/transaction/Pembeli/new-transaction',[
|
|
'name'=>'npannisa',
|
|
"TransactionPembeli"=>TransactionPembeli::HistoryTransactionPembeli()
|
|
]);
|
|
});
|
|
|
|
|
|
Route::get('/penjual', function () {
|
|
return view('user/transaction/Penjual/transaction-penjual',[
|
|
'name'=>'npannisa',
|
|
"TransactionPenjual"=>TransactionPenjual::HistoryTransactionPenjual()
|
|
]);
|
|
});
|
|
|
|
Route::get('/invoice-transaction', function () {
|
|
return view('user/transaction/Pembeli/invoice-transaction',[
|
|
'name'=>'npannisa',
|
|
"TransactionPembeli"=>TransactionPembeli::HistoryTransactionPembeli()
|
|
]);
|
|
});
|
|
|
|
// percobaan midtrans untuk payment
|
|
Route::get('/test', [pembayaranController::class, 'index']);
|
|
Route::get('/payment', [pembayaranController::class, 'payment']);
|
|
Route::post('/payment', [pembayaranController::class, 'payment_post']);
|
|
|
|
|
|
// profile
|
|
Route::get('/profile', function () {
|
|
return view('user/profile/index',[
|
|
'name'=>'npannisa',
|
|
]);
|
|
});
|
|
|
|
// verifikasi
|
|
Route::get('/verifikasi', function () {
|
|
return view('user/verifikasi/index',[
|
|
'name'=>'npannisa',
|
|
]);
|
|
});
|
|
|
|
|
|
|
|
|