2018-07-17 04:10:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use Auth;
|
|
|
|
|
|
|
|
class ResellerServicesController extends Controller
|
|
|
|
{
|
2018-08-08 23:33:51 +00:00
|
|
|
public function accounts()
|
|
|
|
{
|
|
|
|
return ['data'=>Auth::user()->all_accounts()->values()];
|
|
|
|
}
|
|
|
|
|
2018-07-17 04:10:40 +00:00
|
|
|
public function agents()
|
|
|
|
{
|
|
|
|
return ['data'=>Auth::user()->all_agents()->values()];
|
|
|
|
}
|
|
|
|
|
2018-08-08 23:33:51 +00:00
|
|
|
public function clients()
|
2018-07-17 04:10:40 +00:00
|
|
|
{
|
2018-08-08 23:33:51 +00:00
|
|
|
return ['data'=>Auth::user()->all_clients()->values()];
|
2018-07-17 04:10:40 +00:00
|
|
|
}
|
|
|
|
}
|