From 08f6d7e17d7b5d0beb6935bf9854fdec0a6f7de1 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 19 Nov 2013 15:54:59 -0500 Subject: [PATCH] Added user detail on who it's checked out to --- app/views/backend/assets/view.blade.php | 77 +++++++++++++++++++++---- 1 file changed, 65 insertions(+), 12 deletions(-) diff --git a/app/views/backend/assets/view.blade.php b/app/views/backend/assets/view.blade.php index 3ea3d9ab5a..27bdfcc483 100644 --- a/app/views/backend/assets/view.blade.php +++ b/app/views/backend/assets/view.blade.php @@ -10,12 +10,36 @@ View Asset {{ $asset->asset_tag }} :: @section('content')
+

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

+ + + + -
-

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

-
- @lang('button.edit') This Asset
@@ -28,7 +52,8 @@ View Asset {{ $asset->asset_tag }} :: - + + @@ -38,6 +63,11 @@ View Asset {{ $asset->asset_tag }} :: @foreach ($asset->assetlog as $log) +
DateDate Admin Action Asset
+ @if ((isset($log->checkedout_to)) && ($log->checkedout_to == $asset->assigned_to)) + + @endif + {{ $log->added_on }} @if (isset($log->user_id)) @@ -73,13 +103,36 @@ View Asset {{ $asset->asset_tag }} ::
-
Address
- -
    -
  • 2301 East Lamar Blvd. Suite 140.
  • -
  • City, Arlington. United States,
  • -
  • Zip Code, TX 76006.
  • + @if ((isset($asset->assigned_to ) && ($asset->assigned_to > 0))) + +

    Checked Out To:
    +
      + +


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

    • Checkin Asset
    • + @else +
        +


      • This asset is not currently assigned to anyone. You may check it into inventory using the button below, or mark it as + lost/stolen using the menu above.
      • +


      • Checkout Asset
      • +
      + @endif + + -
@stop \ No newline at end of file