Remove reference to a method no longer used.

This commit is contained in:
James Cole
2022-01-29 14:11:12 +01:00
parent acb2a8697a
commit 003d8ba02a
104 changed files with 219 additions and 256 deletions

View File

@@ -124,7 +124,7 @@ class CreateController extends Controller
$request->session()->forget('accounts.create.fromStore');
Log::channel('audit')->info('Creating new account.');
return prefixView(
return view(
'accounts.create',
compact('subTitleIcon', 'liabilityDirections', 'locations', 'objectType', 'interestPeriods', 'subTitle', 'roles', 'liabilityTypes')
);

View File

@@ -84,7 +84,7 @@ class DeleteController extends Controller
// put previous url in session
$this->rememberPreviousUri('accounts.delete.uri');
return prefixView('accounts.delete', compact('account', 'subTitle', 'accountList', 'objectType'));
return view('accounts.delete', compact('account', 'subTitle', 'accountList', 'objectType'));
}
/**

View File

@@ -159,7 +159,7 @@ class EditController extends Controller
$request->session()->flash('preFilled', $preFilled);
return prefixView(
return view(
'accounts.edit',
compact(
'account',

View File

@@ -117,7 +117,7 @@ class IndexController extends Controller
$accounts = new LengthAwarePaginator($accounts, $total, $pageSize, $page);
$accounts->setPath(route('accounts.inactive.index', [$objectType]));
return prefixView('accounts.index', compact('objectType', 'inactivePage', 'subTitleIcon', 'subTitle', 'page', 'accounts'));
return view('accounts.index', compact('objectType', 'inactivePage', 'subTitleIcon', 'subTitle', 'page', 'accounts'));
}
@@ -188,6 +188,6 @@ class IndexController extends Controller
Log::debug(sprintf('Count of accounts after LAP (1): %d', $accounts->count()));
Log::debug(sprintf('Count of accounts after LAP (2): %d', $accounts->getCollection()->count()));
return prefixView('accounts.index', compact('objectType', 'inactiveCount', 'subTitleIcon', 'subTitle', 'page', 'accounts'));
return view('accounts.index', compact('objectType', 'inactiveCount', 'subTitleIcon', 'subTitle', 'page', 'accounts'));
}
}

View File

@@ -136,7 +136,7 @@ class ReconcileController extends Controller
$indexUri = route('accounts.reconcile', [$account->id, '%start%', '%end%']);
$objectType = 'asset';
return prefixView(
return view(
'accounts.reconcile.index',
compact(
'account',

View File

@@ -135,7 +135,7 @@ class ShowController extends Controller
$showAll = false;
$balance = app('steam')->balance($account, $end);
return prefixView(
return view(
'accounts.show',
compact(
'account',
@@ -194,7 +194,7 @@ class ShowController extends Controller
$showAll = true;
$balance = app('steam')->balance($account, $end);
return prefixView(
return view(
'accounts.show',
compact(
'account',