diff --git a/app/views/backend/assets/view.blade.php b/app/views/backend/assets/view.blade.php index d11b90dfbd..43f482ff9e 100644 --- a/app/views/backend/assets/view.blade.php +++ b/app/views/backend/assets/view.blade.php @@ -22,19 +22,58 @@ View Asset {{ $asset->asset_tag }} :: @if ($asset->assigned_to != 0)
  • Checkin
  • @else + @if ($asset->status_id > 0)
  • Checkout
  • + @endif @endif
  • Edit Asset
  • Clone Asset
  • - -
    + + +
    +
    + + + @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:
      @@ -158,10 +162,6 @@ View Asset {{ $asset->asset_tag }} :: @endif - - - - @if (isset($asset->assigneduser->email))

    • {{ $asset->assigneduser->email }}
    • @endif @@ -173,8 +173,38 @@ View Asset {{ $asset->asset_tag }} ::

    • Checkin Asset
    + @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