+
+
+
+ @if ($asset->model->manufacturer)
+
Manufacturer: {{ $asset->model->manufacturer->name }}
+
Model: {{ $asset->model->name }} / {{ $asset->model->modelno }}
+ @endif
+
+ @if ($asset->purchase_date)
+
Purchased On: {{ $asset->purchase_date }}
+ @endif
+
+ @if ($asset->purchase_cost)
+
Purchase Cost: ${{ number_format($asset->purchase_cost,2) }}
+ @endif
+
+ @if ($asset->order_number)
+
Order #: {{ $asset->order_number }}
+ @endif
+
+ @if ($asset->warranty_months)
+
Warranty: {{ $asset->warranty_months }} months
+
Expires: {{ $asset->warrantee_expires() }}
+ @endif
+
+ @if ($asset->depreciation)
+
Depreciation: {{ $asset->depreciation->name }}
+ ({{ $asset->depreciation->months }} months)
+
Depreciates On: {{ $asset->depreciated_date() }}
+
Fully Depreciated: {{ $asset->months_until_depreciated()->m }} months,
+ {{ $asset->months_until_depreciated()->y }} years
+ @endif
+
@@ -103,41 +142,6 @@ View Asset {{ $asset->asset_tag }} ::
-
More Info:
-
- @if ($asset->model->manufacturer)
- - Manufacturer: {{ $asset->model->manufacturer->name }}
- - Model: {{ $asset->model->name }} / {{ $asset->model->modelno }}
- @endif
-
- @if ($asset->purchase_date)
- - Purchased On: {{ $asset->purchase_date }}
- @endif
-
- @if ($asset->purchase_date)
- - Purchased On: {{ $asset->purchase_date }}
- @endif
-
- @if ($asset->purchase_cost)
- - Purchase Cost: ${{ number_format($asset->purchase_cost,2) }}
- @endif
- @if ($asset->order_number)
- - Order #: {{ $asset->order_number }}
- @endif
- @if ($asset->warranty_months)
- - Warranty: {{ $asset->warranty_months }} months
- - Expires: {{ $asset->warrantee_expires() }}
- @endif
-
- @if ($asset->depreciation)
- - Depreciation: {{ $asset->depreciation->name }} ({{ $asset->depreciation->months }} months)
- - Depreciates On: {{ $asset->depreciated_date() }}
- - Fully Depreciated: {{ $asset->months_until_depreciated()->m }} months, {{ $asset->months_until_depreciated()->y }} years
- @endif
-
-
-
-
@if ((isset($asset->assigned_to ) && ($asset->assigned_to > 0)))
Checked Out To:
+ @elseif (($asset->status_id ) && ($asset->status_id > 0))
+
+ @if ($asset->assetstatus)
+
{{ $asset->assetstatus->name }} Asset
+
+
+
+
+ Warning: This asset has been marked {{ $asset->assetstatus->name }} and is currently undeployable.
+ If this status has changed, please update the asset status.
+
+
+
+ @endif
+
+ @elseif ($asset->status_id == NULL)
+
+
+
Pending Asset
+
+
+
+ Warning: This asset has been marked as pending and is currently undeployable.
+ If this status has changed, please update the asset status.
+
+
+
+
@else
+
Checkout Asset
+ - This asset is not checked out to anyone yet. Use the button below to check it out now.
Checkout Asset
@endif