<?php
namespace App\Http\Controllers;
use App\Models\Transaction;
use Illuminate\Http\Request;

class TransactionController extends Controller
{
    public function index(){ $transactions = Transaction::latest()->paginate(20); return view('dashboard.transactions', compact('transactions')); }
    public function show(Transaction $transaction){ return view('dashboard.transaction_show', compact('transaction')); }
}
