migrate to gtea from bistbucket
This commit is contained in:
18
app/Http/Controllers/PlanController.php
Normal file
18
app/Http/Controllers/PlanController.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Plan;
|
||||
use App\Models\Option;
|
||||
|
||||
class PlanController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$page_data = get_option('manage-pages');
|
||||
$general = Option::where('key','general')->first();
|
||||
$plans = Plan::where('status',1)->latest()->get();
|
||||
|
||||
return view('web.plan.index',compact('page_data', 'general', 'plans'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user