diff --git a/beike/Shop/Http/Controllers/Account/RmaController.php b/beike/Shop/Http/Controllers/Account/RmaController.php index cb9e2a15..ea80b5e5 100644 --- a/beike/Shop/Http/Controllers/Account/RmaController.php +++ b/beike/Shop/Http/Controllers/Account/RmaController.php @@ -41,9 +41,12 @@ class RmaController extends Controller */ public function show(int $id) { + $rma = RmaRepo::find($id); $data = [ - 'rma' => RmaRepo::find($id), + 'rma' => $rma, + 'orderProduct' => OrderProductRepo::find($rma->order_product_id), 'statuses' => RmaRepo::getStatuses(), + 'reasons' => RmaReasonDetail::collection(RmaReasonRepo::list())->jsonSerialize(), 'types' => RmaRepo::getTypes(), ]; diff --git a/themes/default/account/rmas/info.blade.php b/themes/default/account/rmas/info.blade.php index 53cf4723..d4237baa 100644 --- a/themes/default/account/rmas/info.blade.php +++ b/themes/default/account/rmas/info.blade.php @@ -10,9 +10,9 @@