$history->getRouteKey(), 'key' => [ 'public' => $history->getPublicKey(), 'route' => $history->getRouteKey(), ], 'user_id' => $history->user_id, 'amount' => $history->amount, 'transaction_type' => $history->transaction_type, 'description' => $history->description, 'payment_thro' => $history->payment_thro, 'transaction_id' => $history->transaction_id, 'status' => $history->status, 'url' => [ 'public' => trans_url('transaction/'.$history->getPublicKey()), 'user' => guard_url('transaction/history/'.$history->getRouteKey()), ], 'status' => trans('app.'.$history->status), 'created_at' => format_date($history->created_at), 'updated_at' => format_date($history->updated_at), ]; } }