$transaction->getRouteKey(), 'key' => [ 'public' => $transaction->getPublicKey(), 'route' => $transaction->getRouteKey(), ], 'order_id' => $transaction->order_id, 'debt' => $transaction->debt, 'note' => $transaction->note, 'order_fee' => $transaction->order_fee, 'pay_fee' => $transaction->pay_fee, 'code' => $transaction->code, 'transport_fee' => $transaction->transport_fee, 'url' => [ 'public' => trans_url('sale/'.$transaction->getPublicKey()), 'user' => guard_url('sale/transaction/'.$transaction->getRouteKey()), ], 'status' => trans('app.'.$transaction->status), 'created_at' => format_date($transaction->created_at), 'updated_at' => format_date($transaction->updated_at), ]; } }