$expenses->getRouteKey(), 'key' => [ 'public' => $expenses->getPublicKey(), 'route' => $expenses->getRouteKey(), ], 'owner_id' => $expenses->owner_id, 'house_id' => $expenses->house_id, 'expense_reason' => $expenses->expense_reason, 'expense_amount' => $expenses->expense_amount, 'url' => [ 'public' => trans_url('expense/'.$expenses->getPublicKey()), 'user' => guard_url('expense/expenses/'.$expenses->getRouteKey()), ], 'status' => trans('app.'.$expenses->status), 'created_at' => format_date($expenses->created_at), 'updated_at' => format_date($expenses->updated_at), ]; } }