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
589 B
27 lines
589 B
<?php
|
|
|
|
namespace App\Http\Controllers\Customers;
|
|
|
|
use App\Entities\Partners\Customer;
|
|
use App\Http\Controllers\Controller;
|
|
|
|
/**
|
|
* Customer Projects Controller.
|
|
*
|
|
* @author Nafies Luthfi <nafiesL@gmail.com>
|
|
*/
|
|
class ProjectsController extends Controller
|
|
{
|
|
/**
|
|
* Project list of a customer.
|
|
*
|
|
* @param \App\Entities\Partners\Customer $customer
|
|
* @return \Illuminate\View\View
|
|
*/
|
|
public function index(Customer $customer)
|
|
{
|
|
$projects = $customer->projects;
|
|
|
|
return view('customers.projects', compact('customer', 'projects'));
|
|
}
|
|
}
|