Show asset status on undeployable
This commit is contained in:
@@ -95,5 +95,13 @@ class Asset extends Elegant {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Get total assets
|
||||
*/
|
||||
public function assetstatus()
|
||||
{
|
||||
return $this->belongsTo('Statuslabel','status_id');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -65,7 +65,10 @@ Assets ::
|
||||
@elseif (Input::get('RTD'))
|
||||
Ready to Deploy
|
||||
@elseif (Input::get('Undeployable'))
|
||||
Undeployable
|
||||
@if ($asset->assetstatus)
|
||||
{{ $asset->assetstatus->name }}
|
||||
@endif
|
||||
|
||||
@endif
|
||||
</td>
|
||||
@else
|
||||
|
||||
Reference in New Issue
Block a user