diff --git a/app/models/Asset.php b/app/models/Asset.php index dd14d0dc93cc..511d0d457984 100644 --- a/app/models/Asset.php +++ b/app/models/Asset.php @@ -95,5 +95,13 @@ public static function availassetcount() } + /** + * Get total assets + */ + public function assetstatus() + { + return $this->belongsTo('Statuslabel','status_id'); + } + } diff --git a/app/views/backend/assets/index.blade.php b/app/views/backend/assets/index.blade.php index 69f001cfada5..d3bc94165cd9 100755 --- a/app/views/backend/assets/index.blade.php +++ b/app/views/backend/assets/index.blade.php @@ -65,7 +65,10 @@ @elseif (Input::get('RTD')) Ready to Deploy @elseif (Input::get('Undeployable')) - Undeployable + @if ($asset->assetstatus) + {{ $asset->assetstatus->name }} + @endif + @endif @else