<?php
require_once __DIR__.'/../includes/functions.php';
require_admin();
$tab = isset($_GET['status']) && in_array((string)$_GET['status'], ['invoice_created','unpaid','draft'], true) ? 'waiting' : 'invoices';
redirect('payment-center.php?tab='.$tab);
