@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') }}

More info

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

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

More info

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

total accessories

More info

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

total consumables

More info

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

@if (count($recent_activity) > 0) @foreach ($recent_activity as $activity) @endforeach @endif
{{ trans('general.date') }} {{ trans('general.admin') }} {{ trans('table.item') }} {{ trans('table.actions') }} {{ trans('general.user') }}
{{ date("M d", strtotime($activity->created_at)) }} @if ($activity->action_type!='requested') {{ $activity->adminlog->fullName() }} @endif @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 }} @else {{ trans('general.bad_data') }} @endif {{ strtolower(trans('general.'.str_replace(' ','_',$activity->action_type))) }} @if ($activity->action_type=='requested') {{ $activity->adminlog->fullName() }} @elseif ($activity->userlog) {{ $activity->userlog->fullName() }} @endif
@section('moar_scripts') @stop @stop