<?php

use Mtc\Modules\Members\Classes\Auth;

$path = "../../../";
require_once $path . "core/includes/header.inc.php";

$page_meta['title'] = config('app.name') . ' Messages';

if (!Auth::isLoggedIn()) {
    header("Location: " . route('members-login'));
    exit();
}


echo $twig->render('members/new_message.twig', [
    'page_meta' => $page_meta,
    'categories' => \Mtc\Plugins\MembersMessaging\Classes\Thread::MESSAGE_CATEGORIES,
]);
