dashboard-admin/routes/web.php

65 lines
2.0 KiB
PHP

<?php
use App\Models\Refund;
use App\Models\transaction;
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::get('/', function () {
return view('index',[
'name'=>'Jilhan Haura',
"transaction"=>transaction::allTransactions()
]);
});
Route::get('/list_transaction', function () {
return view('transaction/List_Transaction',[
'name'=>'Jilhan Haura',
"transaction"=> transaction::allTransactions()
]);
});
Route::get('/history_transaction', function () {
return view('transaction/History_Transaction',[
'name'=>'Jilhan Haura',
"transaction"=> transaction::allTransactions()
]);
});
Route::get('/Detail_History', function () {
return view('transaction/Detail_History_Transaction',[
'name'=>'Jilhan Haura',
"detail_transaction"=> transaction::allDetailTransactions()
]);
});
Route::get('/history_refund', function () {
return view('refund/history-refund',[
'name'=>'Jilhan Haura',
"history_refund" => Refund::HistoryRefund()
]);
});
Route::get('/detail_refund',function() {
return view('refund/detail-refund',[
'name'=>'Jilhan Haura',
"detail_refund"=> Refund::DetailRefund()
]);
});
Route::get('/next_detail_refund',function() {
return view('refund/next-detail-refund',[
'name'=>"Jilhan Haura"
]);
});
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');
Route::get('/sign-in_sign-up', function () {
return view('auth.sign-in_sign-up');
});