diff --git a/app/Http/Controllers/Api/AssetModelsController.php b/app/Http/Controllers/Api/AssetModelsController.php index 54efba8a08..abc1f65a5a 100644 --- a/app/Http/Controllers/Api/AssetModelsController.php +++ b/app/Http/Controllers/Api/AssetModelsController.php @@ -96,8 +96,9 @@ class AssetModelsController extends Controller break; } + $total = $assetmodels->count(); $assetmodels = $assetmodels->skip($offset)->take($limit)->get(); - return (new AssetModelsTransformer)->transformAssetModels($assetmodels, $assetmodels->count()); + return (new AssetModelsTransformer)->transformAssetModels($assetmodels, $total); } diff --git a/resources/views/models/index.blade.php b/resources/views/models/index.blade.php index 729a112c7d..b1c1dab873 100755 --- a/resources/views/models/index.blade.php +++ b/resources/views/models/index.blade.php @@ -54,28 +54,27 @@ @endif
- -
+ +