NCORE_Smart_Firewall/app/Http/Controllers/SmartController.php

40 lines
768 B
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Caller_DB;
use App\Models\CallerLog_DB;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Collection;
class SmartController extends Controller
{
public function index()
{
return view('smart.login');
}
public function dashboard()
{
return view('smart.dashboard');
}
public function caller()
{
$callers = Caller_DB::all();
return view('smart.caller', compact('callers'));
}
public function caller_log(Request $request)
{
$caller_logs = CallerLog_DB::all();
return view('smart.caller_log', compact('caller_logs'));
}
}