128 lines
3.1 KiB
PHP
128 lines
3.1 KiB
PHP
<?php
|
|
|
|
use App\Models\Refund;
|
|
use App\Models\RefundUser;
|
|
use App\Models\transaction;
|
|
use App\Models\ContactUser;
|
|
use App\Models\TransactionUser;
|
|
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!
|
|
|
|
|
*/
|
|
|
|
Route::post('/refund-accept/{id}', 'ReturnItemController@acceptRefund')->name('refund/detail-refund/refund.accept');
|
|
Route::get('/refund-decline/{id}', 'ReturnItemController@declineRefund')->name('refund/detail-refund/refund.decline');
|
|
|
|
// dashboard
|
|
|
|
Route::get('/welcome', function () {
|
|
return view('welcome'
|
|
);
|
|
});
|
|
|
|
Route::get('/', function () {
|
|
return view('index',[
|
|
'name'=>'npannisa',
|
|
"refundUserss"=>RefundUser::HistoryRefundUser()
|
|
]);
|
|
});
|
|
|
|
|
|
// Route::get('/dashboard', function(){
|
|
// return view('dashboard.index');
|
|
// })-> middleware('auth');
|
|
|
|
|
|
// Route::get('/', function () {
|
|
// return view('user.dashboard.index',[
|
|
// 'name'=>'npannisa',
|
|
// "transaction"=>transaction::allTransactions()
|
|
// ]);
|
|
// });
|
|
|
|
// contact
|
|
Route::get('/contact', function () {
|
|
return view('user/contact/contact',[
|
|
'name' => "npannisa",
|
|
"contacts"=>ContactUser::ContactUser(),
|
|
]);
|
|
});
|
|
|
|
// Route::get('/detail-contact', function () {
|
|
// return view('user/contact/detail-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',
|
|
"TransactionUser"=>TransactionUser::HistoryTransaction()
|
|
]);
|
|
});
|
|
|
|
Route::get('/detail-transaction', function () {
|
|
return view('user/transaction/Pembeli/detail-transaction',[
|
|
'name'=>'npannisa',
|
|
"TransactionUser"=>TransactionUser::HistoryTransaction()
|
|
]);
|
|
});
|
|
|
|
Route::get('/refund-transaction', function () {
|
|
return view('user/transaction/Pembeli/refund-transaction',[
|
|
'name'=>'npannisa',
|
|
"refundUserss"=>RefundUser::HistoryRefundUser()
|
|
]);
|
|
});
|
|
|
|
|
|
Route::get('/new-transaction', function () {
|
|
return view('user/transaction/Pembeli/new-transaction',[
|
|
'name'=>'npannisa',
|
|
"transaction"=>transaction::allTransactions()
|
|
]);
|
|
});
|
|
|
|
Route::get('/penjual', function () {
|
|
return view('user/transaction/Penjual/transaction-penjual',[
|
|
'name'=>'npannisa',
|
|
"TransactionUser"=>TransactionUser::HistoryTransaction()
|
|
]);
|
|
});
|
|
|
|
// Route::get('/penjual', function () {
|
|
// return view('user/transaction/Penjual/tracking',[
|
|
// 'name'=>'npannisa',
|
|
// "TransactionUser"=>TransactionUser::HistoryTransaction()
|
|
// ]);
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|