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.
24 lines
517 B
24 lines
517 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
|
|
{
|
|
public function index(Customer $customer)
|
|
{
|
|
$payments = $customer->payments()
|
|
->latest()
|
|
->with('project')
|
|
->paginate();
|
|
|
|
return view('customers.payments', compact('customer', 'payments'));
|
|
}
|
|
}
|