fixed #3
This commit is contained in:
@ -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'), '');
|
||||
|
@ -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'), '');
|
||||
|
Reference in New Issue
Block a user