<?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/messages.twig', [
    'page_meta' => $page_meta,
    'name' => $member->addressBilling->firstname,
]);
