<?php

namespace App\Http\Controllers;

use App\Models\Transaction;

class TransferController extends Controller
{
    public function index()
    {
        $user = auth()->user();
        $transactions = Transaction::where('user_id', $user->id)
            ->orderByDesc('created_at')
            ->paginate(20);

        return view('dashboard.transfers', compact('user', 'transactions'));
    }
}
