@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->itemType()=="asset") @elseif ($activity->itemType()=="accessory") @elseif ($activity->itemType()=="consumable") @elseif ($activity->itemType()=="license") @elseif ($activity->itemType()=="component") @else @endif {{ date("M d, Y g:iA", strtotime($activity->created_at)) }} @if (($activity->action_type!='requested') && ($activity->action_type!="request_canceled")) @if ($activity->user) {{ $activity->user->fullName() }} @else Deleted Admin @endif @endif {{ strtolower(trans('general.'.str_replace(' ','_',$activity->action_type))) }} @if (($activity->item) && ($activity->itemType()=="asset")) {{ $activity->item->asset_tag }} - {{ $activity->item->showAssetName() }} @elseif ($activity->item) {{ $activity->item->name }} @endif @if (($activity->userasassetlog) && ($activity->action_type=="uploaded") && ($activity->itemType()=="user")) {{ $activity->userasassetlog->fullName() }} @elseif (($activity->item) && ($activity->target instanceof \App\Models\Asset)) {{ $activity->target->showAssetName() }} @elseif (($activity->item) && ($activity->target instanceof \App\Models\User)) {{ $activity->target->fullName() }} @elseif ($activity->action_type=='requested') {{ $activity->user->fullName() }} @endif

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

@section('moar_scripts') @stop @stop