@extends('backend.layouts.app') @section('content')
Only you can see your Activity log.
Now you can review and see everything- from today back when you first started using "Power Cozmo"
@php $checkClass = []; @endphp @if (isset($activity) and !empty($activity) and sizeof($activity) > 0) @foreach ($activity as $actval)
{{ date('M d, Y', strtotime($actval->date)) }} @if ($actval->date == date('Y-m-d')) Today @endif
@if (!empty($actval->history)) @foreach ($actval->history as $hisval) @php $img = $hisval->icons->icon ?? 'default.svg'; $ch = false; if (in_array($hisval->type, $checkClass)) { $ch = true; } $checkClass[] = $hisval->type; @endphp
  • @if ($hisval->type == 'dashboard') @endif {{ $hisval->icons->name ?? '' }}
  • @if (!empty($hisval->changes))
      @foreach ($hisval->changes as $hisval)
    • {!! $hisval->message !!}
    • @endforeach @endif
@endforeach @endif @endforeach @endif
@endsection