2023-08-14 22:33:53 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
2023-08-15 23:05:51 +02:00
|
|
|
use Illuminate\Support\Facades\DB;
|
2023-08-14 22:33:53 +02:00
|
|
|
use App\Models\Location;
|
|
|
|
|
|
|
|
class FrontIndexController extends Controller
|
|
|
|
{
|
|
|
|
public function start()
|
|
|
|
{
|
2023-08-16 22:03:06 +02:00
|
|
|
$locations = Location::where("active", true)->get();
|
2023-08-14 22:33:53 +02:00
|
|
|
$count = count($locations);
|
|
|
|
|
2023-08-15 23:05:51 +02:00
|
|
|
$terms = "no|agenda";
|
|
|
|
|
|
|
|
//$result = DB::select("SELECT * FROM searchlocations('$terms')");
|
|
|
|
|
2023-08-18 00:14:01 +02:00
|
|
|
return view('front.index', [
|
|
|
|
'count' => $count,
|
|
|
|
'title' => "The Bad Space"
|
|
|
|
]);
|
2023-08-14 22:33:53 +02:00
|
|
|
}
|
|
|
|
}
|