polarpress-pagebuilder/app/Helpers/PageBlocksHelper.php
Helge-Mikael Nordgård 60dc53b7ca
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
ImageNode from Polarpress migration + model + helper class, PageRender controller
2025-05-05 15:25:55 +02:00

43 lines
1005 B
PHP

<?php
namespace App\Helpers;
use Illuminate\Support\Facades\Auth;
use App\Models\Page;
class PageBlocksHelper
{
public static function fetchTotalUsers() { }
public static function fetchTotalMembers() { }
public static function fetchAvatarCollection() { }
public static function mainMenuLinks() {
if (Auth::check()) {
return Page::where('is_published', true)
->where('main', false)
->where('linked', true)
->orderByDesc('linkorder')
->get();
}
return Page::where('is_published', true)
->where('main', false)
->where('linked', true)
->where('visibility', 'public')
->orderByDesc('linkorder')
->get();
}
public static function sponsors() { }
public static function partners() { }
public static function contingent() { }
public static function articles() { }
public static function events() { }
}