This commit is contained in:
denisdulici
2017-09-18 16:58:25 +03:00
parent cb179c27eb
commit 4ba7734055
10 changed files with 12 additions and 16 deletions

View File

@ -36,7 +36,7 @@ class Bills extends Controller
*/
public function index()
{
$bills = Bill::with('bill_statuses')->collect();
$bills = Bill::with('status')->collect();
$status = collect(BillStatus::all()->pluck('name', 'code'))
->prepend(trans('general.all_statuses'), '');

View File

@ -22,7 +22,7 @@ class Payments extends Controller
*/
public function index()
{
$payments = Payment::with('account', 'category')->collect();
$payments = Payment::with(['account', 'category'])->collect();
$categories = collect(Category::enabled()->type('expense')->pluck('name', 'id'))
->prepend(trans('categories.all'), '');