*/ 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')); } }