@extends('layouts.main') @section('content')
@if($cronlogs)

{{$cronlogs}}

@else

{{ __('No recent activity from cronjobs')}}

{{ __('Are cronjobs running?')}} {{ __('Check the docs for it here')}}

@endif
{{ __('Activity Logs')}}
@csrf
@foreach($logs as $log) @endforeach
{{ __('Causer') }} {{ __('Description') }} {{ __('Created at') }}
@if($log->causer) {{json_decode($log->causer)->name}} @else System @endif @switch($log->description) @case('created') @break @case('redeemed') @break @case('deleted') @break @case('updated') @break @endswitch {{ucfirst($log->description)}} {{ explode("\\" , $log->subject_type)[2]}} @php $first=true @endphp @foreach(json_decode($log->properties, true) as $properties) @if($first) @if(isset($properties['name'])) " {{$properties['name']}} " @endif @if(isset($properties['email'])) < {{$properties['email']}} > @endif @php $first=false @endphp @endif @endforeach {{$log->created_at->diffForHumans()}}
{!! $logs->links() !!}
@endsection