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.
 
 
 
 
 

30 lines
664 B

<?php
namespace App\Http\Controllers\Customers;
use App\Entities\Partners\Customer;
use App\Http\Controllers\Controller;
/**
* Customer Payments Controller.
*
* @author Nafies Luthfi <nafiesL@gmail.com>
*/
class PaymentsController extends Controller
{
/**
* Payment list of a customer.
*
* @param \App\Entities\Partners\Customer $customer
* @return \Illuminate\View\View
*/
public function index(Customer $customer)
{
$payments = $customer->payments()
->latest()
->with('project')
->get();
return view('customers.payments', compact('customer', 'payments'));
}
}