Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

Revision 113 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 113 Revision 114
Zeile 96... Zeile 96...
96
         * @return Factory|View|Application
96
         * @return Factory|View|Application
97
         */
97
         */
98
        public function edit( int $id ): Factory|View|Application
98
        public function edit( int $id ): Factory|View|Application
99
        {
99
        {
100
            //
100
            //
101
            \View::share( "lType", "k" );
-
 
102
            $kategorienDB = ActionCategory::all()->flatten();
101
            $kategorienDB = ActionCategory::all()->flatten();
103
            $kategorien = array();
102
            $kategorien = array();
104
            foreach ( $kategorienDB as $kat )
103
            foreach ( $kategorienDB as $kat )
105
            {
104
            {
106
                $kategorien[$kat["id"]] = $kat["name"];
105
                $kategorien[$kat["id"]] = $kat["name"];
107
            }
106
            }
108
            \View::share( [ "kategorien" => $kategorien ] );
107
            \View::share( [ "kategorien" => $kategorien, "lType" => "k", ] );
109
            $action = Action::find( $id );
108
            $action = Action::find( $id );
110
            return view( 'action', [ "action" => $action, ] );
109
            return view( 'action', [ "action" => $action, ] );
111
        }
110
        }