first commit

This commit is contained in:
meghamalore
2024-07-04 16:57:26 +05:30
parent 99f78bf4cb
commit eed0ce11d2
13538 changed files with 1484890 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Http\Controllers\Frontend;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Admin\faq;
use App\Models\Admin\country;
class FaqsController extends Controller {
public function index() {
$faq = Faq::where('country_xid', null)->get()->toArray();
$countries = country::all()->toArray();
return view('Frontend.Pages.Faqs.faq')->with(['faqs' => $faq, 'country' => $countries]);
}
public function get_faq($id) {
$faqs = faq::where('country_xid', $id)->get();
return response()->json(['faqs' => $faqs]);
}
}