@if ($user->payment_history->count())
-
-
- Date |
- Amount |
-
- @php
- $c=0;
- @endphp
- @foreach ($user->payment_history as $o)
- @if(! isset($limit) OR $c++ > $limit)
- @break;
- @endif
-
- {{ $o->payment_date }} |
- {{-- @todo Number format should configured by currency --}}
- {{ number_format($o->total_amt,2) }} |
-
- @endforeach
+
@else
No payments recorded
@endif
-
\ No newline at end of file
+
+
+@section('page-scripts')
+ @css('https://cdn.datatables.net/responsive/2.2.1/css/responsive.dataTables.min.css')
+ @css('https://cdn.datatables.net/rowgroup/1.0.2/css/rowGroup.dataTables.min.css')
+ @js('https://cdn.datatables.net/responsive/2.2.1/js/dataTables.responsive.min.js')
+ @js('https://cdn.datatables.net/rowgroup/1.0.2/js/dataTables.rowGroup.min.js')
+
+
+
+@append
\ No newline at end of file
diff --git a/resources/theme/backend/adminlte/widgets/services_active.blade.php b/resources/theme/backend/adminlte/widgets/services_active.blade.php
index 29b38e5..1dc804d 100644
--- a/resources/theme/backend/adminlte/widgets/services_active.blade.php
+++ b/resources/theme/backend/adminlte/widgets/services_active.blade.php
@@ -14,9 +14,10 @@
+ ID |
Category |
Service |
- Name |
+ Product |
Status |
Next Invoice |
@@ -24,7 +25,7 @@
Count {{ $user->services_active->count() }} |
- |
+ |
@@ -40,32 +41,44 @@
@js('https://cdn.datatables.net/responsive/2.2.1/js/dataTables.responsive.min.js')
@js('https://cdn.datatables.net/rowgroup/1.0.2/js/dataTables.rowGroup.min.js')
+
diff --git a/routes/api.php b/routes/api.php
index 20cf88a..180974e 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -20,5 +20,7 @@ Route::middleware('auth:api')->get('/user', function (Request $request) {
*/
Route::group(['middleware'=>'auth:api'], function() {
+ Route::get('/u/invoices','UserServicesController@invoices');
+ Route::get('/u/payments','UserServicesController@payments');
Route::get('/u/services','UserServicesController@services');
});