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.
 
 
 
 
 

27 lines
620 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
{
/**
* Invoice list of a customer.
*
* @param \App\Entities\Partners\Customer $customer
* @return \Illuminate\View\View
*/
public function index(Customer $customer)
{
$invoices = $customer->invoices()->orderBy('due_date')->get();
return view('customers.invoices', compact('customer', 'invoices'));
}
}