show.php
73 lines
| 1 | <sc-breadcrumbs> |
| 2 | <sc-breadcrumb href="<?php echo esc_url( $back_url ); ?>">Dashboard</sc-breadcrumb> |
| 3 | <sc-breadcrumb>Order</sc-breadcrumb> |
| 4 | </sc-breadcrumbs> |
| 5 | |
| 6 | <sc-card |
| 7 | style="--spacing: var(--sc-spacing-medium)" |
| 8 | no-divider |
| 9 | > |
| 10 | <sc-order-detail |
| 11 | order-id="<?php echo esc_attr( $id ); ?>" |
| 12 | style="margin-bottom: 2em;" |
| 13 | > |
| 14 | <span slot="title"> |
| 15 | <?php echo __( 'Order Details', 'surecart' ); ?> |
| 16 | <sc-divider></sc-divider> |
| 17 | </span> |
| 18 | </sc-order-detail> |
| 19 | <?php |
| 20 | \SureCart::assets()->addComponentData( |
| 21 | 'sc-order-detail', |
| 22 | '', |
| 23 | [ |
| 24 | 'query' => $order['query'] ?? [], |
| 25 | ] |
| 26 | ); |
| 27 | ?> |
| 28 | |
| 29 | <sc-charges-list |
| 30 | id="customer-order-charges-list" |
| 31 | style="margin-bottom: 2em;" |
| 32 | > |
| 33 | <span slot="title"> |
| 34 | <?php echo __( 'Payment', 'surecart' ); ?> |
| 35 | <sc-divider></sc-divider> |
| 36 | </span> |
| 37 | <span slot="empty"> |
| 38 | <sc-alert |
| 39 | type="info" |
| 40 | open |
| 41 | > |
| 42 | <?php esc_html_e( 'You have not been charged for this order.', 'surecart' ); ?> |
| 43 | </sc-alert> |
| 44 | </span> |
| 45 | </sc-charges-list> |
| 46 | <?php |
| 47 | \SureCart::assets()->addComponentData( |
| 48 | 'sc-charges-list', |
| 49 | '#customer-order-charges-list', |
| 50 | [ |
| 51 | 'query' => $charges['query'] ?? [], |
| 52 | ] |
| 53 | ); |
| 54 | ?> |
| 55 | |
| 56 | <sc-subscriptions-list id="<?php echo esc_attr( 'list' . $id ); ?>"> |
| 57 | <span slot="title"> |
| 58 | <?php echo __( 'Subscriptions', 'surecart' ); ?> |
| 59 | <sc-divider></sc-divider> |
| 60 | </span> |
| 61 | <span slot="empty"></span> |
| 62 | </sc-subscriptions-list> |
| 63 | <?php |
| 64 | \SureCart::assets()->addComponentData( |
| 65 | 'sc-subscriptions-list', |
| 66 | '#list' . $id, |
| 67 | [ |
| 68 | 'query' => $subscriptions['query'] ?? [], |
| 69 | ] |
| 70 | ); |
| 71 | ?> |
| 72 | </sc-card> |
| 73 |