From cb5b3656314188fc07c59cc47b0bd3935214dacb Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 17 Nov 2013 20:04:43 -0500 Subject: [PATCH] view logic to determine whether to print out a checkout button --- app/views/backend/assets/index.blade.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/views/backend/assets/index.blade.php b/app/views/backend/assets/index.blade.php index faab523872..cbbd79475c 100755 --- a/app/views/backend/assets/index.blade.php +++ b/app/views/backend/assets/index.blade.php @@ -40,7 +40,16 @@ Assets :: {{ $asset->asset_tag }} {{ $asset->name }} {{ $asset->serial }} - {{ $asset->status }} + + + @if ($asset->assigned_to != 0) + {{ $asset->assigned_to }} + @else + Checkout + @endif + + + {{ $asset->purchase_date }} ${{ number_format($asset->purchase_cost) }} ${{ number_format($asset->depreciation()) }}