@extends('themes.admin.'.setting('active_admin_theme').'.layouts.default') @section('content') @push('custom-css') @endpush @php if(auth()->user()->isHubAdmin()){ $activeHubs = get_active_hub_ids(); } $a = new Log(); $a->where('action !=','has registered') ->where('action !=','has been registered') ->where('action !=','has logged out') ->where('action !=','has logged in') ->not_like('action', 'has paid') ->not_like('action', 'has subscribed to') ->not_like('action', 'free entrance') ->order_by('created_at','DESC'); if(auth()->user()->isHubAdmin()) $a->limit(50); $all = $a->get(); $b = new Log(); $member_logs = $b->group_start() ->where('action','has registered') ->or_where('action','has been registered') ->or_where('action','has logged out') ->or_where('action','has logged in') ->group_end() ->or_like('action', 'has subscribed to') ->order_by('created_at','DESC'); if(auth()->user()->isHubAdmin()) $b->limit(50); $member_logs = $b->get(); @endphp