dashboard-admin/app/Http/Controllers/Admin/AdminRefundController.php

74 lines
1.4 KiB
PHP

<?php
namespace App\Http\Controllers\Admin;
use App\Models\Refund;
use App\Models\Refunds;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class AdminRefundController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
// $refundData = Refund::all();
// return view('Admin.refund.history-refund', ['history_refund' => $refundData]);
return view('admin.refund.index',[
"refunds" => Refunds::HistoryRefund()
]);
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Refund $refund)
{
return view('admin.refund.detail-refund',[
"detail_refund"=> Refunds::DetailRefund()
]);
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Refund $refund)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Refund $refund)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Refund $refund)
{
//
}
}