middleware('auth:admin'); } public function index() { $wallets = Wallet::with('user')->paginate(20); return view('backend.pages.wallet.index', compact('wallets')); } public function settings() { return view('backend.pages.wallet.settings'); } public function saveSettings(Request $request) { set_static_option('wallet_fee_percent', $request->wallet_fee_percent); set_static_option('wallet_min_withdraw', $request->wallet_min_withdraw); return back()->with(['msg' => 'Pengaturan wallet diperbarui', 'type' => 'success']); } }