/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $title = trans('default.partners'); $partnersText = PartnersText::first(); $categories = PartnersCategory::with('partners')->get(); return view('partners.index', compact('title', 'partnersText', 'categories')); }