@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.dashboard') }} @parent @stop {{-- Page content --}} @section('content')

{{ number_format(\App\Models\Asset::assetcount()) }}

{{ trans('general.total_assets') }}

@can('assets.view') More info @endcan

{{ number_format(\App\Models\License::assetcount()) }}

{{ trans('general.total_licenses') }}

@can('licenses.view') More info @endcan

{{ number_format(\App\Models\Accessory::count()) }}

total accessories

@can('accessories.view') More info @endcan

{{ number_format(\App\Models\Consumable::count()) }}

total consumables

@can('consumables.view') More info @endcan

{{ trans('general.recent_activity') }}

@if (count($recent_activity) > 0) @foreach ($recent_activity as $activity) @endforeach @endif
{{ trans('general.date') }} {{ trans('general.admin') }} {{ trans('table.actions') }} {{ trans('table.item') }} To
@if ($activity->asset_type=="hardware") @elseif ($activity->asset_type=="accessory") @elseif ($activity->asset_type=="consumable") @elseif ($activity->asset_type=="license") @elseif ($activity->asset_type=="component") @else @endif {{ date("M d, Y g:iA", strtotime($activity->created_at)) }} @if ($activity->action_type!='requested') @if ($activity->adminlog) {{ $activity->adminlog->fullName() }} @else Deleted Admin @endif @endif {{ strtolower(trans('general.'.str_replace(' ','_',$activity->action_type))) }} @if (($activity->assetlog) && ($activity->asset_type=="hardware")) {{ $activity->assetlog->showAssetName() }} @elseif (($activity->licenselog) && ($activity->asset_type=="software")) {{ $activity->licenselog->name }} @elseif (($activity->consumablelog) && ($activity->asset_type=="consumable")) {{ $activity->consumablelog->name }} @elseif (($activity->accessorylog) && ($activity->asset_type=="accessory")) {{ $activity->accessorylog->name }} @elseif (($activity->componentlog) && ($activity->asset_type=="component")) {{ $activity->componentlog->name }} @elseif (($activity->assetlog) && ($activity->action_type=="uploaded")) {{ $activity->assetlog->showAssetName() }} @elseif (($activity->userlog) && ($activity->action_type=="uploaded")) {{ $activity->userlog->fullName() }} @else {{ trans('general.bad_data') }} @endif @if (($activity->componentlog) && ($activity->asset_type=="component")) {{ $activity->assetlog->showAssetName() }} @elseif($activity->action_type=='requested') @if ($activity->adminlog) {{ $activity->adminlog->fullName() }} @endif @elseif ($activity->userlog) {{ $activity->userlog->fullName() }} @endif

{{ trans('general.status') }}

@section('moar_scripts') @stop @stop