12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace App\Http\Controllers\frontend;
- use App\Http\Controllers\Controller;
- use Illuminate\Http\Request;
- use App\Models\Presentation;
- use App\Models\Slide;
- use App\Models\Categorie;
- use App\Models\Produit;
- use App\Models\Promotion;
- use App\Models\Contact;
- class HomeController extends Controller
- {
- public function Index(){
- $presentations = Presentation::where('etat','1')->get();
- $slides = slide::where('etat','1')->get();
- $categories = Categorie::where('etat','1')->get();
- $logiciel = Categorie::where('etat','1')->where('nom','Logiciels')->first();
- $produits = Produit::where('home','1')->get();
- $promotions = Promotion::where('etat','1')->get();
- $contacts = Contact::where('etat','1')->get();
- return view('frontend.home',compact('presentations','slides','categories','produits','promotions','contacts'));
- }
- }
|