@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

{{$title}}

General Notifications

@if($all->exists()) @foreach($all as $log) @if(!auth()->user()->is_super_admin) @php $u = new User($log->user_id); @endphp @if(!$u->is_super_admin()) @if(auth()->user()->isHubAdmin()) @if($log->is_related_to_hubs($activeHubs)) {!! $log->details('styled') !!} @endif @else {!! $log->details('styled') !!} @endif @endif @else {!! $log->details('styled') !!} @endif @endforeach @else
No Such Notifications yet.
@endif

Member Activity Notifications

@if($member_logs->exists()) @foreach($member_logs as $log) @if(!auth()->user()->is_super_admin) @php $u = new User($log->user_id); @endphp @if(!$u->is_super_admin()) @if(auth()->user()->isHubAdmin()) @if($log->is_related_to_hubs($activeHubs)) {!! $log->details('styled') !!} @endif @else {!! $log->details('styled') !!} @endif @endif @else {!! $log->details('styled') !!} @endif @endforeach @else
No Such Notifications yet.
@endif
@push('custom-js') @endpush @endsection