Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../../app/Http/Controllers
الملفات الموجودة في هذا الـ Path:
.
..
Admin
AssetController.php
Auth
Controller.php
Customer
FrontController.php
InboundController.php
RouteController.php
ScheduleController.php
UpgradeController.php
مشاهدة ملف: FrontController.php
<?php
namespace App\Http\Controllers;
use App\Models\Faq;
use App\Models\FrontContact;
use App\Models\Plan;
use App\Models\Subscribe;
use Illuminate\Http\Request;
class FrontController extends Controller
{
public function home(){
$data['plans'] = Plan::where('id', '!=', 1)->where('status', 'active')->get();
$data['faqs'] = Faq::where('status', 'active')->get();
return view('front.index',$data);
}
public function price(){
return view('front.price');
}
public function warmup(){
return view('front.warmup');
}
public function about_us(){
return view('front.about_us');
}
public function leads(){
return view('front.leads');
}
public function contactStore(Request $request){
$request->validate([
'first_name' => 'required',
'last_name' => 'required',
'email' => 'required',
'message' => 'required',
]);
FrontContact::create($request->all());
return redirect()->back()->with('success', 'Message successfully Send');
}
}