85 lines
2.4 KiB
PHP
85 lines
2.4 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Models\Refund;
|
|
use App\Models\transaction;
|
|
use App\Models\Users;
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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::get('/', function () {
|
|
return view('index',[
|
|
'name'=>'Jilhan Haura',
|
|
"transaction"=>transaction::allTransactions()
|
|
]);
|
|
});
|
|
Route::get('/detail_transaction', function () {
|
|
return view('Admin/transaction/detail-transaction',[
|
|
'name'=>'Jilhan Haura',
|
|
// "transaction"=> transaction::allTransactions()
|
|
]);
|
|
});
|
|
Route::get('/history_transaction', function () {
|
|
return view('Admin/transaction/History_Transaction',[
|
|
'name'=>'Jilhan Haura',
|
|
"transaction"=> transaction::allTransactions()
|
|
]);
|
|
});
|
|
Route::get('/tracking_transaction', function () {
|
|
return view('Admin/transaction/Tracking',[
|
|
'name'=>'Jilhan Haura',
|
|
"detail_transaction"=> transaction::allDetailTransactions()
|
|
]);
|
|
});
|
|
Route::get('/history_refund', function () {
|
|
return view('Admin/refund/history-refund',[
|
|
'name'=>'Jilhan Haura',
|
|
"history_refund" => Refund::HistoryRefund()
|
|
]);
|
|
});
|
|
Route::get('/detail_refund',function() {
|
|
return view('Admin/refund/detail-refund',[
|
|
'name'=>'Jilhan Haura',
|
|
"detail_refund"=> Refund::DetailRefund()
|
|
]);
|
|
});
|
|
Route::get('/next_detail_refund',function() {
|
|
return view('Admin/refund/next-detail-refund',[
|
|
'name'=>"Jilhan Haura"
|
|
]);
|
|
});
|
|
Route::get('/list_user',function() {
|
|
return view('Admin/users/list-user',[
|
|
'name'=>"Jilhan Haura",
|
|
"list_users" => Users::listUsers()
|
|
]);
|
|
});
|
|
Route::get('/detail-user',function() {
|
|
return view('Admin/users/detail-user',[
|
|
'name'=>"Jilhan Haura",
|
|
// "list_users" => Users::listUsers()
|
|
]);
|
|
});
|
|
Route::get('/profile',function() {
|
|
return view('Admin/profile/index',[
|
|
'name'=>"Jilhan Haura",
|
|
// "list_users" => Users::listUsers()
|
|
]);
|
|
});
|
|
|
|
|
|
Route::get('/User', function () {
|
|
return view('User/index',[
|
|
'name'=>'Jilhan Haura',
|
|
"transaction"=>transaction::allTransactions()
|
|
]);
|
|
});
|