get( 'shipments/shipments-hdr', array( 'page' => $page, 'limit' => self::PER_PAGE, 'sortOrder' => 'DESC', 'lang' => 'en', ), self::TIMEOUT ); } catch ( AbsError $e ) { Page::error( $e->getMessage() ); return; } $rows = isset( $data['items'] ) && is_array( $data['items'] ) ? $data['items'] : array(); $total = isset( $data['meta']['total'] ) ? (int) $data['meta']['total'] : count( $rows ); echo '
' . esc_html__( 'Each time shipments are created, ABS records a batch: one per bulk send, and one per single shipment.', 'abs-courier' ) . '
'; if ( empty( $rows ) ) { echo '' . esc_html__( 'No batches yet.', 'abs-courier' ) . '
'; return; } echo '| ' . esc_html( $heading ) . ' | '; } echo '|||||
|---|---|---|---|---|---|
| ' . esc_html( $v( 'id' ) ) . ' | '; echo '' . esc_html( $v( 'no_of_awbs' ) ) . ' | '; echo '' . esc_html( Page::date( $v( 'creation_date' ) ) ) . ' | '; echo '' . esc_html( trim( $v( 'created_by_first_name' ) . ' ' . $v( 'created_by_last_name' ) ) ) . ' | '; echo '' . esc_html( $v( 'sub_account_name' ) ) . ' | '; printf( '%2$s | %4$s | ', esc_url( add_query_arg( 'batch', $id, Menu::url( 'shipments' ) ) ), esc_html__( 'View shipments', 'abs-courier' ), esc_url( PrintView::batch_url( $id ) ), esc_html__( 'Print waybills', 'abs-courier' ) ); echo '