| Zeile 342... |
Zeile 342... |
| 342 |
$_SESSION["navigation"]["position"] = $dirId;
|
342 |
$_SESSION["navigation"]["position"] = $dirId;
|
| 343 |
$dirs = Directory::with( 'medium.medium' )->where( "directory_id", $dirId )->whereIn( 'status', [
|
343 |
$dirs = Directory::with( 'medium.medium' )->where( "directory_id", $dirId )->whereIn( 'status', [
|
| 344 |
0,
|
344 |
0,
|
| 345 |
99
|
345 |
99
|
| 346 |
] )->orderBy( 'kennung' )->orderBy( 'name' )->get();
|
346 |
] )->orderBy( 'kennung' )->orderBy( 'name' )->get();
|
| 347 |
$items = Item::with( 'price', 'medium.medium', 'manufacturer' )->where( "directory_id", $dirId )->where( 'status', '=', 0 )->get();
|
347 |
$items = Item::withMin('price')->with( 'price', 'medium.medium', 'manufacturer' )->where( "directory_id", $dirId )->where( 'status', '=', 0 )->get();
|
| 348 |
$subdir = Directory::with( 'medium.medium', 'template.template', 'manufacturer' )->find( $dirId );
|
348 |
$subdir = Directory::with( 'medium.medium', 'template.template', 'manufacturer' )->find( $dirId );
|
| 349 |
$subdir["subdirs"] = $dirs->reject( function ( $value, $key )
|
349 |
$subdir["subdirs"] = $dirs->reject( function ( $value, $key )
|
| 350 |
{
|
350 |
{
|
| 351 |
return $value->articlemaster == 1;
|
351 |
return $value->articlemaster == 1;
|
| 352 |
} );
|
352 |
} );
|