Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1359 Revision 1361
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();
36
            $links = $orders->links();
37
            $links = array();
-
 
38
            return view( 'admin/orders', [ "orders" => $orders, "links" => $links ] );
37
            return view( 'admin/orders', [ "orders" => $orders, "links" => $links ] );
39
        }
38
        }
Zeile 40... Zeile 39...
40
 
39
 
41
        public function create()
40
        public function create()