Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 624 Revision 628
Zeile 204... Zeile 204...
204
        ] )->get();
204
        ] )->get();
205
        $items = Item::with( 'price' )->with( 'medium.medium' )->where( "directory_id", $dirId )->where( 'status', '=', 0 )->get();
205
        $items = Item::with( 'price' )->with( 'medium.medium' )->where( "directory_id", $dirId )->where( 'status', '=', 0 )->get();
206
        $subdir = Directory::with( 'medium.medium', 'template.template' )->find( $dirId );
206
        $subdir = Directory::with( 'medium.medium', 'template.template' )->find( $dirId );
207
        $subdir["subdirs"] = $dirs;
207
        $subdir["subdirs"] = $dirs;
208
        $subdir["items"] = $items;
208
        $subdir["items"] = $items;
-
 
209
        $template = 'subdir';
-
 
210
        if ( is_countable( $subdir->template ) )
-
 
211
        {
-
 
212
            $template = substr( $subdir->temmplate[0]->template->template_value, strpos( "$subdir->temmplate[0]->template->template_value", "=" ) + 1 );
-
 
213
        }
209
        return view( 'subdir', [
214
        return view( $template, [
210
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
215
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
211
            "subdir"            => $subdir,
216
            "subdir"            => $subdir,
212
            "nav"               => $GLOBALS["menu"],
217
            "nav"               => $GLOBALS["menu"],
213
            "ini"               => $GLOBALS["INI"],
218
            "ini"               => $GLOBALS["INI"],
214
            "langstrings"       => $GLOBALS["langstrings"],
219
            "langstrings"       => $GLOBALS["langstrings"],