fixed #3
This commit is contained in:
@ -38,7 +38,7 @@ class Invoices extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$invoices = Invoice::with('invoice_statuses')->collect();
|
||||
$invoices = Invoice::with('status')->collect();
|
||||
|
||||
$status = collect(InvoiceStatus::all()->pluck('name', 'code'))
|
||||
->prepend(trans('general.all_statuses'), '');
|
||||
|
@ -25,7 +25,7 @@ class Revenues extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$revenues = Revenue::with('account', 'category', 'customer')->collect();
|
||||
$revenues = Revenue::with(['account', 'category', 'customer'])->collect();
|
||||
|
||||
$customers = collect(Customer::enabled()->pluck('name', 'id'))
|
||||
->prepend(trans('customer.all'), '');
|
||||
|
Reference in New Issue
Block a user