You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
467 B

<?php
namespace App\Http\Controllers\Customers;
use App\Entities\Partners\Customer;
use App\Http\Controllers\Controller;
/**
* Customer Invoices Controller.
*
* @author Nafies Luthfi <nafiesL@gmail.com>
*/
class InvoicesController extends Controller
{
public function index(Customer $customer)
{
$invoices = $customer->invoices()->orderBy('due_date')->get();
return view('customers.invoices', compact('customer', 'invoices'));
}
}