Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1361 Revision 1362
Zeile 31... Zeile 31...
31
         */
31
         */
32
        public function index(): Factory|View|Application
32
        public function index(): Factory|View|Application
33
        {
33
        {
34
            //
34
            //
35
            $orders = Order::with( [ 'shop', 'orderType', 'orderItem', 'billAddr', 'shipAddr' ] )->orderBy( "created_at", 'desc' )->paginate( 100 );
35
            $orders = Order::with( [ 'shop', 'orderType', 'orderItem', 'billAddr', 'shipAddr' ] )->orderBy( "created_at", 'desc' )->paginate( 100 );
36
            $links = $orders->links();
-
 
37
            return view( 'admin/orders', [ "orders" => $orders, "links" => $links ] );
36
            return view( 'admin/orders', [ "orders" => $orders,] );
38
        }
37
        }
Zeile 39... Zeile 38...
39
 
38
 
40
        public function create()
39
        public function create()
41
        {
40
        {