diff --git a/app/views/backend/hardware/view.blade.php b/app/views/backend/hardware/view.blade.php index 7611405eb3..8da1a4ec77 100644 --- a/app/views/backend/hardware/view.blade.php +++ b/app/views/backend/hardware/view.blade.php @@ -8,201 +8,203 @@ View Asset {{ $asset->asset_tag }} :: {{-- Page content --}} @section('content') -
- -

History for {{ $asset->asset_tag }} ({{ $asset->name }}) -
- - -

-
- -
-
+ @if ($asset->status_id == 1) + @if ($asset->assigned_to != 0) +
  • Checkin
  • + @endif + @elseif ($asset->status_id == 0) +
  • Checkout
  • + @endif +
  • Edit Asset
  • +
  • Clone Asset
  • + +
    +

    +

    History for {{ $asset->asset_tag }} ({{ $asset->name }}) +

    +
    +
    - -
    -
    + - - -
    - - @if ((isset($asset->assigned_to ) && ($asset->assigned_to > 0))) -

    Checked Out To:
    -
      - -


    • -
    • {{ $asset->assigneduser->fullName() }}
    • + + + + + + + + + + + + + @if (count($asset->assetlog) > 0) + @foreach ($asset->assetlog as $log) + + + + + + + + + @endforeach + @endif + + + + + + + + + +
      DateAdminActionUserNote
      + @if ((isset($log->checkedout_to)) && ($log->checkedout_to == $asset->assigned_to)) + + @endif + {{ $log->added_on }} + @if (isset($log->user_id)) + {{ $log->adminlog->fullName() }} + @endif + {{ $log->action_type }} + @if (isset($log->checkedout_to)) + + {{ $log->userlog->fullName() }} + + @endif + + @if ($log->note) + {{ $log->note }} + @endif +
      {{ $asset->created_at }} + @if ($asset->adminuser->id) + {{ $asset->adminuser->fullName() }} + @else + Unknown Admin + @endif + created asset
      - @if (isset($asset->assetloc->address)) -
    • {{ $asset->assetloc->address }} - @if (isset($asset->assetloc->address2)) - {{ $asset->assetloc->address2 }} - @endif -
    • - @if (isset($asset->assetloc->city)) -
    • {{ $asset->assetloc->city }}, {{ $asset->assetloc->state }} {{ $asset->assetloc->zip }}
    • - @endif +
    - @endif + +
    - @if (isset($asset->assigneduser->email)) -

  • {{ $asset->assigneduser->email }}
  • - @endif + @if ((isset($asset->assigned_to ) && ($asset->assigned_to > 0))) +

    Checked Out To:
    + - @elseif (($asset->status_id ) && ($asset->status_id > 1)) + @if (isset($asset->assetloc->address)) +
  • {{ $asset->assetloc->address }} + @if (isset($asset->assetloc->address2)) + {{ $asset->assetloc->address2 }} + @endif +
  • + @if (isset($asset->assetloc->city)) +
  • {{ $asset->assetloc->city }}, {{ $asset->assetloc->state }} {{ $asset->assetloc->zip }}
  • + @endif - @if ($asset->assetstatus) -

    {{ $asset->assetstatus->name }} Asset
    + @endif -
    -
    - - Warning: This asset has been marked {{ $asset->assetstatus->name }} and is currently undeployable. - If this status has changed, please update the asset status. -
    -
    - @endif + @if (isset($asset->assigneduser->email)) +

  • {{ $asset->assigneduser->email }}
  • + @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. -
    -
    + @if (isset($asset->assigneduser->phone)) +
  • {{ $asset->assigneduser->phone }}
  • + @endif - @else -

    Checkout Asset
    -
      -
    • This asset is not checked out to anyone yet. Use the button below to check it out now.
    • -


    • Checkout Asset
    • -
    - @endif -
    +

  • Checkin Asset
  • + + + @elseif (($asset->status_id ) && ($asset->status_id > 1)) + + @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
    + + @endif +
    +
    + @stop \ No newline at end of file