更新 UI 一致性規範與公共事業費樣式
This commit is contained in:
@@ -36,9 +36,14 @@ class UtilityFeeController extends Controller
|
||||
}
|
||||
|
||||
// Sorting
|
||||
$sortField = $request->input('sort_field', 'transaction_date');
|
||||
$sortDirection = $request->input('sort_direction', 'desc');
|
||||
$query->orderBy($sortField, $sortDirection);
|
||||
$sortField = $request->input('sort_field');
|
||||
$sortDirection = $request->input('sort_direction');
|
||||
|
||||
if ($sortField && $sortDirection) {
|
||||
$query->orderBy($sortField, $sortDirection);
|
||||
} else {
|
||||
$query->orderBy('transaction_date', 'desc');
|
||||
}
|
||||
|
||||
$fees = $query->paginate($request->input('per_page', 15))->withQueryString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user