Added hosting report and enabled updating hosting details

This commit is contained in:
Deon George
2022-04-02 20:26:59 +11:00
parent edc06e51fb
commit 9659621ba0
11 changed files with 275 additions and 19 deletions

View File

@@ -269,6 +269,20 @@ class ServiceController extends Controller
->with('o',$o);
}
public function hosting_list(): View
{
// @todo Need to add the with path when calculating next_billed and price
$o = Service\Host::serviceActive()
->serviceUserAuthorised(Auth::user())
->select('ab_service__hosting.*')
->join('ab_service',['ab_service.id'=>'ab_service__hosting.service_id'])
->with(['service.account','service.product.type.supplied.supplier_detail.supplier','tld'])
->get();
return view('r.service.host.list')
->with('o',$o);
}
/**
* Update details about a service
*