You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
480 B
21 lines
480 B
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Transaction;
|
|
use Illuminate\Http\Request;
|
|
|
|
class TransactionsController extends Controller
|
|
{
|
|
public function index(Request $request)
|
|
{
|
|
$transactions = Transaction::orderBy('invoice_no', 'desc')->paginate(24);
|
|
|
|
return view('transactions.index', compact('transactions'));
|
|
}
|
|
|
|
public function show(Transaction $transaction)
|
|
{
|
|
return view('transactions.show', compact('transaction'));
|
|
}
|
|
}
|