Asset Condemnation Report


@include('partials.filters')

AssetsAdm.com

Asset Condemnation Report


Summary View
@forelse($asset_condemnations['available'] as $key=>$asset_condemnation) @php if ($asset_condemnation->lvl1 == 1) { $status = 'Approved'; } else { $status = 'Rejected'; } if (!is_null($asset_condemnation->lvl1)) { $names = \App\User::where('id', $asset_condemnation->lvl1_user) ->pluck('name') ->first(); $lvl1text = $status . '-' . $names; } else { $lvl1text = '-'; } if ($asset_condemnation->lvl2 == 1) { $status = 'Approved'; } else { $status = 'Rejected'; } if (!is_null($asset_condemnation->lvl2)) { $names = \App\User::where('id', $asset_condemnation->lvl2_user) ->pluck('name') ->first(); $lvl2text = $status . '-' . $names; } else { $lvl2text = '-'; } if ($asset_condemnation->lvl3 == 1) { $status = 'Approved'; } else { $status = 'Rejected'; } if (!is_null($asset_condemnation->lvl3)) { $names = \App\User::where('id', $asset_condemnation->lvl3_user) ->pluck('name') ->first(); $lvl3text = $status . '-' . $names; } else { $lvl3text = '-'; } @endphp @empty @endif
Reference No Ref Date Type Condem Date item Reason Recommendation Status Status Date Department Work Department Category Level 1 Level 2 Level 3
{{ $asset_condemnation->ref }} {{ date('d M, Y', strtotime($asset_condemnation->created_at)) }} {{ $asset_condemnation->condemn_type }} {{ ($asset_condemnation->condem_date && $asset_condemnation->condem_date !== '0000-00-00') ? date('d M, Y', strtotime($asset_condemnation->condem_date)) : '' }} {{ $asset_condemnation->item_details }} {{ $asset_condemnation->reasons }} {{ $asset_condemnation->recommendation }} {{ $asset_condemnation->trans_status }} {{ date('d M, Y', strtotime($asset_condemnation->updated_at)) }} {{ @$asset_condemnation->department->name }} {{ @$asset_condemnation->work_department->name }} @if ($asset_condemnation->condemn_type == 'Asset Based') {{ @$asset_condemnation->categoryname }} @endif @if ($asset_condemnation->lvl1 != 0) {{ htmlentities( $asset_condemnation->lvl1 == 1 ? 'Approved-' . \App\User::where('id', @$asset_condemnation->lvl1_user)->pluck('name')->first() : (!is_null($asset_condemnation->lvl1) ? 'Rejected-' . \App\User::where('id', @$asset_condemnation->lvl1_user)->pluck('name')->first() : '-'), ) }} @endif @if ($asset_condemnation->lvl2 != 0) {{ htmlentities( $asset_condemnation->lvl2 == 1 ? 'Approved-' . \App\User::where('id', @$asset_condemnation->lvl2_user)->pluck('name')->first() : (!is_null($asset_condemnation->lvl2) ? 'Rejected-' . \App\User::where('id', @$asset_condemnation->lvl2_user)->pluck('name')->first() : '-'), ) }} @endif @if ($asset_condemnation->lvl3 != 0) {{ htmlentities( $asset_condemnation->lvl3 == 1 ? 'Approved-' . \App\User::where('id', @$asset_condemnation->lvl3_user)->pluck('name')->first() : (!is_null($asset_condemnation->lvl3) ? 'Rejected-' . \App\User::where('id', @$asset_condemnation->lvl3_user)->pluck('name')->first() : '-'), ) }} @endif