2018-06-05 11:13:57 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use Auth;
|
|
|
|
|
|
|
|
class UserServicesController extends Controller
|
|
|
|
{
|
|
|
|
public function __construct()
|
|
|
|
{
|
2018-06-19 12:31:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function invoices()
|
|
|
|
{
|
|
|
|
return ['data'=>Auth::user()->invoices_due->values()];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function payments()
|
|
|
|
{
|
|
|
|
return ['data'=>Auth::user()->payment_history->values()];
|
2018-06-05 11:13:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function services()
|
|
|
|
{
|
|
|
|
return ['data'=>Auth::user()->services_active->values()];
|
|
|
|
}
|
|
|
|
}
|