public function showClearedActivityLog()
    {
        if (config('LaravelLogger.loggerPaginationEnabled')) {
            $activities = Activity::onlyTrashed()
                ->orderBy('created_at', 'desc')
                ->paginate(config('LaravelLogger.loggerPaginationPerPage'));
            $totalActivities = $activities->total();
        } else {
            $activities = Activity::onlyTrashed()
                ->orderBy('created_at', 'desc')
                ->get();
            $totalActivities = $activities->count();
        }

        self::mapAdditionalDetails($activities);

        $data = [
            'activities'        => $activities,
            'totalActivities'   => $totalActivities,
        ];

        return View('LaravelLogger::logger.activity-log-cleared', $data);
    }
public function showClearedActivityLog()
    {
        if (config('LaravelLogger.loggerPaginationEnabled')) {
            $activities = Activity::onlyTrashed()
                ->orderBy('created_at', 'desc')
                ->paginate(config('LaravelLogger.loggerPaginationPerPage'));
            $totalActivities = $activities->total();
        } else {
            $activities = Activity::onlyTrashed()
                ->orderBy('created_at', 'desc')
                ->get();
            $totalActivities = $activities->count();
        }

        self::mapAdditionalDetails($activities);

        $data = [
            'activities'        => $activities,
            'totalActivities'   => $totalActivities,
        ];

        return View('LaravelLogger::logger.activity-log-cleared', $data);
    }
public function showClearedActivityLog ( ) { if ( config ( 'LaravelLogger.loggerPaginationEnabled' ) ) { $ activities = Activity :: onlyTrashed ( ) -> orderBy ( 'created_at' , 'desc' ) -> paginate ( config ( 'LaravelLogger.loggerPaginationPerPage' ) ) ; $ totalActivities = $ activities -> total ( ) ; } else { $ activities = Activity :: onlyTrashed ( ) -> orderBy ( 'created_at' , 'desc' ) -> get ( ) ; $ totalActivities = $ activities -> count ( ) ; } self :: mapAdditionalDetails ( $ activities ) ; $ data = [ 'activities' => $ activities , 'totalActivities' => $ totalActivities , ] ; return View ( 'LaravelLogger::logger.activity-log-cleared' , $ data ) ; }
Show the cleared activity log - softdeleted records.

@return \Illuminate\Http\Response
Show the cleared activity log - softdeleted records .