@if (!Session::get("username")) {{-- Redirect to the main page if the user is already logged in --}} @endif @if (Session::get("userlevel") === 'admin') @extends('index') @section("body")

MANAGE ASSET

Total Asset:{{ $totalCompAsset+$totalPrintAsset+$totalOtherAsset }}     Total Computers: {{ $totalCompAsset }}     Total Printers: {{ $totalPrintAsset }}     Total Other Assets: {{ $totalOtherAsset }}






List of Computer


@foreach($CompAsset as $Ad) @endforeach
Id BRAND MODEL ASSET TAG SERIAL NO Remarks STATUS LOCATION Action
{{$Ad->id}} {{$Ad->brand}} {{$Ad->model}} {{$Ad->assetTag}} {{$Ad->Serial_No}} {{$Ad->Remarks}} {{$Ad->status}} {{$Ad->location}}
@csrf
@csrf
Total Computers: {{ $CompAsset->count() }} In Use: {{ $inUseCount }} Under Maintenance: {{ $underMaintenanceCount }} Available: {{ $availableCount }} Retired: {{ $retiredCount }} Pending: {{ $pendingCount }}
@csrf








List of Printer


@foreach($PrintAsset as $d) @endforeach
Id TYPE LOCATION DEPARTMENT BRAND MODEL ASSET TAG SERIAL NO REMARKS STATUS Action
{{$d->id}} {{$d->type}} {{$d->location}} {{$d->dept}} {{$d->brand}} {{$d->model}} {{$d->assetTag}} {{$d->Serial_No}} {{$d->remarks}} {{$d->status}}
@csrf
@csrf
Total Printers: {{ $PrintAsset->count() }} In Use: {{ $inUseCountPrint }} Under Maintenance: {{ $underMaintenanceCountPrint }} Available: {{ $availableCountPrint }} Retired: {{ $retiredCountPrint }} Pending: {{ $pendingCountPrint }}
@csrf








List of other asset


@foreach($Asset as $a) @endforeach
Id ITEM SERIAL NO ASSET TAG REMARKS STATUS LOCATION Action
{{$a->id}} {{$a->item}} {{$a->serial_no}} {{$a->assetTag}} {{$a->remarks}} {{$a->status}} {{$a->location}}
@csrf
@csrf
Total Other Assets: {{ $Asset->count() }}     In Use: {{ $inUseCountOther }}     Under Maintenance: {{ $underMaintenanceCountOther }}     Available: {{ $availableCountOther }}     Retired: {{ $retiredCountOther }}     Pending: {{ $pendingCountOther }}    
@csrf
@endsection @endif