osb/app/Http/Controllers/ResellerServicesController.php

28 lines
500 B
PHP
Raw Normal View History

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