Files
newznab-tmux-NNTmux/app/Http/Controllers/TermsController.php
T
2025-12-27 03:18:21 +01:00

25 lines
730 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\View\View;
class TermsController extends BasePageController
{
/**
* Display the terms and conditions page.
*/
public function terms(): View
{
$title = 'Terms and Conditions';
$meta_title = config('app.name').' - Terms and conditions';
$meta_keywords = 'terms,conditions';
$meta_description = 'Terms and Conditions for '.config('app.name');
// Get terms content from settings
$terms_content = $this->settings->get('tandc') ?? '<p>No terms and conditions have been set yet.</p>';
return view('terms', compact('title', 'meta_title', 'meta_keywords', 'meta_description', 'terms_content'));
}
}