Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 623 Revision 624
Zeile 22... Zeile 22...
22
    | routes are loaded by the RouteServiceProvider within a group which
22
    | routes are loaded by the RouteServiceProvider within a group which
23
    | contains the "web" middleware group. Now create something great!
23
    | contains the "web" middleware group. Now create something great!
24
    |
24
    |
25
     */
25
     */
Zeile 26... Zeile 26...
26
 
26
 
27
    if(php_sapi_name()=="cli")
27
    if ( php_sapi_name() == "cli" )
28
    {
28
    {
29
        return;
29
        return;
30
    }
30
    }
31
    $sql = "
31
    $sql = "
Zeile 201... Zeile 201...
201
        $dirs = Directory::with( 'medium.medium' )->where( "directory_id", $dirId )->whereIn( 'status', [
201
        $dirs = Directory::with( 'medium.medium' )->where( "directory_id", $dirId )->whereIn( 'status', [
202
            0,
202
            0,
203
            99
203
            99
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' )->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
        return view( 'subdir', [
209
        return view( 'subdir', [
210
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
210
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
211
            "subdir"            => $subdir,
211
            "subdir"            => $subdir,
Zeile 214... Zeile 214...
214
            "langstrings"       => $GLOBALS["langstrings"],
214
            "langstrings"       => $GLOBALS["langstrings"],
215
        ] );
215
        ] );
216
    } );
216
    } );
217
    Route::get( "{item:slug}.html", function ( Item $item )
217
    Route::get( "{item:slug}.html", function ( Item $item )
218
    {
218
    {
219
        $item->load( 'price', 'medium.medium','template.template' );
219
        $item->load( 'price', 'medium.medium' );
220
        return view( 'item', [
220
        return view( 'item', [
221
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
221
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
222
            "item"              => $item,
222
            "item"              => $item,
223
            "nav"               => $GLOBALS["menu"],
223
            "nav"               => $GLOBALS["menu"],
224
            "ini"               => $GLOBALS["INI"],
224
            "ini"               => $GLOBALS["INI"],