public function index($id) { $cr = $this->cashRegisterRepo->findOrFail($id); return view('cashregister.index', compact('cr')); }