public function index() { $templates = $this->templateRepository->getAll(); return view('admin.templates.listing', ['title' => Lang::get('templates.manage'), 'templates' => $templates->toJson()]); }