95 lines
2.2 KiB
PHP
95 lines
2.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\User;
|
|
|
|
use App\Models\Transaction;
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use App\Models\TransactionUser;
|
|
|
|
class UserTransactionController extends Controller
|
|
{
|
|
/**
|
|
* Display a listing of the resource.
|
|
*/
|
|
public function indexPembeli()
|
|
{
|
|
return view('user.transaction.pembeli.transaction-pembeli',[
|
|
'name'=>'npannisa',
|
|
'TransactionUser'=>TransactionUser::HistoryTransaction()
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Display a listing of the resource.
|
|
*/
|
|
public function indexPenjual()
|
|
{
|
|
return view('user.transaction.penjual.transaction-penjual',[
|
|
'name'=>'npannisa',
|
|
"TransactionUser"=>TransactionUser::HistoryTransaction()
|
|
]);
|
|
}
|
|
|
|
public function detailTransaction($id){
|
|
return view('user.transaction.pembeli.detail-transaction',[
|
|
'name'=>'npannisa',
|
|
"TransactionUser"=>TransactionUser::HistoryTransaction()
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Show the form for creating a new resource.
|
|
*/
|
|
public function createTransaction(Request $request)
|
|
{
|
|
return view('user.transaction.pembeli.new-transaction',[
|
|
'name'=>'npannisa',
|
|
"TransactionUser"=>TransactionUser::HistoryTransaction()
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Store a newly created resource in storage.
|
|
*/
|
|
public function invoiceTransaction($id)
|
|
{
|
|
return view('user.transaction.pembeli.invoice-transaction',[
|
|
'name'=>'npannisa',
|
|
"TransactionUser"=>TransactionUser::HistoryTransaction()
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Display the specified resource.
|
|
*/
|
|
public function show(Transaction $transaction)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Show the form for editing the specified resource.
|
|
*/
|
|
public function edit(Transaction $transaction)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Update the specified resource in storage.
|
|
*/
|
|
public function update(Request $request, Transaction $transaction)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Remove the specified resource from storage.
|
|
*/
|
|
public function destroy(Transaction $transaction)
|
|
{
|
|
//
|
|
}
|
|
}
|