@if (getActiveProfileType() === 'Admin') @profile('admin')
@if ($lastLoginAt)
{{ __('Previous login') . ': ' . $lastLoginAt }}
@endif
@php $webUser = \Illuminate\Support\Facades\Auth::guard('web')->user(); $activeLogId = session('activeProfileId'); $adminLogPermissions = []; if ($webUser && $activeLogId) { $logPrefix = 'Admin\\' . $activeLogId . '\\'; $logScopedRoles = $webUser->roles->filter(fn($r) => str_starts_with($r->name, $logPrefix)); foreach ($logScopedRoles as $logScopedRole) { $logRoleName = str_replace($logPrefix, '', $logScopedRole->name); $logAdminRole = \App\Models\AdminRole::where('name', $logRoleName)->first(); if ($logAdminRole) { $adminLogPermissions = array_merge($adminLogPermissions, $logAdminRole->permissions ?? []); } } } @endphp @if (in_array('view search-metrics', $adminLogPermissions) && timebank_config('search_optimization.search_analytics_enabled')) @endif @if (in_array('view application-log', $adminLogPermissions))
@endif @if (in_array('view inactive-profiles-log', $adminLogPermissions))
@endif @if (in_array('view search-reindex-log', $adminLogPermissions))
@endif
@endprofile @else
@if ($lastLoginAt)
{{ __('Previous login') . ': ' . $lastLoginAt }}
@livewire('main-post', [ 'type' => $profileType ? 'SiteContents\Welcome\Login\\' . $profileType : null, 'latest' => true, 'fallbackTitle' => __(''), 'fallbackDescription' => __('') ])
@else
@livewire('main-post', [ 'type' => $profileType ? 'SiteContents\Welcome\Login\\' . $profileType . '\\New' : null, 'latest' => true, 'fallbackTitle' => __('Welcome new ' . platform_user() . '!'), 'fallbackDescription' => __('') ])
@endif
@endif
{{ __('Find profiles, skills, events and more...')}}
@if(timebank_config('online.contact_list.dashboard.enabled')) @if (session('activeProfileType') === 'App\Models\User' || session('activeProfileType') === 'App\Models\Organization' || session('activeProfileType') === 'App\Models\Bank') @endif @endif
@if (session('activeProfileType') !== 'App\Models\Admin')
@include('post-header', ['title' => __('Update your skills')])
@endif {{-- Mark postNr = 1 to view 2nd latest post or the 2nd upcoming event --}} {{-- Mark related as 1 to view also for users / organizations in related locations --}} {{--
--}}